/packages/apps/Launcher3/tests/src/com/android/launcher3/model/ |
D | GridMigrationTest.kt | 48 class GridMigrationData(dbFileName: String?, val gridState: DeviceGridState) { in <lambda>() 158 src = GridMigrationData(DB_FILE, DeviceGridState(5, 5, 5, TYPE_PHONE, DB_FILE)), in 5x5 to 3x3() 163 DeviceGridState(3, 3, 3, TYPE_PHONE, "") in 5x5 to 3x3() 166 GridMigrationData("result5x5to3x3.db", DeviceGridState(3, 3, 3, TYPE_PHONE, "")) in 5x5 to 3x3() 181 src = GridMigrationData(DB_FILE, DeviceGridState(5, 5, 5, TYPE_PHONE, DB_FILE)), in 5x5 to 3x3() 186 DeviceGridState(4, 7, 4, TYPE_PHONE, "") in 5x5 to 3x3() 189 GridMigrationData("result5x5to4x7.db", DeviceGridState(4, 7, 4, TYPE_PHONE, "")) in 5x5 to 3x3() 204 src = GridMigrationData(DB_FILE, DeviceGridState(5, 5, 5, TYPE_PHONE, DB_FILE)), in 5x5 to 3x3() 209 DeviceGridState(5, 8, 5, TYPE_PHONE, "") in 5x5 to 3x3() 212 GridMigrationData("result5x5to5x8.db", DeviceGridState(5, 8, 5, TYPE_PHONE, "")) in 5x5 to 3x3() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/model/ |
D | DeviceGridState.java | 44 public class DeviceGridState implements Comparable<DeviceGridState> { class 56 public DeviceGridState(int columns, int row, int numHotseat, int deviceType, String dbFile) { in DeviceGridState() method in DeviceGridState 63 public DeviceGridState(InvariantDeviceProfile idp) { in DeviceGridState() method in DeviceGridState 70 public DeviceGridState(Context context) { in DeviceGridState() method in DeviceGridState 148 public boolean isCompatible(DeviceGridState other) { in isCompatible() 167 public int compareTo(DeviceGridState other) { in compareTo()
|
D | ModelDbController.java | 284 new DeviceGridState(LauncherAppState.getIDP(mContext)).writeToPrefs(mContext); in tryMigrateDB() 306 String targetDbName = new DeviceGridState(idp).getDbFile(); in migrateGridIfNeeded() 316 DeviceGridState srcDeviceState = new DeviceGridState(mContext); in migrateGridIfNeeded() 318 DeviceGridState destDeviceState = new DeviceGridState(idp); in migrateGridIfNeeded()
|
D | GridSizeMigrationUtil.java | 87 return needsToMigrate(new DeviceGridState(context), new DeviceGridState(idp)); in needsToMigrate() 91 DeviceGridState srcDeviceState, DeviceGridState destDeviceState) { in needsToMigrate() 120 @NonNull DeviceGridState srcDeviceState, in migrateGridIfNeeded() 121 @NonNull DeviceGridState destDeviceState, in migrateGridIfNeeded() 168 @NonNull final DeviceGridState srcDeviceState, in migrate() 169 @NonNull final DeviceGridState destDeviceState) { in migrate()
|
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/model/ |
D | GridSizeMigrationUtilTest.kt | 137 DeviceGridState(context), in <lambda>() 138 DeviceGridState(idp) in <lambda>() 250 DeviceGridState(context), in <lambda>() 251 DeviceGridState(idp) in <lambda>() 308 DeviceGridState(idp), in <lambda>() 309 DeviceGridState(context) in <lambda>() 369 DeviceGridState(context), in <lambda>() 370 DeviceGridState(idp) in <lambda>() 503 DeviceGridState(context), in <lambda>() 504 DeviceGridState(idp) in <lambda>() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | LauncherPrefs.kt | 26 import com.android.launcher3.model.DeviceGridState in <lambda>() 269 backedUpItem(DeviceGridState.KEY_WORKSPACE_SIZE, "", EncryptionType.ENCRYPTED) in <lambda>() 272 backedUpItem(DeviceGridState.KEY_HOTSEAT_COUNT, -1, EncryptionType.ENCRYPTED) in <lambda>() 283 DeviceGridState.KEY_DEVICE_TYPE, in <lambda>() 288 val DB_FILE = backedUpItem(DeviceGridState.KEY_DB_FILE, "", EncryptionType.ENCRYPTED) in <lambda>()
|
D | InvariantDeviceProfile.java | 55 import com.android.launcher3.model.DeviceGridState; 235 new DeviceGridState(this).writeToPrefs(context)); in InvariantDeviceProfile()
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/model/gridmigration/ |
D | ValidGridMigrationUnitTest.kt | 32 import com.android.launcher3.model.DeviceGridState in <lambda>() 44 fun toGridState(): DeviceGridState = in <lambda>() 45 DeviceGridState(size.x, size.y, size.x, InvariantDeviceProfile.TYPE_PHONE, tableName) in <lambda>()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/logging/ |
D | SettingsChangeLogger.java | 28 import static com.android.launcher3.model.DeviceGridState.KEY_WORKSPACE_SIZE; 48 import com.android.launcher3.model.DeviceGridState; 180 Optional.ofNullable(new DeviceGridState(mContext).getWorkspaceSizeEvent()).ifPresent( in logSnapshot()
|
/packages/apps/Launcher3/src/com/android/launcher3/provider/ |
D | RestoreDbTask.java | 65 import com.android.launcher3.model.DeviceGridState; 418 DeviceGridState deviceGridState = new DeviceGridState(context); in setPending()
|