fix: 首次提交

This commit is contained in:
2024-12-09 11:25:23 +08:00
parent d0c01071e9
commit 2c2109a5f3
4741 changed files with 290641 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2018 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.google.android.setupcompat" > <!-- Set in the BUILD or gradle file -->
<uses-sdk android:minSdkVersion="31" />
</manifest>

View File

@@ -0,0 +1,6 @@
aarFormatVersion=1.0
aarMetadataVersion=1.0
minCompileSdk=1
minCompileSdkExtension=0
minAndroidGradlePluginVersion=1.0.0
coreLibraryDesugaringEnabled=false

View File

@@ -0,0 +1,104 @@
int attr sucButtonType 0x0
int attr sucContainer 0x0
int attr sucFooterBarButtonAlignEnd 0x0
int attr sucFooterBarButtonAllCaps 0x0
int attr sucFooterBarButtonColorControlHighlight 0x0
int attr sucFooterBarButtonColorControlHighlightRipple 0x0
int attr sucFooterBarButtonCornerRadius 0x0
int attr sucFooterBarButtonFontFamily 0x0
int attr sucFooterBarButtonHighlightAlpha 0x0
int attr sucFooterBarMinHeight 0x0
int attr sucFooterBarPaddingBottom 0x0
int attr sucFooterBarPaddingEnd 0x0
int attr sucFooterBarPaddingStart 0x0
int attr sucFooterBarPaddingTop 0x0
int attr sucFooterBarPaddingVertical 0x0
int attr sucFooterBarPrimaryFooterBackground 0x0
int attr sucFooterBarPrimaryFooterButton 0x0
int attr sucFooterBarSecondaryFooterBackground 0x0
int attr sucFooterBarSecondaryFooterButton 0x0
int attr sucFooterButtonPaddingEnd 0x0
int attr sucFooterButtonPaddingStart 0x0
int attr sucFullDynamicColor 0x0
int attr sucGlifHeaderMarginBottom 0x0
int attr sucGlifHeaderMarginTop 0x0
int attr sucGlifIconMarginTop 0x0
int attr sucHeaderContainerMarginBottom 0x0
int attr sucHeaderText 0x0
int attr sucHeaderTextColor 0x0
int attr sucLayoutFullscreen 0x0
int attr sucLayoutTheme 0x0
int attr sucLightStatusBar 0x0
int attr sucLightSystemNavBar 0x0
int attr sucStatusBarBackground 0x0
int attr sucSystemNavBarBackgroundColor 0x0
int attr sucSystemNavBarDividerColor 0x0
int attr sucUsePartnerResource 0x0
int color suc_customization_button_highlight_default 0x0
int color suc_customization_button_highlight_ripple 0x0
int id add_another 0x0
int id cancel 0x0
int id clear 0x0
int id done 0x0
int id next 0x0
int id opt_in 0x0
int id other 0x0
int id skip 0x0
int id stop 0x0
int id suc_customization_original_weight 0x0
int id suc_footer_button_bar 0x0
int id suc_layout_content 0x0
int id suc_layout_footer 0x0
int id suc_layout_status 0x0
int layout partner_customization_layout 0x0
int layout suc_button 0x0
int layout suc_footer_button_bar 0x0
int style SucPartnerCustomizationButtonBar 0x0
int style SucPartnerCustomizationButtonBar_Stackable 0x0
int style SucPartnerCustomizationButton_Primary 0x0
int style SucPartnerCustomizationButton_Secondary 0x0
int[] styleable SucFooterBarMixin { 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 }
int styleable SucFooterBarMixin_sucFooterBarButtonAlignEnd 0
int styleable SucFooterBarMixin_sucFooterBarButtonAllCaps 1
int styleable SucFooterBarMixin_sucFooterBarButtonColorControlHighlight 2
int styleable SucFooterBarMixin_sucFooterBarButtonColorControlHighlightRipple 3
int styleable SucFooterBarMixin_sucFooterBarButtonCornerRadius 4
int styleable SucFooterBarMixin_sucFooterBarButtonFontFamily 5
int styleable SucFooterBarMixin_sucFooterBarButtonHighlightAlpha 6
int styleable SucFooterBarMixin_sucFooterBarMinHeight 7
int styleable SucFooterBarMixin_sucFooterBarPaddingBottom 8
int styleable SucFooterBarMixin_sucFooterBarPaddingEnd 9
int styleable SucFooterBarMixin_sucFooterBarPaddingStart 10
int styleable SucFooterBarMixin_sucFooterBarPaddingTop 11
int styleable SucFooterBarMixin_sucFooterBarPaddingVertical 12
int styleable SucFooterBarMixin_sucFooterBarPrimaryFooterBackground 13
int styleable SucFooterBarMixin_sucFooterBarPrimaryFooterButton 14
int styleable SucFooterBarMixin_sucFooterBarSecondaryFooterBackground 15
int styleable SucFooterBarMixin_sucFooterBarSecondaryFooterButton 16
int[] styleable SucFooterButton { 0x101014f, 0x1010000, 0x0, 0x0, 0x0 }
int styleable SucFooterButton_android_text 0
int styleable SucFooterButton_android_theme 1
int styleable SucFooterButton_sucButtonType 2
int styleable SucFooterButton_sucFooterButtonPaddingEnd 3
int styleable SucFooterButton_sucFooterButtonPaddingStart 4
int[] styleable SucHeaderMixin { 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 }
int styleable SucHeaderMixin_sucGlifHeaderMarginBottom 0
int styleable SucHeaderMixin_sucGlifHeaderMarginTop 1
int styleable SucHeaderMixin_sucGlifIconMarginTop 2
int styleable SucHeaderMixin_sucHeaderContainerMarginBottom 3
int styleable SucHeaderMixin_sucHeaderText 4
int styleable SucHeaderMixin_sucHeaderTextColor 5
int[] styleable SucPartnerCustomizationLayout { 0x0, 0x0, 0x0 }
int styleable SucPartnerCustomizationLayout_sucFullDynamicColor 0
int styleable SucPartnerCustomizationLayout_sucLayoutFullscreen 1
int styleable SucPartnerCustomizationLayout_sucUsePartnerResource 2
int[] styleable SucStatusBarMixin { 0x0, 0x0 }
int styleable SucStatusBarMixin_sucLightStatusBar 0
int styleable SucStatusBarMixin_sucStatusBarBackground 1
int[] styleable SucSystemNavBarMixin { 0x0, 0x0, 0x0 }
int styleable SucSystemNavBarMixin_sucLightSystemNavBar 0
int styleable SucSystemNavBarMixin_sucSystemNavBarBackgroundColor 1
int styleable SucSystemNavBarMixin_sucSystemNavBarDividerColor 2
int[] styleable SucTemplateLayout { 0x10100f2, 0x0 }
int styleable SucTemplateLayout_android_layout 0
int styleable SucTemplateLayout_sucContainer 1

