Home
last modified time | relevance | path

Searched refs:isChangeEnabled (Results 1 – 18 of 18) sorted by relevance

/cts/tests/AlarmManager/util/src/android/alarmmanager/util/
DUtils.java35 private static boolean isChangeEnabled(long changeId, String packageName, UserHandle user) { in isChangeEnabled() method in Utils
38 () -> CompatChanges.isChangeEnabled(changeId, packageName, user), in isChangeEnabled()
47 if (!isChangeEnabled(changeId, packageName, UserHandle.of(userId))) { in enableChange()
54 if (!CompatChanges.isChangeEnabled(changeId)) { in enableChangeForSelf()
/cts/hostsidetests/appcompat/compatchanges/app/src/com/android/cts/appcompat/compatchanges/
DCompatChangesTest.java84 assertThat(CompatChanges.isChangeEnabled(CTS_SYSTEM_API_CHANGEID)).isTrue(); in isChangeEnabled_changeEnabled()
91 assertThat(CompatChanges.isChangeEnabled(CTS_SYSTEM_API_CHANGEID, context.getPackageName(), in isChangeEnabledPackageName_changeEnabled()
99 CompatChanges.isChangeEnabled(CTS_SYSTEM_API_CHANGEID, Process.myUid())).isTrue(); in isChangeEnabledUid_changeEnabled()
105 assertThat(CompatChanges.isChangeEnabled(CTS_SYSTEM_API_CHANGEID)).isFalse(); in isChangeEnabled_changeDisabled()
112 assertThat(CompatChanges.isChangeEnabled(CTS_SYSTEM_API_CHANGEID, context.getPackageName(), in isChangeEnabledPackageName_changeDisabled()
120 CompatChanges.isChangeEnabled(CTS_SYSTEM_API_CHANGEID, Process.myUid())).isFalse(); in isChangeEnabledUid_changeDisabled()
/cts/hostsidetests/voiceinteraction/app/src/com/android/cts/voiceinteraction/
DVoiceInteractionCompatTests.java57 assertThat(CompatChanges.isChangeEnabled(ENFORCE_HOTWORD_PHRASE_ID)).isTrue(); in enforceHotwordPhraseIdEnabled()
59 assertThat(CompatChanges.isChangeEnabled(ENFORCE_HOTWORD_PHRASE_ID, in enforceHotwordPhraseIdEnabled()
93 assertThat(CompatChanges.isChangeEnabled(ENFORCE_HOTWORD_PHRASE_ID)).isFalse(); in enforceHotwordPhraseIdDisabled()
95 assertThat(CompatChanges.isChangeEnabled(ENFORCE_HOTWORD_PHRASE_ID, in enforceHotwordPhraseIdDisabled()
/cts/hostsidetests/inputmethodservice/deviceside/devicetest/src/android/inputmethodservice/cts/devicetest/
DInlineSuggestionsRequestDeviceTest.java52 assertTrue(CompatChanges.isChangeEnabled(169273070L)); in imeAutofillDefaultSupportedLocalesIsEmpty_changeEnabled()
59 assertFalse(CompatChanges.isChangeEnabled(169273070L)); in imeAutofillDefaultSupportedLocalesIsEmpty_changeDisabled()
/cts/hostsidetests/media/app/AudioTest/src/android/media/audio/app/
DAudioVolumeBehaviorCompatTest.java87 assertTrue(CompatChanges.isChangeEnabled(240663182L)); in changeEnabled_getDeviceVolumeBehaviorReturnsAbsoluteVolumeAdjustOnlyBehavior()
118 assertFalse(CompatChanges.isChangeEnabled(240663182L)); in changeDisabled_getDeviceVolumeBehaviorReturnsFullVolumeBehavior()
/cts/tests/framework/base/windowmanager/appCompatViewSandboxOptout/src/android/server/wm/optoutsandboxingviewboundsapis/
DTestCompatViewSandboxOptOutActivity.java72 final boolean isCompatChangeEnabled = CompatChanges.isChangeEnabled( in onDraw()
/cts/tests/framework/base/windowmanager/appCompatViewSandboxAllowed/src/android/server/wm/allowsandboxingviewboundsapis/
DTestCompatAllowViewSandboxActivity.java74 final boolean isCompatChangeEnabled = CompatChanges.isChangeEnabled( in onDraw()
/cts/tests/JobScheduler/src/android/jobscheduler/cts/
DTimingConstraintsTest.java110 if (CompatChanges.isChangeEnabled(TestAppInterface.ENFORCE_MINIMUM_TIME_WINDOWS)) { in testJobParameters_expiredDeadline()
DJobInfoTest.java107 if (CompatChanges.isChangeEnabled(THROW_ON_UNSUPPORTED_BIAS_USAGE)) { in testBias()
477 if (CompatChanges.isChangeEnabled(REJECT_NEGATIVE_DELAYS_AND_DEADLINES)) { in testMinimumLatency_negative()
516 if (CompatChanges.isChangeEnabled(ENFORCE_MINIMUM_TIME_WINDOWS) && isAconfigFlagEnabled( in testOverrideDeadline_minimumTimeWindows()
537 if (CompatChanges.isChangeEnabled(REJECT_NEGATIVE_DELAYS_AND_DEADLINES)) { in testOverrideDeadline_negative()
DConnectivityConstraintTest.java659 if (CompatChanges.isChangeEnabled(TestAppInterface.ENFORCE_MINIMUM_TIME_WINDOWS)) { in testJobParametersNetwork()
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/testcore/
DHelper.java282 if (SystemUtil.callWithShellPermissionIdentity(() -> CompatChanges.isChangeEnabled(
395 final boolean enableMultipleHotwordDetectors = CompatChanges.isChangeEnabled(
/cts/tests/tests/gameframerate/src/
DGameFrameRateTest.java104 CompatChanges.isChangeEnabled(DISPLAY_MODE_RETURNS_PHYSICAL_REFRESH_RATE_CHANGEID); in setUp()
/cts/tests/tests/graphics/src/android/graphics/cts/
DFrameRateOverrideTest.java102 CompatChanges.isChangeEnabled(DISPLAY_MODE_RETURNS_PHYSICAL_REFRESH_RATE_CHANGEID); in setUp()
/cts/tests/tests/notification/src/android/app/notification/current/cts/
DNotificationManagerZenTest.java2163 if (!Flags.modesApi() || !CompatChanges.isChangeEnabled(308673617)) { in testSnoozeRule()
2239 if (CompatChanges.isChangeEnabled(308673617)) { in testUnsnoozeRule_disableEnable()
2884 if (!android.app.Flags.modesApi() || !CompatChanges.isChangeEnabled(308670109L)) { in testSetInterruptionFilter_usesAutomaticZenRule()
2902 if (!android.app.Flags.modesApi() || !CompatChanges.isChangeEnabled(308670109L)) { in testSetNotificationPolicy_usesAutomaticZenRule()
2928 if (!android.app.Flags.modesApi() || !CompatChanges.isChangeEnabled(308670109L)) { in testSetInterruptionFilter_withSetNotificationPolicy_sharesAutomaticZenRule()
DNotificationManagerTest.java3009 if (!CompatChanges.isChangeEnabled(ENFORCE_NO_CLEAR_FLAG_ON_MEDIA_NOTIFICATION)) { in testMediaStyle_setNoClearFlag()
3035 if (!CompatChanges.isChangeEnabled(ENFORCE_NO_CLEAR_FLAG_ON_MEDIA_NOTIFICATION)) { in testCustomMediaStyle_setNoClearFlag()
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/
DMockImeSession.java416 result.set(CompatChanges.isChangeEnabled(FINISH_INPUT_NO_FALLBACK_CONNECTION, in isFinishInputNoFallbackConnectionEnabled()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DKeyboardVisibilityControlTest.java1842 CompatChanges.isChangeEnabled(CLEAR_SHOW_FORCED_FLAG_WHEN_LEAVING, packageName, in isClearShowForcedFlagEnabled()
/cts/common/device-side/bedstead/remoteframeworkclasses/java/apis/
Dsystem-current.txt2084 method public static boolean isChangeEnabled(long);
2085 …FIG", "android.permission.LOG_COMPAT_CHANGE"}) public static boolean isChangeEnabled(long, @NonNul…
2086 …CONFIG", "android.permission.LOG_COMPAT_CHANGE"}) public static boolean isChangeEnabled(long, int);