Snap for 7986305 from b67c9effd3 to tm-release
Change-Id: I04c48a2aa819bb826940a11182b0c6c93125c56a
This commit is contained in:
@@ -42,6 +42,7 @@
|
||||
<uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" />
|
||||
<!-- for rotating surface by arbitrary degree -->
|
||||
<uses-permission android:name="android.permission.ROTATE_SURFACE_FLINGER" />
|
||||
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
|
||||
|
||||
<!--
|
||||
Permissions required for read/write access to the workspace data. These permission name
|
||||
|
||||
@@ -36,6 +36,7 @@
|
||||
<uses-permission android:name="android.permission.READ_FRAME_BUFFER"/>
|
||||
<uses-permission android:name="android.permission.MANAGE_ACCESSIBILITY"/>
|
||||
<uses-permission android:name="android.permission.MONITOR_INPUT"/>
|
||||
<uses-permission android:name="android.permission.ALLOW_SLIPPERY_TOUCHES"/>
|
||||
|
||||
<uses-permission android:name="android.permission.SYSTEM_APPLICATION_OVERLAY" />
|
||||
|
||||
|
||||
@@ -233,6 +233,16 @@
|
||||
<string name="taskbar_edu_close">Close</string>
|
||||
<!-- Text on button to finish a tutorial [CHAR_LIMIT=16] -->
|
||||
<string name="taskbar_edu_done">Done</string>
|
||||
<!-- Content description for home button [CHAR_LIMIT=16] -->
|
||||
<string name="taskbar_button_home">Home</string>
|
||||
<!-- Content description for accessibility button [CHAR_LIMIT=16] -->
|
||||
<string name="taskbar_button_a11y">Accessibility</string>
|
||||
<!-- Content description for back button [CHAR_LIMIT=16] -->
|
||||
<string name="taskbar_button_back">Back</string>
|
||||
<!-- Content description for ime switcher button [CHAR_LIMIT=16] -->
|
||||
<string name="taskbar_button_ime_switcher">IME switcher</string>
|
||||
<!-- Content description for recents button [CHAR_LIMIT=16] -->
|
||||
<string name="taskbar_button_recents">Recents</string>
|
||||
|
||||
<!-- Label for moving drop target to the top or left side of the screen, depending on orientation (from the taskbar only). -->
|
||||
<string name="move_drop_target_top_or_left">Move to top/left</string>
|
||||
|
||||
@@ -64,6 +64,7 @@ import com.android.launcher3.model.data.WorkspaceItemInfo;
|
||||
import com.android.launcher3.shortcuts.ShortcutKey;
|
||||
import com.android.launcher3.util.IntSparseArrayMap;
|
||||
import com.android.launcher3.util.PersistedItemArray;
|
||||
import com.android.quickstep.logging.SettingsChangeLogger;
|
||||
import com.android.quickstep.logging.StatsLogCompatManager;
|
||||
import com.android.systemui.shared.system.SysUiStatsLog;
|
||||
|
||||
@@ -97,10 +98,12 @@ public class QuickstepModelDelegate extends ModelDelegate {
|
||||
private final InvariantDeviceProfile mIDP;
|
||||
private final AppEventProducer mAppEventProducer;
|
||||
private final StatsManager mStatsManager;
|
||||
private final Context mContext;
|
||||
|
||||
protected boolean mActive = false;
|
||||
|
||||
public QuickstepModelDelegate(Context context) {
|
||||
mContext = context;
|
||||
mAppEventProducer = new AppEventProducer(context, this::onAppTargetEvent);
|
||||
|
||||
mIDP = InvariantDeviceProfile.INSTANCE.get(context);
|
||||
@@ -210,6 +213,7 @@ public class QuickstepModelDelegate extends ModelDelegate {
|
||||
"Successfully logged %d workspace items with instanceId=%d",
|
||||
itemsIdMap.size(), instanceId.getId()));
|
||||
additionalSnapshotEvents(instanceId);
|
||||
SettingsChangeLogger.INSTANCE.get(mContext).logSnapshot(instanceId);
|
||||
return StatsManager.PULL_SUCCESS;
|
||||
}
|
||||
);
|
||||
|
||||
@@ -433,6 +433,8 @@ public class NavbarButtonsViewController {
|
||||
@LayoutRes int layoutId) {
|
||||
ImageView buttonView = addButton(parent, id, layoutId);
|
||||
buttonView.setImageResource(drawableId);
|
||||
buttonView.setContentDescription(parent.getContext().getString(
|
||||
navButtonController.getButtonContentDescription(buttonType)));
|
||||
buttonView.setOnClickListener(view -> navButtonController.onButtonClick(buttonType));
|
||||
buttonView.setOnLongClickListener(view ->
|
||||
navButtonController.onButtonLongClick(buttonType));
|
||||
|
||||
@@ -25,7 +25,9 @@ import android.os.Bundle;
|
||||
import android.os.Handler;
|
||||
|
||||
import androidx.annotation.IntDef;
|
||||
import androidx.annotation.StringRes;
|
||||
|
||||
import com.android.launcher3.R;
|
||||
import com.android.launcher3.testing.TestLogging;
|
||||
import com.android.launcher3.testing.TestProtocol;
|
||||
import com.android.quickstep.OverviewCommandHelper;
|
||||
@@ -120,6 +122,23 @@ public class TaskbarNavButtonController {
|
||||
}
|
||||
}
|
||||
|
||||
public @StringRes int getButtonContentDescription(@TaskbarButton int buttonType) {
|
||||
switch (buttonType) {
|
||||
case BUTTON_HOME:
|
||||
return R.string.taskbar_button_home;
|
||||
case BUTTON_A11Y:
|
||||
return R.string.taskbar_button_a11y;
|
||||
case BUTTON_BACK:
|
||||
return R.string.taskbar_button_back;
|
||||
case BUTTON_IME_SWITCH:
|
||||
return R.string.taskbar_button_ime_switcher;
|
||||
case BUTTON_RECENTS:
|
||||
return R.string.taskbar_button_recents;
|
||||
default:
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if the user has long pressed back and recents buttons
|
||||
* "together" (within {@link #SCREEN_PIN_LONG_PRESS_THRESHOLD})ms
|
||||
|
||||
+10
-11
@@ -19,6 +19,7 @@ import static android.view.MotionEvent.ACTION_CANCEL;
|
||||
import static android.view.MotionEvent.ACTION_DOWN;
|
||||
import static android.view.MotionEvent.ACTION_MOVE;
|
||||
import static android.view.MotionEvent.ACTION_UP;
|
||||
import static android.view.WindowManager.LayoutParams.FLAG_SLIPPERY;
|
||||
|
||||
import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_SWIPE_DOWN_WORKSPACE_NOTISHADE_OPEN;
|
||||
|
||||
@@ -47,17 +48,6 @@ public class StatusBarTouchController implements TouchController {
|
||||
|
||||
private static final String TAG = "StatusBarController";
|
||||
|
||||
/**
|
||||
* Window flag: Enable touches to slide out of a window into neighboring
|
||||
* windows in mid-gesture instead of being captured for the duration of
|
||||
* the gesture.
|
||||
*
|
||||
* This flag changes the behavior of touch focus for this window only.
|
||||
* Touches can slide out of the window but they cannot necessarily slide
|
||||
* back in (unless the other window with touch focus permits it).
|
||||
*/
|
||||
private static final int FLAG_SLIPPERY = 0x20000000;
|
||||
|
||||
private final Launcher mLauncher;
|
||||
private final SystemUiProxy mSystemUiProxy;
|
||||
private final float mTouchSlop;
|
||||
@@ -140,6 +130,15 @@ public class StatusBarTouchController implements TouchController {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* FLAG_SLIPPERY enables touches to slide out of a window into neighboring
|
||||
* windows in mid-gesture instead of being captured for the duration of
|
||||
* the gesture.
|
||||
*
|
||||
* This flag changes the behavior of touch focus for this window only.
|
||||
* Touches can slide out of the window but they cannot necessarily slide
|
||||
* back in (unless the other window with touch focus permits it).
|
||||
*/
|
||||
private void setWindowSlippery(boolean enable) {
|
||||
Window w = mLauncher.getWindow();
|
||||
WindowManager.LayoutParams wlp = w.getAttributes();
|
||||
|
||||
@@ -24,8 +24,6 @@ import android.util.Log;
|
||||
|
||||
import com.android.launcher3.BuildConfig;
|
||||
import com.android.launcher3.MainProcessInitializer;
|
||||
import com.android.launcher3.util.Executors;
|
||||
import com.android.quickstep.logging.SettingsChangeLogger;
|
||||
import com.android.systemui.shared.system.InteractionJankMonitorWrapper;
|
||||
import com.android.systemui.shared.system.ThreadedRendererCompat;
|
||||
|
||||
@@ -62,9 +60,5 @@ public class QuickstepProcessInitializer extends MainProcessInitializer {
|
||||
// Elevate GPU priority for Quickstep and Remote animations.
|
||||
ThreadedRendererCompat.setContextPriority(
|
||||
ThreadedRendererCompat.EGL_CONTEXT_PRIORITY_HIGH_IMG);
|
||||
|
||||
// Initialize settings logger after a default timeout
|
||||
Executors.MAIN_EXECUTOR.getHandler()
|
||||
.postDelayed(() -> new SettingsChangeLogger(context), SETUP_DELAY_MILLIS);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -40,10 +40,11 @@ import android.util.Xml;
|
||||
import com.android.launcher3.AutoInstallsLayout;
|
||||
import com.android.launcher3.R;
|
||||
import com.android.launcher3.config.FeatureFlags;
|
||||
import com.android.launcher3.logging.InstanceIdSequence;
|
||||
import com.android.launcher3.logging.InstanceId;
|
||||
import com.android.launcher3.logging.StatsLogManager;
|
||||
import com.android.launcher3.logging.StatsLogManager.StatsLogger;
|
||||
import com.android.launcher3.model.DeviceGridState;
|
||||
import com.android.launcher3.util.MainThreadInitializedObject;
|
||||
import com.android.launcher3.util.SettingsCache;
|
||||
import com.android.quickstep.SysUINavigationMode;
|
||||
import com.android.quickstep.SysUINavigationMode.Mode;
|
||||
@@ -53,12 +54,19 @@ import org.xmlpull.v1.XmlPullParser;
|
||||
import org.xmlpull.v1.XmlPullParserException;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* Utility class to log launcher settings changes
|
||||
*/
|
||||
public class SettingsChangeLogger implements
|
||||
NavigationModeChangeListener, OnSharedPreferenceChangeListener {
|
||||
|
||||
/**
|
||||
* Singleton instance
|
||||
*/
|
||||
public static MainThreadInitializedObject<SettingsChangeLogger> INSTANCE =
|
||||
new MainThreadInitializedObject<>(SettingsChangeLogger::new);
|
||||
|
||||
private static final String TAG = "SettingsChangeLogger";
|
||||
private static final String ROOT_TAG = "androidx.preference.PreferenceScreen";
|
||||
@@ -66,12 +74,15 @@ public class SettingsChangeLogger implements
|
||||
|
||||
private final Context mContext;
|
||||
private final ArrayMap<String, LoggablePref> mLoggablePrefs;
|
||||
private final StatsLogManager mStatsLogManager;
|
||||
|
||||
private Mode mNavMode;
|
||||
private boolean mNotificationDotsEnabled;
|
||||
private StatsLogManager.LauncherEvent mNotificationDotsEvent;
|
||||
private StatsLogManager.LauncherEvent mHomeScreenSuggestionEvent;
|
||||
|
||||
public SettingsChangeLogger(Context context) {
|
||||
private SettingsChangeLogger(Context context) {
|
||||
mContext = context;
|
||||
mStatsLogManager = StatsLogManager.newInstance(mContext);
|
||||
mLoggablePrefs = loadPrefKeys(context);
|
||||
mNavMode = SysUINavigationMode.INSTANCE.get(context).addModeChangeListener(this);
|
||||
|
||||
@@ -118,14 +129,21 @@ public class SettingsChangeLogger implements
|
||||
}
|
||||
|
||||
private void onNotificationDotsChanged(boolean isDotsEnabled) {
|
||||
mNotificationDotsEnabled = isDotsEnabled;
|
||||
dispatchUserEvent();
|
||||
StatsLogManager.LauncherEvent mEvent =
|
||||
isDotsEnabled ? LAUNCHER_NOTIFICATION_DOT_ENABLED
|
||||
: LAUNCHER_NOTIFICATION_DOT_DISABLED;
|
||||
|
||||
// Log only when the setting is actually changed and not during initialization.
|
||||
if (mNotificationDotsEvent != null && mNotificationDotsEvent != mEvent) {
|
||||
mStatsLogManager.logger().log(mNotificationDotsEvent);
|
||||
}
|
||||
mNotificationDotsEvent = mEvent;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onNavigationModeChanged(Mode newMode) {
|
||||
mNavMode = newMode;
|
||||
dispatchUserEvent();
|
||||
mStatsLogManager.logger().log(newMode.launcherEvent);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -134,27 +152,27 @@ public class SettingsChangeLogger implements
|
||||
|| KEY_WORKSPACE_SIZE.equals(key)
|
||||
|| KEY_THEMED_ICONS.equals(key)
|
||||
|| mLoggablePrefs.containsKey(key)) {
|
||||
dispatchUserEvent();
|
||||
|
||||
mHomeScreenSuggestionEvent = getDevicePrefs(mContext)
|
||||
.getBoolean(LAST_PREDICTION_ENABLED_STATE, true)
|
||||
? LAUNCHER_HOME_SCREEN_SUGGESTIONS_ENABLED
|
||||
: LAUNCHER_HOME_SCREEN_SUGGESTIONS_DISABLED;
|
||||
|
||||
mStatsLogManager.logger().log(mHomeScreenSuggestionEvent);
|
||||
}
|
||||
}
|
||||
|
||||
private void dispatchUserEvent() {
|
||||
StatsLogger logger = StatsLogManager.newInstance(mContext).logger()
|
||||
.withInstanceId(new InstanceIdSequence().newInstanceId());
|
||||
/**
|
||||
* Takes snapshot of all eligible launcher settings and log them with the provided instance ID.
|
||||
*/
|
||||
public void logSnapshot(InstanceId snapshotInstanceId) {
|
||||
StatsLogger logger = mStatsLogManager.logger().withInstanceId(snapshotInstanceId);
|
||||
|
||||
logger.log(mNotificationDotsEnabled
|
||||
? LAUNCHER_NOTIFICATION_DOT_ENABLED
|
||||
: LAUNCHER_NOTIFICATION_DOT_DISABLED);
|
||||
logger.log(mNavMode.launcherEvent);
|
||||
logger.log(getDevicePrefs(mContext).getBoolean(LAST_PREDICTION_ENABLED_STATE, true)
|
||||
? LAUNCHER_HOME_SCREEN_SUGGESTIONS_ENABLED
|
||||
: LAUNCHER_HOME_SCREEN_SUGGESTIONS_DISABLED);
|
||||
|
||||
StatsLogManager.LauncherEvent gridSizeChangedEvent =
|
||||
new DeviceGridState(mContext).getWorkspaceSizeEvent();
|
||||
if (gridSizeChangedEvent != null) {
|
||||
logger.log(gridSizeChangedEvent);
|
||||
}
|
||||
Optional.ofNullable(mNotificationDotsEvent).ifPresent(logger::log);
|
||||
Optional.ofNullable(mNavMode).map(mode -> mode.launcherEvent).ifPresent(logger::log);
|
||||
Optional.ofNullable(mHomeScreenSuggestionEvent).ifPresent(logger::log);
|
||||
Optional.ofNullable(new DeviceGridState(mContext).getWorkspaceSizeEvent()).ifPresent(
|
||||
logger::log);
|
||||
|
||||
SharedPreferences prefs = getPrefs(mContext);
|
||||
if (FeatureFlags.ENABLE_THEMED_ICONS.get()) {
|
||||
|
||||
@@ -297,14 +297,15 @@ public class TaskThumbnailView extends View {
|
||||
}
|
||||
}
|
||||
|
||||
// Draw the background in all cases, except when the thumbnail data is opaque
|
||||
// Always draw the background since the snapshots might be translucent or partially empty
|
||||
// (For example, tasks been reparented out of dismissing split root when drag-to-dismiss
|
||||
// split screen).
|
||||
canvas.drawRoundRect(x, y, width, height, cornerRadius, cornerRadius, mBackgroundPaint);
|
||||
|
||||
final boolean drawBackgroundOnly = mTask == null || mTask.isLocked || mBitmapShader == null
|
||||
|| mThumbnailData == null;
|
||||
if (drawBackgroundOnly || mThumbnailData.isTranslucent) {
|
||||
canvas.drawRoundRect(x, y, width, height, cornerRadius, cornerRadius, mBackgroundPaint);
|
||||
if (drawBackgroundOnly) {
|
||||
return;
|
||||
}
|
||||
if (drawBackgroundOnly) {
|
||||
return;
|
||||
}
|
||||
|
||||
canvas.drawRoundRect(x, y, width, height, cornerRadius, cornerRadius, mPaint);
|
||||
|
||||
@@ -154,7 +154,15 @@
|
||||
<attr name="demoModeLayoutId" format="reference" />
|
||||
<attr name="isScalable" format="boolean" />
|
||||
<attr name="devicePaddingId" format="reference" />
|
||||
<attr name="gridEnabled" format="boolean" />
|
||||
<!-- By default all categories are enabled -->
|
||||
<attr name="deviceCategory" format="integer" >
|
||||
<!-- Enable on phone only -->
|
||||
<flag name="phone" value="1" />
|
||||
<!-- Enable on tablets only -->
|
||||
<flag name="tablet" value="2" />
|
||||
<!-- Enable on multi display devices only -->
|
||||
<flag name="multi_display" value="4" />
|
||||
</attr>
|
||||
|
||||
</declare-styleable>
|
||||
|
||||
|
||||
@@ -0,0 +1,76 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2021 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.
|
||||
-->
|
||||
|
||||
<favorites xmlns:launcher="http://schemas.android.com/apk/res-auto/com.android.launcher3">
|
||||
|
||||
<!-- Hotseat (We use the screen as the position of the item in the hotseat) -->
|
||||
<!-- Mail Calendar Gallery Store Internet Camera -->
|
||||
<resolve
|
||||
launcher:container="-101"
|
||||
launcher:screen="0"
|
||||
launcher:x="0"
|
||||
launcher:y="0" >
|
||||
<favorite launcher:uri="#Intent;action=android.intent.action.MAIN;category=android.intent.category.APP_EMAIL;end" />
|
||||
<favorite launcher:uri="mailto:" />
|
||||
</resolve>
|
||||
|
||||
<resolve
|
||||
launcher:container="-101"
|
||||
launcher:screen="1"
|
||||
launcher:x="1"
|
||||
launcher:y="0" >
|
||||
<favorite launcher:uri="#Intent;action=android.intent.action.MAIN;category=android.intent.category.APP_CALENDAR;end" />
|
||||
</resolve>
|
||||
|
||||
<resolve
|
||||
launcher:container="-101"
|
||||
launcher:screen="2"
|
||||
launcher:x="2"
|
||||
launcher:y="0" >
|
||||
<favorite launcher:uri="#Intent;action=android.intent.action.MAIN;category=android.intent.category.APP_GALLERY;end" />
|
||||
<favorite launcher:uri="#Intent;type=images/*;end" />
|
||||
</resolve>
|
||||
|
||||
<resolve
|
||||
launcher:container="-101"
|
||||
launcher:screen="3"
|
||||
launcher:x="3"
|
||||
launcher:y="0" >
|
||||
<favorite launcher:uri="#Intent;action=android.intent.action.MAIN;category=android.intent.category.APP_MARKET;end" />
|
||||
<favorite launcher:uri="market://details?id=com.android.launcher" />
|
||||
</resolve>
|
||||
|
||||
<resolve
|
||||
launcher:container="-101"
|
||||
launcher:screen="4"
|
||||
launcher:x="4"
|
||||
launcher:y="0" >
|
||||
<favorite
|
||||
launcher:uri="#Intent;action=android.intent.action.MAIN;category=android.intent.category.APP_BROWSER;end" />
|
||||
<favorite launcher:uri="http://www.example.com/" />
|
||||
</resolve>
|
||||
|
||||
<!-- Resolve camera intent if GoogleCamera is not available e.g. on emulator -->
|
||||
<resolve
|
||||
launcher:container="-101"
|
||||
launcher:screen="5"
|
||||
launcher:x="5"
|
||||
launcher:y="0" >
|
||||
<favorite launcher:uri="#Intent;action=android.media.action.STILL_IMAGE_CAMERA;end" />
|
||||
<favorite launcher:uri="#Intent;action=android.intent.action.CAMERA_BUTTON;end" />
|
||||
</resolve>
|
||||
|
||||
</favorites>
|
||||
@@ -133,4 +133,32 @@
|
||||
|
||||
</grid-option>
|
||||
|
||||
<grid-option
|
||||
launcher:name="6_by_5"
|
||||
launcher:numRows="5"
|
||||
launcher:numColumns="6"
|
||||
launcher:numFolderRows="3"
|
||||
launcher:numFolderColumns="3"
|
||||
launcher:numHotseatIcons="6"
|
||||
launcher:numAllAppsColumns="6"
|
||||
launcher:dbFile="launcher_6_by_5.db"
|
||||
launcher:defaultLayoutId="@xml/default_workspace_6x5"
|
||||
launcher:deviceCategory="tablet">
|
||||
|
||||
<display-option
|
||||
launcher:name="Tablet"
|
||||
launcher:minWidthDps="900"
|
||||
launcher:minHeightDps="820"
|
||||
launcher:minCellHeightDps="104"
|
||||
launcher:minCellWidthDps="80"
|
||||
launcher:iconImageSize="60"
|
||||
launcher:iconTextSize="14"
|
||||
launcher:borderSpaceDps="16"
|
||||
launcher:allAppsIconSize="60"
|
||||
launcher:allAppsIconTextSize="14"
|
||||
launcher:allAppsCellSpacingDps="16"
|
||||
launcher:canBeDefault="true" />
|
||||
|
||||
</grid-option>
|
||||
|
||||
</profiles>
|
||||
@@ -1,137 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2021 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.
|
||||
-->
|
||||
|
||||
<profiles xmlns:launcher="http://schemas.android.com/apk/res-auto" >
|
||||
|
||||
<grid-option
|
||||
launcher:name="3_by_3"
|
||||
launcher:numRows="3"
|
||||
launcher:numColumns="3"
|
||||
launcher:numFolderRows="2"
|
||||
launcher:numFolderColumns="3"
|
||||
launcher:numHotseatIcons="3"
|
||||
launcher:dbFile="launcher_3_by_3.db"
|
||||
launcher:defaultLayoutId="@xml/default_workspace_3x3" >
|
||||
|
||||
<display-option
|
||||
launcher:name="Super Short Stubby"
|
||||
launcher:minWidthDps="255"
|
||||
launcher:minHeightDps="300"
|
||||
launcher:iconImageSize="48"
|
||||
launcher:iconTextSize="13.0"
|
||||
launcher:canBeDefault="true" />
|
||||
|
||||
<display-option
|
||||
launcher:name="Shorter Stubby"
|
||||
launcher:minWidthDps="255"
|
||||
launcher:minHeightDps="400"
|
||||
launcher:iconImageSize="48"
|
||||
launcher:iconTextSize="13.0"
|
||||
launcher:canBeDefault="true" />
|
||||
|
||||
</grid-option>
|
||||
|
||||
<grid-option
|
||||
launcher:name="4_by_4"
|
||||
launcher:numRows="4"
|
||||
launcher:numColumns="4"
|
||||
launcher:numFolderRows="3"
|
||||
launcher:numFolderColumns="4"
|
||||
launcher:numHotseatIcons="4"
|
||||
launcher:dbFile="launcher_4_by_4.db"
|
||||
launcher:defaultLayoutId="@xml/default_workspace_4x4" >
|
||||
|
||||
<display-option
|
||||
launcher:name="Short Stubby"
|
||||
launcher:minWidthDps="275"
|
||||
launcher:minHeightDps="420"
|
||||
launcher:iconImageSize="48"
|
||||
launcher:iconTextSize="13.0"
|
||||
launcher:canBeDefault="true" />
|
||||
|
||||
<display-option
|
||||
launcher:name="Stubby"
|
||||
launcher:minWidthDps="255"
|
||||
launcher:minHeightDps="450"
|
||||
launcher:iconImageSize="48"
|
||||
launcher:iconTextSize="13.0"
|
||||
launcher:canBeDefault="true" />
|
||||
|
||||
<display-option
|
||||
launcher:name="Nexus S"
|
||||
launcher:minWidthDps="296"
|
||||
launcher:minHeightDps="491.33"
|
||||
launcher:iconImageSize="48"
|
||||
launcher:iconTextSize="13.0"
|
||||
launcher:canBeDefault="true" />
|
||||
|
||||
<display-option
|
||||
launcher:name="Nexus 4"
|
||||
launcher:minWidthDps="359"
|
||||
launcher:minHeightDps="567"
|
||||
launcher:iconImageSize="54"
|
||||
launcher:iconTextSize="13.0"
|
||||
launcher:canBeDefault="true" />
|
||||
|
||||
<display-option
|
||||
launcher:name="Nexus 5"
|
||||
launcher:minWidthDps="335"
|
||||
launcher:minHeightDps="567"
|
||||
launcher:iconImageSize="54"
|
||||
launcher:iconTextSize="13.0"
|
||||
launcher:canBeDefault="true" />
|
||||
|
||||
</grid-option>
|
||||
|
||||
<grid-option
|
||||
launcher:name="5_by_5"
|
||||
launcher:numRows="5"
|
||||
launcher:numColumns="5"
|
||||
launcher:numFolderRows="4"
|
||||
launcher:numFolderColumns="4"
|
||||
launcher:numHotseatIcons="5"
|
||||
launcher:numExtendedHotseatIcons="8"
|
||||
launcher:dbFile="launcher.db"
|
||||
launcher:defaultLayoutId="@xml/default_workspace_5x5" >
|
||||
|
||||
<display-option
|
||||
launcher:name="Large Phone"
|
||||
launcher:minWidthDps="406"
|
||||
launcher:minHeightDps="694"
|
||||
launcher:iconImageSize="56"
|
||||
launcher:iconTextSize="14.4"
|
||||
launcher:canBeDefault="true" />
|
||||
|
||||
<display-option
|
||||
launcher:name="Large Phone Split Display"
|
||||
launcher:minWidthDps="406"
|
||||
launcher:minHeightDps="694"
|
||||
launcher:iconImageSize="56"
|
||||
launcher:iconTextSize="14.4"
|
||||
launcher:canBeDefault="true" />
|
||||
|
||||
<display-option
|
||||
launcher:name="Shorter Stubby"
|
||||
launcher:minWidthDps="255"
|
||||
launcher:minHeightDps="400"
|
||||
launcher:iconImageSize="48"
|
||||
launcher:iconTextSize="13.0"
|
||||
launcher:canBeDefault="true" />
|
||||
|
||||
</grid-option>
|
||||
|
||||
</profiles>
|
||||
@@ -42,6 +42,7 @@ import android.util.TypedValue;
|
||||
import android.util.Xml;
|
||||
import android.view.Display;
|
||||
|
||||
import androidx.annotation.IntDef;
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.annotation.VisibleForTesting;
|
||||
|
||||
@@ -58,6 +59,8 @@ import org.xmlpull.v1.XmlPullParser;
|
||||
import org.xmlpull.v1.XmlPullParserException;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
@@ -70,6 +73,13 @@ public class InvariantDeviceProfile {
|
||||
public static final MainThreadInitializedObject<InvariantDeviceProfile> INSTANCE =
|
||||
new MainThreadInitializedObject<>(InvariantDeviceProfile::new);
|
||||
|
||||
@Retention(RetentionPolicy.SOURCE)
|
||||
@IntDef({TYPE_PHONE, TYPE_MULTI_DISPLAY, TYPE_TABLET})
|
||||
public @interface DeviceType{}
|
||||
public static final int TYPE_PHONE = 0;
|
||||
public static final int TYPE_MULTI_DISPLAY = 1;
|
||||
public static final int TYPE_TABLET = 2;
|
||||
|
||||
private static final String KEY_IDP_GRID_NAME = "idp_grid_name";
|
||||
|
||||
private static final float ICON_SIZE_DEFINED_IN_APP_DP = 48;
|
||||
@@ -106,7 +116,7 @@ public class InvariantDeviceProfile {
|
||||
public float[] iconTextSize;
|
||||
public int iconBitmapSize;
|
||||
public int fillResIconDpi;
|
||||
public boolean isSplitDisplay;
|
||||
public @DeviceType int deviceType;
|
||||
|
||||
public PointF[] minCellSize;
|
||||
|
||||
@@ -198,13 +208,21 @@ public class InvariantDeviceProfile {
|
||||
String gridName = getCurrentGridName(context);
|
||||
|
||||
// Get the display info based on default display and interpolate it to existing display
|
||||
Info defaultInfo = DisplayController.INSTANCE.get(context).getInfo();
|
||||
@DeviceType int defaultDeviceType = getDeviceType(defaultInfo);
|
||||
DisplayOption defaultDisplayOption = invDistWeightedInterpolate(
|
||||
DisplayController.INSTANCE.get(context).getInfo(),
|
||||
getPredefinedDeviceProfiles(context, gridName, false, false), false);
|
||||
defaultInfo,
|
||||
getPredefinedDeviceProfiles(context, gridName, defaultDeviceType,
|
||||
/*allowDisabledGrid=*/false),
|
||||
defaultDeviceType);
|
||||
|
||||
Info myInfo = new Info(context, display);
|
||||
@DeviceType int deviceType = getDeviceType(myInfo);
|
||||
DisplayOption myDisplayOption = invDistWeightedInterpolate(
|
||||
myInfo, getPredefinedDeviceProfiles(context, gridName, false, false), false);
|
||||
myInfo,
|
||||
getPredefinedDeviceProfiles(context, gridName, deviceType,
|
||||
/*allowDisabledGrid=*/false),
|
||||
deviceType);
|
||||
|
||||
DisplayOption result = new DisplayOption(defaultDisplayOption.grid)
|
||||
.add(myDisplayOption);
|
||||
@@ -220,7 +238,7 @@ public class InvariantDeviceProfile {
|
||||
System.arraycopy(defaultDisplayOption.borderSpaces, 0, result.borderSpaces, 0,
|
||||
COUNT_SIZES);
|
||||
|
||||
initGrid(context, myInfo, result, false);
|
||||
initGrid(context, myInfo, result, deviceType);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -246,6 +264,18 @@ public class InvariantDeviceProfile {
|
||||
}
|
||||
}
|
||||
|
||||
private static @DeviceType int getDeviceType(Info displayInfo) {
|
||||
// Each screen has two profiles (portrait/landscape), so devices with four or more
|
||||
// supported profiles implies two or more internal displays.
|
||||
if (displayInfo.supportedBounds.size() >= 4 && ENABLE_TWO_PANEL_HOME.get()) {
|
||||
return TYPE_MULTI_DISPLAY;
|
||||
} else if (displayInfo.supportedBounds.stream().allMatch(displayInfo::isTablet)) {
|
||||
return TYPE_TABLET;
|
||||
} else {
|
||||
return TYPE_PHONE;
|
||||
}
|
||||
}
|
||||
|
||||
public static String getCurrentGridName(Context context) {
|
||||
return Utilities.isGridOptionsEnabled(context)
|
||||
? Utilities.getPrefs(context).getString(KEY_IDP_GRID_NAME, null) : null;
|
||||
@@ -253,23 +283,19 @@ public class InvariantDeviceProfile {
|
||||
|
||||
private String initGrid(Context context, String gridName) {
|
||||
Info displayInfo = DisplayController.INSTANCE.get(context).getInfo();
|
||||
// Each screen has two profiles (portrait/landscape), so devices with four or more
|
||||
// supported profiles implies two or more internal displays.
|
||||
boolean isSplitDisplay =
|
||||
displayInfo.supportedBounds.size() >= 4 && ENABLE_TWO_PANEL_HOME.get();
|
||||
@DeviceType int deviceType = getDeviceType(displayInfo);
|
||||
|
||||
ArrayList<DisplayOption> allOptions =
|
||||
getPredefinedDeviceProfiles(context, gridName, isSplitDisplay,
|
||||
getPredefinedDeviceProfiles(context, gridName, deviceType,
|
||||
RestoreDbTask.isPending(context));
|
||||
DisplayOption displayOption =
|
||||
invDistWeightedInterpolate(displayInfo, allOptions, isSplitDisplay);
|
||||
initGrid(context, displayInfo, displayOption, isSplitDisplay);
|
||||
invDistWeightedInterpolate(displayInfo, allOptions, deviceType);
|
||||
initGrid(context, displayInfo, displayOption, deviceType);
|
||||
return displayOption.grid.name;
|
||||
}
|
||||
|
||||
private void initGrid(
|
||||
Context context, Info displayInfo, DisplayOption displayOption,
|
||||
boolean isSplitDisplay) {
|
||||
private void initGrid(Context context, Info displayInfo, DisplayOption displayOption,
|
||||
@DeviceType int deviceType) {
|
||||
DisplayMetrics metrics = context.getResources().getDisplayMetrics();
|
||||
GridOption closestProfile = displayOption.grid;
|
||||
numRows = closestProfile.numRows;
|
||||
@@ -281,7 +307,7 @@ public class InvariantDeviceProfile {
|
||||
numFolderColumns = closestProfile.numFolderColumns;
|
||||
isScalable = closestProfile.isScalable;
|
||||
devicePaddingId = closestProfile.devicePaddingId;
|
||||
this.isSplitDisplay = isSplitDisplay;
|
||||
this.deviceType = deviceType;
|
||||
|
||||
mExtraAttrs = closestProfile.extraAttrs;
|
||||
|
||||
@@ -303,11 +329,11 @@ public class InvariantDeviceProfile {
|
||||
horizontalMargin = displayOption.horizontalMargin;
|
||||
|
||||
numShownHotseatIcons = closestProfile.numHotseatIcons;
|
||||
numDatabaseHotseatIcons = isSplitDisplay
|
||||
numDatabaseHotseatIcons = deviceType == TYPE_MULTI_DISPLAY
|
||||
? closestProfile.numDatabaseHotseatIcons : closestProfile.numHotseatIcons;
|
||||
|
||||
numAllAppsColumns = closestProfile.numAllAppsColumns;
|
||||
numDatabaseAllAppsColumns = isSplitDisplay
|
||||
numDatabaseAllAppsColumns = deviceType == TYPE_MULTI_DISPLAY
|
||||
? closestProfile.numDatabaseAllAppsColumns : closestProfile.numAllAppsColumns;
|
||||
|
||||
if (!Utilities.isGridOptionsEnabled(context)) {
|
||||
@@ -327,7 +353,7 @@ public class InvariantDeviceProfile {
|
||||
defaultWallpaperSize = new Point(displayInfo.currentSize);
|
||||
for (WindowBounds bounds : displayInfo.supportedBounds) {
|
||||
localSupportedProfiles.add(new DeviceProfile.Builder(context, this, displayInfo)
|
||||
.setUseTwoPanels(isSplitDisplay)
|
||||
.setUseTwoPanels(deviceType == TYPE_MULTI_DISPLAY)
|
||||
.setWindowBounds(bounds).build());
|
||||
|
||||
// Wallpaper size should be the maximum of the all possible sizes Launcher expects
|
||||
@@ -350,11 +376,6 @@ public class InvariantDeviceProfile {
|
||||
defaultWidgetPadding = AppWidgetHostView.getDefaultPaddingForWidget(context, cn, null);
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public TypedValue getAttrValue(int attr) {
|
||||
return mExtraAttrs == null ? null : mExtraAttrs.get(attr);
|
||||
}
|
||||
|
||||
public void addOnChangeListener(OnIDPChangeListener listener) {
|
||||
mChangeListeners.add(listener);
|
||||
}
|
||||
@@ -389,12 +410,11 @@ public class InvariantDeviceProfile {
|
||||
}
|
||||
}
|
||||
|
||||
private static ArrayList<DisplayOption> getPredefinedDeviceProfiles(
|
||||
Context context, String gridName, boolean isSplitDisplay, boolean allowDisabledGrid) {
|
||||
private static ArrayList<DisplayOption> getPredefinedDeviceProfiles(Context context,
|
||||
String gridName, @DeviceType int deviceType, boolean allowDisabledGrid) {
|
||||
ArrayList<DisplayOption> profiles = new ArrayList<>();
|
||||
int xmlResource = isSplitDisplay ? R.xml.device_profiles_split : R.xml.device_profiles;
|
||||
|
||||
try (XmlResourceParser parser = context.getResources().getXml(xmlResource)) {
|
||||
try (XmlResourceParser parser = context.getResources().getXml(R.xml.device_profiles)) {
|
||||
final int depth = parser.getDepth();
|
||||
int type;
|
||||
while (((type = parser.next()) != XmlPullParser.END_TAG ||
|
||||
@@ -402,8 +422,8 @@ public class InvariantDeviceProfile {
|
||||
if ((type == XmlPullParser.START_TAG)
|
||||
&& GridOption.TAG_NAME.equals(parser.getName())) {
|
||||
|
||||
GridOption gridOption =
|
||||
new GridOption(context, Xml.asAttributeSet(parser), isSplitDisplay);
|
||||
GridOption gridOption = new GridOption(context, Xml.asAttributeSet(parser),
|
||||
deviceType);
|
||||
if (gridOption.isEnabled || allowDisabledGrid) {
|
||||
final int displayDepth = parser.getDepth();
|
||||
while (((type = parser.next()) != XmlPullParser.END_TAG
|
||||
@@ -450,9 +470,8 @@ public class InvariantDeviceProfile {
|
||||
*/
|
||||
public List<GridOption> parseAllGridOptions(Context context) {
|
||||
List<GridOption> result = new ArrayList<>();
|
||||
int xmlResource = isSplitDisplay ? R.xml.device_profiles_split : R.xml.device_profiles;
|
||||
|
||||
try (XmlResourceParser parser = context.getResources().getXml(xmlResource)) {
|
||||
try (XmlResourceParser parser = context.getResources().getXml(R.xml.device_profiles)) {
|
||||
final int depth = parser.getDepth();
|
||||
int type;
|
||||
while (((type = parser.next()) != XmlPullParser.END_TAG
|
||||
@@ -460,7 +479,7 @@ public class InvariantDeviceProfile {
|
||||
if ((type == XmlPullParser.START_TAG)
|
||||
&& GridOption.TAG_NAME.equals(parser.getName())) {
|
||||
GridOption option =
|
||||
new GridOption(context, Xml.asAttributeSet(parser), isSplitDisplay);
|
||||
new GridOption(context, Xml.asAttributeSet(parser), deviceType);
|
||||
if (option.isEnabled) {
|
||||
result.add(option);
|
||||
}
|
||||
@@ -514,12 +533,12 @@ public class InvariantDeviceProfile {
|
||||
}
|
||||
|
||||
private static DisplayOption invDistWeightedInterpolate(
|
||||
Info displayInfo, ArrayList<DisplayOption> points, boolean isSplitDisplay) {
|
||||
Info displayInfo, ArrayList<DisplayOption> points, @DeviceType int deviceType) {
|
||||
int minWidthPx = Integer.MAX_VALUE;
|
||||
int minHeightPx = Integer.MAX_VALUE;
|
||||
for (WindowBounds bounds : displayInfo.supportedBounds) {
|
||||
boolean isTablet = displayInfo.isTablet(bounds);
|
||||
if (isTablet && isSplitDisplay) {
|
||||
if (isTablet && deviceType == TYPE_MULTI_DISPLAY) {
|
||||
// For split displays, take half width per page
|
||||
minWidthPx = Math.min(minWidthPx, bounds.availableSize.x / 2);
|
||||
minHeightPx = Math.min(minHeightPx, bounds.availableSize.y);
|
||||
@@ -643,6 +662,12 @@ public class InvariantDeviceProfile {
|
||||
|
||||
public static final String TAG_NAME = "grid-option";
|
||||
|
||||
private static final int DEVICE_CATEGORY_PHONE = 1 << 0;
|
||||
private static final int DEVICE_CATEGORY_TABLET = 1 << 1;
|
||||
private static final int DEVICE_CATEGORY_MULTI_DISPLAY = 1 << 2;
|
||||
private static final int DEVICE_CATEGORY_ALL =
|
||||
DEVICE_CATEGORY_PHONE | DEVICE_CATEGORY_TABLET | DEVICE_CATEGORY_MULTI_DISPLAY;
|
||||
|
||||
public final String name;
|
||||
public final int numRows;
|
||||
public final int numColumns;
|
||||
@@ -666,7 +691,7 @@ public class InvariantDeviceProfile {
|
||||
|
||||
private final SparseArray<TypedValue> extraAttrs;
|
||||
|
||||
public GridOption(Context context, AttributeSet attrs, boolean isSplitDisplay) {
|
||||
public GridOption(Context context, AttributeSet attrs, @DeviceType int deviceType) {
|
||||
TypedArray a = context.obtainStyledAttributes(
|
||||
attrs, R.styleable.GridDisplayOption);
|
||||
name = a.getString(R.styleable.GridDisplayOption_name);
|
||||
@@ -674,7 +699,7 @@ public class InvariantDeviceProfile {
|
||||
numColumns = a.getInt(R.styleable.GridDisplayOption_numColumns, 0);
|
||||
|
||||
dbFile = a.getString(R.styleable.GridDisplayOption_dbFile);
|
||||
defaultLayoutId = a.getResourceId(isSplitDisplay && a.hasValue(
|
||||
defaultLayoutId = a.getResourceId(deviceType == TYPE_MULTI_DISPLAY && a.hasValue(
|
||||
R.styleable.GridDisplayOption_defaultSplitDisplayLayoutId)
|
||||
? R.styleable.GridDisplayOption_defaultSplitDisplayLayoutId
|
||||
: R.styleable.GridDisplayOption_defaultLayoutId, 0);
|
||||
@@ -701,7 +726,15 @@ public class InvariantDeviceProfile {
|
||||
devicePaddingId = a.getResourceId(
|
||||
R.styleable.GridDisplayOption_devicePaddingId, 0);
|
||||
|
||||
isEnabled = a.getBoolean(R.styleable.GridDisplayOption_gridEnabled, true);
|
||||
int deviceCategory = a.getInt(R.styleable.GridDisplayOption_deviceCategory,
|
||||
DEVICE_CATEGORY_ALL);
|
||||
isEnabled = (deviceType == TYPE_PHONE
|
||||
&& ((deviceCategory & DEVICE_CATEGORY_PHONE) == DEVICE_CATEGORY_PHONE))
|
||||
|| (deviceType == TYPE_TABLET
|
||||
&& ((deviceCategory & DEVICE_CATEGORY_TABLET) == DEVICE_CATEGORY_TABLET))
|
||||
|| (deviceType == TYPE_MULTI_DISPLAY
|
||||
&& ((deviceCategory & DEVICE_CATEGORY_MULTI_DISPLAY)
|
||||
== DEVICE_CATEGORY_MULTI_DISPLAY));
|
||||
|
||||
a.recycle();
|
||||
extraAttrs = Themes.createValueMap(context, attrs,
|
||||
|
||||
@@ -16,6 +16,9 @@
|
||||
|
||||
package com.android.launcher3.model;
|
||||
|
||||
import static com.android.launcher3.InvariantDeviceProfile.DeviceType;
|
||||
import static com.android.launcher3.InvariantDeviceProfile.TYPE_MULTI_DISPLAY;
|
||||
import static com.android.launcher3.InvariantDeviceProfile.TYPE_PHONE;
|
||||
import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_GRID_SIZE_2;
|
||||
import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_GRID_SIZE_3;
|
||||
import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_GRID_SIZE_4;
|
||||
@@ -25,15 +28,11 @@ import android.content.Context;
|
||||
import android.content.SharedPreferences;
|
||||
import android.text.TextUtils;
|
||||
|
||||
import androidx.annotation.IntDef;
|
||||
|
||||
import com.android.launcher3.InvariantDeviceProfile;
|
||||
import com.android.launcher3.Utilities;
|
||||
import com.android.launcher3.logging.StatsLogManager.LauncherEvent;
|
||||
import com.android.launcher3.util.IntSet;
|
||||
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.util.Locale;
|
||||
import java.util.Objects;
|
||||
|
||||
@@ -46,13 +45,6 @@ public class DeviceGridState {
|
||||
public static final String KEY_HOTSEAT_COUNT = "migration_src_hotseat_count";
|
||||
public static final String KEY_DEVICE_TYPE = "migration_src_device_type";
|
||||
|
||||
@Retention(RetentionPolicy.SOURCE)
|
||||
@IntDef({TYPE_PHONE, TYPE_MULTI_DISPLAY, TYPE_TABLET})
|
||||
public @interface DeviceType{}
|
||||
public static final int TYPE_PHONE = 0;
|
||||
public static final int TYPE_MULTI_DISPLAY = 1;
|
||||
public static final int TYPE_TABLET = 2;
|
||||
|
||||
private static final IntSet COMPATIBLE_TYPES = IntSet.wrap(TYPE_PHONE, TYPE_MULTI_DISPLAY);
|
||||
|
||||
public static boolean deviceTypeCompatible(@DeviceType int typeA, @DeviceType int typeB) {
|
||||
@@ -67,11 +59,7 @@ public class DeviceGridState {
|
||||
public DeviceGridState(InvariantDeviceProfile idp) {
|
||||
mGridSizeString = String.format(Locale.ENGLISH, "%d,%d", idp.numColumns, idp.numRows);
|
||||
mNumHotseat = idp.numDatabaseHotseatIcons;
|
||||
mDeviceType = idp.supportedProfiles.size() > 2
|
||||
? TYPE_MULTI_DISPLAY
|
||||
: idp.supportedProfiles.stream().allMatch(dp -> dp.isTablet)
|
||||
? TYPE_TABLET
|
||||
: TYPE_PHONE;
|
||||
mDeviceType = idp.deviceType;
|
||||
}
|
||||
|
||||
public DeviceGridState(Context context) {
|
||||
|
||||
@@ -16,8 +16,8 @@
|
||||
|
||||
package com.android.launcher3.provider;
|
||||
|
||||
import static com.android.launcher3.model.DeviceGridState.TYPE_MULTI_DISPLAY;
|
||||
import static com.android.launcher3.model.DeviceGridState.TYPE_PHONE;
|
||||
import static com.android.launcher3.InvariantDeviceProfile.TYPE_MULTI_DISPLAY;
|
||||
import static com.android.launcher3.InvariantDeviceProfile.TYPE_PHONE;
|
||||
import static com.android.launcher3.provider.LauncherDbUtils.dropTable;
|
||||
|
||||
import android.app.backup.BackupManager;
|
||||
|
||||
Reference in New Issue
Block a user