View File

@@ -0,0 +1,19 @@
/*
* Copyright (C) 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.android.setupcompat.portal;
parcelable NotificationComponent;

View File

@@ -0,0 +1,19 @@
/*
* Copyright (C) 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.android.setupcompat.portal;
parcelable ProgressServiceComponent;

View File

@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2017 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:alpha="?attr/sucFooterBarButtonHighlightAlpha"
android:color="?attr/sucFooterBarButtonColorControlHighlightRipple" />
</selector>

View File

@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2018 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/suc_layout_status"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<FrameLayout
android:id="@+id/suc_layout_content"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1" />
<ViewStub
android:id="@+id/suc_layout_footer"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</LinearLayout>

View File

@@ -0,0 +1,42 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2018 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<com.google.android.setupcompat.view.StatusBarBackgroundLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/suc_layout_status"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<FrameLayout
android:id="@+id/suc_layout_content"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1" />
<ViewStub
android:id="@+id/suc_layout_footer"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</LinearLayout>
</com.google.android.setupcompat.view.StatusBarBackgroundLayout>

View File

@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2017 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!-- A simple button to be inflated by the inflater. This allows creating AppCompatButton without
maintaining separate versions for compat and platform. -->
<com.google.android.setupcompat.template.FooterActionButton
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />

View File

@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2017 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<com.google.android.setupcompat.view.ButtonBarLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/suc_footer_button_bar"
style="@style/SucPartnerCustomizationButtonBar.Stackable"
android:layout_width="match_parent"
android:layout_height="wrap_content" />

View File

@@ -0,0 +1,127 @@
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:ns1="http://schemas.android.com/tools">
<attr format="reference" name="sucLayoutTheme"/>
<color name="suc_customization_button_highlight_default">#ff1a73e8</color>
<color name="suc_customization_button_highlight_ripple">#1f000000</color>
<item name="suc_customization_original_weight" type="id"/>
<style name="SucPartnerCustomizationButton.Primary" parent="android:Widget.Material.Button.Colored">
<item name="android:buttonStyle">@style/SucPartnerCustomizationButton.Primary</item>
<item name="android:theme">@style/SucPartnerCustomizationButton.Primary</item>
<item name="android:fontFamily" ns1:targetApi="jelly_bean">?attr/sucFooterBarButtonFontFamily</item>
<item name="android:paddingLeft">?attr/sucFooterButtonPaddingStart</item>
<item name="android:paddingStart" ns1:ignore="NewApi">?attr/sucFooterButtonPaddingStart</item>
<item name="android:paddingRight">?attr/sucFooterButtonPaddingEnd</item>
<item name="android:paddingEnd" ns1:ignore="NewApi">?attr/sucFooterButtonPaddingEnd</item>
<item name="android:textAllCaps">?attr/sucFooterBarButtonAllCaps</item>
<item name="android:stateListAnimator" ns1:ignore="NewApi">@null</item>
<item name="android:buttonCornerRadius" ns1:ignore="NewApi">?attr/sucFooterBarButtonCornerRadius</item>
</style>
<style name="SucPartnerCustomizationButton.Secondary" parent="android:Widget.Material.Button.Borderless.Colored">
<item name="android:buttonStyle">@style/SucPartnerCustomizationButton.Secondary</item>
<item name="android:theme">@style/SucPartnerCustomizationButton.Secondary</item>
<item name="android:fontFamily" ns1:targetApi="jelly_bean">?attr/sucFooterBarButtonFontFamily</item>
<item name="android:minWidth">0dp</item>
<item name="android:paddingLeft">?attr/sucFooterButtonPaddingStart</item>
<item name="android:paddingStart" ns1:ignore="NewApi">?attr/sucFooterButtonPaddingStart</item>
<item name="android:paddingRight">?attr/sucFooterButtonPaddingEnd</item>
<item name="android:paddingEnd" ns1:ignore="NewApi">?attr/sucFooterButtonPaddingEnd</item>
<item name="android:textAllCaps">?attr/sucFooterBarButtonAllCaps</item>
<item name="android:buttonCornerRadius" ns1:ignore="NewApi">?attr/sucFooterBarButtonCornerRadius</item>
<item name="android:colorControlHighlight" ns1:targetApi="lollipop">@color/suc_customization_button_highlight_ripple</item>
<item name="sucFooterBarButtonColorControlHighlight">@color/suc_customization_button_highlight_ripple</item>
</style>
<style name="SucPartnerCustomizationButtonBar">
<item name="android:baselineAligned">false</item>
<item name="android:clipChildren">false</item>
<item name="android:clipToPadding">false</item>
<item name="android:gravity">center_vertical</item>
<item name="android:minHeight">?attr/sucFooterBarMinHeight</item>
<item name="android:orientation">horizontal</item>
<item name="android:paddingTop">?attr/sucFooterBarPaddingVertical</item>
<item name="android:paddingBottom">?attr/sucFooterBarPaddingVertical</item>
<item name="android:paddingEnd" ns1:ignore="NewApi">?attr/sucFooterBarPaddingEnd</item>
<item name="android:paddingLeft">?attr/sucFooterBarPaddingStart</item>
<item name="android:paddingRight">?attr/sucFooterBarPaddingEnd</item>
<item name="android:paddingStart" ns1:ignore="NewApi">?attr/sucFooterBarPaddingStart</item>
</style>
<style name="SucPartnerCustomizationButtonBar.Stackable" parent="SucPartnerCustomizationButtonBar">
<item name="android:gravity">center</item>
</style>
<declare-styleable name="SucFooterBarMixin">
<attr format="boolean" name="sucFooterBarButtonAllCaps"/>
<attr format="boolean" name="sucFooterBarButtonAlignEnd"/>
<attr format="dimension" name="sucFooterBarButtonCornerRadius"/>
<attr format="string|reference" name="sucFooterBarButtonFontFamily"/>
<attr format="dimension" name="sucFooterBarPaddingTop"/>
<attr format="dimension" name="sucFooterBarPaddingBottom"/>
<attr format="color" name="sucFooterBarPrimaryFooterBackground"/>
<attr format="reference" name="sucFooterBarPrimaryFooterButton"/>
<attr format="color" name="sucFooterBarSecondaryFooterBackground"/>
<attr format="reference" name="sucFooterBarSecondaryFooterButton"/>
<attr format="float" name="sucFooterBarButtonHighlightAlpha"/>
<attr format="color" name="sucFooterBarButtonColorControlHighlight"/>
<attr format="color" name="sucFooterBarButtonColorControlHighlightRipple"/>
<attr format="dimension" name="sucFooterBarPaddingVertical"/>
<attr format="dimension" name="sucFooterBarPaddingStart"/>
<attr format="dimension" name="sucFooterBarPaddingEnd"/>
<attr format="dimension" name="sucFooterBarMinHeight"/>
</declare-styleable>
<declare-styleable name="SucFooterButton">
<attr name="android:text"/>
<attr name="android:theme"/>
<attr name="sucButtonType">
<enum name="other" value="0"/>
<enum name="add_another" value="1"/>
<enum name="cancel" value="2"/>
<enum name="clear" value="3"/>
<enum name="done" value="4"/>
<enum name="next" value="5"/>
<enum name="opt_in" value="6"/>
<enum name="skip" value="7"/>
<enum name="stop" value="8"/>
</attr>
<attr format="dimension" name="sucFooterButtonPaddingStart"/>
<attr format="dimension" name="sucFooterButtonPaddingEnd"/>
</declare-styleable>
<declare-styleable name="SucHeaderMixin">
<attr format="string" localization="suggested" name="sucHeaderText"/>
<attr format="reference|color" name="sucHeaderTextColor"/>
<attr format="dimension" name="sucGlifHeaderMarginTop"/>
<attr format="dimension" name="sucGlifHeaderMarginBottom"/>
<attr format="dimension" name="sucGlifIconMarginTop"/>
<attr format="dimension" name="sucHeaderContainerMarginBottom"/>
</declare-styleable>
<declare-styleable name="SucPartnerCustomizationLayout">
<attr format="boolean" name="sucLayoutFullscreen"/>
<attr format="boolean" name="sucUsePartnerResource"/>
<attr format="boolean" name="sucFullDynamicColor"/>
</declare-styleable>
<declare-styleable name="SucStatusBarMixin">
<attr format="color|reference" name="sucStatusBarBackground"/>
<attr format="boolean" name="sucLightStatusBar"/>
</declare-styleable>
<declare-styleable name="SucSystemNavBarMixin">
<attr format="color" name="sucSystemNavBarBackgroundColor"/>
<attr format="boolean" name="sucLightSystemNavBar"/>
<attr format="color" name="sucSystemNavBarDividerColor"/>
</declare-styleable>
<declare-styleable name="SucTemplateLayout">
<attr name="android:layout"/>
<attr format="reference" name="sucContainer"/>
</declare-styleable>
</resources>