Home
last modified time | relevance | path

Searched refs:DeviceGridState (Results 1 – 10 of 10) sorted by relevance

/packages/apps/Launcher3/tests/src/com/android/launcher3/model/
DGridMigrationTest.kt48 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/
DDeviceGridState.java44 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()
DModelDbController.java284 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()
DGridSizeMigrationUtil.java87 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/
DGridSizeMigrationUtilTest.kt137 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/
DLauncherPrefs.kt26 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>()
DInvariantDeviceProfile.java55 import com.android.launcher3.model.DeviceGridState;
235 new DeviceGridState(this).writeToPrefs(context)); in InvariantDeviceProfile()
/packages/apps/Launcher3/tests/src/com/android/launcher3/model/gridmigration/
DValidGridMigrationUnitTest.kt32 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/
DSettingsChangeLogger.java28 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/
DRestoreDbTask.java65 import com.android.launcher3.model.DeviceGridState;
418 DeviceGridState deviceGridState = new DeviceGridState(context); in setPending()