Loading protos/launcher_atom.proto +3 −3 Original line number Diff line number Diff line Loading @@ -138,7 +138,7 @@ message TaskBarContainer { } } // Next value 55 // Next value 54 enum Attribute { option allow_alias = true; Loading Loading @@ -183,6 +183,7 @@ enum Attribute { ALL_APPS_SEARCH_RESULT_CHROMETAB = 24; ALL_APPS_SEARCH_RESULT_NAVVYSITE = 25 [deprecated = true]; ALL_APPS_SEARCH_RESULT_TIPS = 26; ALL_APPS_SEARCH_RESULT_QS_TILE = 27; ALL_APPS_SEARCH_RESULT_PEOPLE_TILE = 27 [deprecated = true]; ALL_APPS_SEARCH_RESULT_LEGACY_SHORTCUT = 30; ALL_APPS_SEARCH_RESULT_ASSISTANT_MEMORY = 31; Loading @@ -192,7 +193,6 @@ enum Attribute { ALL_APPS_SEARCH_RESULT_LOCATION = 50; ALL_APPS_SEARCH_RESULT_TEXT_HEADER = 51; ALL_APPS_SEARCH_RESULT_NO_FULFILLMENT = 52; ALL_APPS_SEARCH_RESULT_QS_TILE = 53; // Result sources DATA_SOURCE_APPSEARCH_APP_PREVIEW = 45; Loading @@ -200,7 +200,7 @@ enum Attribute { DATA_SOURCE_APPSEARCH_CATEGORY_SRP_PREVIEW = 48; DATA_SOURCE_APPSEARCH_ENTITY_SRP_PREVIEW = 49; DATA_SOURCE_AIAI_SEARCH_ROOT = 47; DATA_SOURCE_LAUNCHER = 54; DATA_SOURCE_LAUNCHER = 53; // Web suggestions provided by AGA ALL_APPS_SEARCH_RESULT_WEB_SUGGEST = 39; Loading quickstep/AndroidManifest.xml +18 −0 Original line number Diff line number Diff line Loading @@ -43,6 +43,10 @@ <uses-permission android:name="android.permission.SYSTEM_APPLICATION_OVERLAY" /> <!-- Permission required to start a WidgetPickerActivity. --> <permission android:name="${packageName}.permission.START_WIDGET_PICKER_ACTIVITY" android:protectionLevel="signature|privileged" /> <application android:backupAgent="com.android.launcher3.LauncherBackupAgent" android:fullBackupOnly="true" android:fullBackupContent="@xml/backupscheme" Loading Loading @@ -133,6 +137,20 @@ </intent-filter> </activity> <activity android:name="com.android.launcher3.WidgetPickerActivity" android:theme="@style/WidgetPickerActivityTheme" android:excludeFromRecents="true" android:autoRemoveFromRecents="true" android:showOnLockScreen="true" android:launchMode="singleTop" android:exported="true" android:permission="android.permission.START_WIDGET_PICKER_ACTIVITY"> <intent-filter> <action android:name="android.intent.action.PICK" /> <category android:name="android.intent.category.DEFAULT" /> </intent-filter> </activity> </application> </manifest> quickstep/res/layout/widget_picker_activity.xml 0 → 100644 +24 −0 Original line number Diff line number Diff line <!-- ~ Copyright (C) 2023 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.android.launcher3.dragndrop.SimpleDragLayer xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/drag_layer" android:layout_width="match_parent" android:layout_height="match_parent" android:clipChildren="false" android:clipToPadding="false" android:importantForAccessibility="no" /> quickstep/res/values/styles.xml +5 −0 Original line number Diff line number Diff line Loading @@ -311,4 +311,9 @@ <item name="android:letterSpacing">0.025</item> <item name="android:lineHeight">20sp</item> </style> <style name="WidgetPickerActivityTheme" parent="@android:style/Theme.Translucent.NoTitleBar"> <item name="widgetsTheme">@style/WidgetContainerTheme</item> <item name="android:windowBackground">@android:color/transparent</item> </style> </resources> quickstep/src/com/android/launcher3/QuickstepTransitionManager.java +3 −2 Original line number Diff line number Diff line Loading @@ -1654,9 +1654,10 @@ public class QuickstepTransitionManager implements OnDeviceProfileChangeListener addCujInstrumentation(anim, playFallBackAnimation ? CUJ_APP_CLOSE_TO_HOME_FALLBACK : CUJ_APP_CLOSE_TO_HOME); anim.addListener(new AnimationSuccessListener() { anim.addListener(new AnimatorListenerAdapter() { @Override public void onAnimationSuccess(Animator animator) { public void onAnimationEnd(Animator animation) { super.onAnimationEnd(animation); AccessibilityManagerCompat.sendTestProtocolEventToTest( mLauncher, WALLPAPER_OPEN_ANIMATION_FINISHED_MESSAGE); } Loading Loading
protos/launcher_atom.proto +3 −3 Original line number Diff line number Diff line Loading @@ -138,7 +138,7 @@ message TaskBarContainer { } } // Next value 55 // Next value 54 enum Attribute { option allow_alias = true; Loading Loading @@ -183,6 +183,7 @@ enum Attribute { ALL_APPS_SEARCH_RESULT_CHROMETAB = 24; ALL_APPS_SEARCH_RESULT_NAVVYSITE = 25 [deprecated = true]; ALL_APPS_SEARCH_RESULT_TIPS = 26; ALL_APPS_SEARCH_RESULT_QS_TILE = 27; ALL_APPS_SEARCH_RESULT_PEOPLE_TILE = 27 [deprecated = true]; ALL_APPS_SEARCH_RESULT_LEGACY_SHORTCUT = 30; ALL_APPS_SEARCH_RESULT_ASSISTANT_MEMORY = 31; Loading @@ -192,7 +193,6 @@ enum Attribute { ALL_APPS_SEARCH_RESULT_LOCATION = 50; ALL_APPS_SEARCH_RESULT_TEXT_HEADER = 51; ALL_APPS_SEARCH_RESULT_NO_FULFILLMENT = 52; ALL_APPS_SEARCH_RESULT_QS_TILE = 53; // Result sources DATA_SOURCE_APPSEARCH_APP_PREVIEW = 45; Loading @@ -200,7 +200,7 @@ enum Attribute { DATA_SOURCE_APPSEARCH_CATEGORY_SRP_PREVIEW = 48; DATA_SOURCE_APPSEARCH_ENTITY_SRP_PREVIEW = 49; DATA_SOURCE_AIAI_SEARCH_ROOT = 47; DATA_SOURCE_LAUNCHER = 54; DATA_SOURCE_LAUNCHER = 53; // Web suggestions provided by AGA ALL_APPS_SEARCH_RESULT_WEB_SUGGEST = 39; Loading
quickstep/AndroidManifest.xml +18 −0 Original line number Diff line number Diff line Loading @@ -43,6 +43,10 @@ <uses-permission android:name="android.permission.SYSTEM_APPLICATION_OVERLAY" /> <!-- Permission required to start a WidgetPickerActivity. --> <permission android:name="${packageName}.permission.START_WIDGET_PICKER_ACTIVITY" android:protectionLevel="signature|privileged" /> <application android:backupAgent="com.android.launcher3.LauncherBackupAgent" android:fullBackupOnly="true" android:fullBackupContent="@xml/backupscheme" Loading Loading @@ -133,6 +137,20 @@ </intent-filter> </activity> <activity android:name="com.android.launcher3.WidgetPickerActivity" android:theme="@style/WidgetPickerActivityTheme" android:excludeFromRecents="true" android:autoRemoveFromRecents="true" android:showOnLockScreen="true" android:launchMode="singleTop" android:exported="true" android:permission="android.permission.START_WIDGET_PICKER_ACTIVITY"> <intent-filter> <action android:name="android.intent.action.PICK" /> <category android:name="android.intent.category.DEFAULT" /> </intent-filter> </activity> </application> </manifest>
quickstep/res/layout/widget_picker_activity.xml 0 → 100644 +24 −0 Original line number Diff line number Diff line <!-- ~ Copyright (C) 2023 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.android.launcher3.dragndrop.SimpleDragLayer xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/drag_layer" android:layout_width="match_parent" android:layout_height="match_parent" android:clipChildren="false" android:clipToPadding="false" android:importantForAccessibility="no" />
quickstep/res/values/styles.xml +5 −0 Original line number Diff line number Diff line Loading @@ -311,4 +311,9 @@ <item name="android:letterSpacing">0.025</item> <item name="android:lineHeight">20sp</item> </style> <style name="WidgetPickerActivityTheme" parent="@android:style/Theme.Translucent.NoTitleBar"> <item name="widgetsTheme">@style/WidgetContainerTheme</item> <item name="android:windowBackground">@android:color/transparent</item> </style> </resources>
quickstep/src/com/android/launcher3/QuickstepTransitionManager.java +3 −2 Original line number Diff line number Diff line Loading @@ -1654,9 +1654,10 @@ public class QuickstepTransitionManager implements OnDeviceProfileChangeListener addCujInstrumentation(anim, playFallBackAnimation ? CUJ_APP_CLOSE_TO_HOME_FALLBACK : CUJ_APP_CLOSE_TO_HOME); anim.addListener(new AnimationSuccessListener() { anim.addListener(new AnimatorListenerAdapter() { @Override public void onAnimationSuccess(Animator animator) { public void onAnimationEnd(Animator animation) { super.onAnimationEnd(animation); AccessibilityManagerCompat.sendTestProtocolEventToTest( mLauncher, WALLPAPER_OPEN_ANIMATION_FINISHED_MESSAGE); } Loading