/cts/tests/AlarmManager/util/src/android/alarmmanager/util/ |
D | Utils.java | 35 private static boolean isChangeEnabled(long changeId, String packageName, UserHandle user) { in isChangeEnabled() argument 38 () -> CompatChanges.isChangeEnabled(changeId, packageName, user), in isChangeEnabled() 46 public static void enableChange(long changeId, String packageName, int userId) { in enableChange() argument 47 if (!isChangeEnabled(changeId, packageName, UserHandle.of(userId))) { in enableChange() 48 SystemUtil.runShellCommand("am compat enable --no-kill " + changeId + " " in enableChange() 53 public static void enableChangeForSelf(long changeId) { in enableChangeForSelf() argument 54 if (!CompatChanges.isChangeEnabled(changeId)) { in enableChangeForSelf() 55 SystemUtil.runShellCommand("am compat enable --no-kill " + changeId + " " in enableChangeForSelf() 60 public static void resetChange(long changeId, String packageName) { in resetChange() argument 61 SystemUtil.runShellCommand("am compat reset --no-kill " + changeId + " " + packageName); in resetChange()
|
/cts/hostsidetests/appcompat/host/lib/src/android/compat/cts/ |
D | Change.java | 36 public long changeId; field in Change 47 private Change(long changeId, String changeName, int sinceSdk, in Change() argument 51 this.changeId = changeId; in Change() 64 long changeId = 0; in fromString() local 81 changeId = Long.parseLong(matcher.group("changeId")); in fromString() 111 return new Change(changeId, changeName, sinceSdk, disabled, loggingOnly, overridable, in fromString() 118 long changeId = Long.parseLong(element.getAttribute("id")); in fromNode() local 144 return new Change(changeId, changeName, sinceSdk, disabled, loggingOnly, overridable, in fromNode() 151 return Objects.hash(changeId, changeName, sinceSdk, disabled, hasOverrides); in hashCode() 163 return this.changeId == that.changeId in equals() [all …]
|
D | CompatChangeGatingTestCase.java | 411 protected Change getOnDeviceChangeIdConfig(long changeId) throws Exception { 414 if (change.changeId == changeId) {
|
/cts/hostsidetests/appcompat/compatchanges/src/com/android/cts/appcompat/ |
D | CompatChangesValidConfigTest.java | 181 if (it.next().changeId == RESTRICT_STORAGE_ACCESS_FRAMEWORK) { in getExpectedCompatConfig() 189 changes.removeIf(c -> c.changeId == SPLIT_AS_STREAM_RETURNS_SINGLE_EMPTY_STRING); in getExpectedCompatConfig() 193 changes.removeIf(c -> c.changeId == PRIORITY_QUEUE_OFFER_NON_COMPARABLE_ONE_ELEMENT); in getExpectedCompatConfig()
|
D | AppCompatOverridesServiceTest.java | 318 private Change getChange(long changeId) throws Exception { in getChange() argument 322 Change ctsChange = getOnDeviceChangeIdConfig(changeId); in getChange() 323 assertWithMessage("CTS specific change %s not found on device", changeId) in getChange()
|
/cts/tests/tests/appop/appopsTestUtilLib/src/android/app/appops/cts/ |
D | AppOpsUtils.kt | 183 fun withEnabledCompatChange(changeId: Long, packageName: String, wrapped: () -> Unit) { in withEnabledCompatChange() 185 runCommand("am compat enable $changeId $packageName") in withEnabledCompatChange() 189 runCommand("am compat reset $changeId $packageName") in withEnabledCompatChange()
|
/cts/tests/app/src/android/app/cts/ |
D | CloseSystemDialogsTest.java | 488 private static void compat(String command, String changeId, String packageName) { in compat() argument 490 String.format("am compat %s %s %s", command, changeId, packageName)); in compat() 493 private static void compat(String command, long changeId, String packageName) { in compat() argument 494 compat(command, Long.toString(changeId), packageName); in compat()
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/alarm/ |
D | AlarmStatsTests.java | 90 private void enableCompatChange(String changeId, String packageName) in enableCompatChange() argument 93 .append(changeId).append(" ").append(packageName); in enableCompatChange()
|
/cts/hostsidetests/library/src/android/appmanifest/cts/ |
D | UsesNativeLibraryTestCase.java | 334 private void setCompatChange(long changeId, String packageName, CompatChangeState state) 353 cmd.append(changeId).append(" ");
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | SaferIntentTest.java | 180 private void setCompatOverride(long changeId, boolean enable) { in setCompatOverride() argument 181 var override = Map.of(changeId, new PackageOverride.Builder().setEnabled(enable).build()); in setCompatOverride()
|
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/ |
D | ActivityManagerTestBase.java | 3158 public CompatChangeCloseable(final Long changeId, String packageName) { 3159 this(changeId.toString(), packageName);
|