/cts/common/device-side/bedstead/modules/flags/src/main/kotlin/com/android/bedstead/flags/ |
D | FlagsAnnotationExecutor.kt | 18 import android.platform.test.flag.junit.DeviceFlagsValueProvider 38 for (flag in flags) { in requireFlagsEnabled() method 40 String.format("Flag %s required to be enabled, but is disabled", flag), in requireFlagsEnabled() 41 flagValueProvider.getBoolean(flag) in requireFlagsEnabled() 47 for (flag in flags) { in requireFlagsDisabled() method 49 String.format("Flag %s required to be disabled, but is enabled", flag), in requireFlagsDisabled() 50 flagValueProvider.getBoolean(flag) in requireFlagsDisabled()
|
/cts/flags/tests/aconfig/ |
D | android.cts.flags.tests.aconfig | 3 flag { 6 description: "testing flag that is always disabled" 10 flag { 13 description: "another testing flag that is always disabled" 17 flag { 20 description: "testing flag that is always enabled"
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/intent/ |
D | Cases.java | 31 import static android.server.wm.intent.Persistence.flag; 52 public static final IntentFlag CLEAR_TASK = flag(FLAG_ACTIVITY_CLEAR_TASK, 54 public static final IntentFlag CLEAR_TOP = flag(FLAG_ACTIVITY_CLEAR_TOP, 56 private static final IntentFlag SINGLE_TOP = flag(FLAG_ACTIVITY_SINGLE_TOP, 58 public static final IntentFlag NEW_TASK = flag(FLAG_ACTIVITY_NEW_TASK, 60 public static final IntentFlag NEW_DOCUMENT = flag(FLAG_ACTIVITY_NEW_DOCUMENT, 62 private static final IntentFlag MULTIPLE_TASK = flag(FLAG_ACTIVITY_MULTIPLE_TASK, 64 public static final IntentFlag RESET_TASK_IF_NEEDED = flag( 67 public static final IntentFlag PREVIOUS_IS_TOP = flag(FLAG_ACTIVITY_PREVIOUS_IS_TOP, 69 public static final IntentFlag REORDER_TO_FRONT = flag(FLAG_ACTIVITY_REORDER_TO_FRONT, [all …]
|
D | Persistence.java | 265 int flag = 0; in buildFlag() local 267 flag |= intentFlag.flag; in buildFlag() 270 return flag; in buildFlag() 411 public final int flag; field in Persistence.IntentFlag 417 public IntentFlag(int flag, String name) { in IntentFlag() argument 418 this.flag = flag; in IntentFlag() 423 return flag; in getFlag() 431 return other.flag | flag; in combine() 444 static IntentFlag flag(int flag, String name) { in flag() method in Persistence 445 return new IntentFlag(flag, name); in flag()
|
/cts/tests/devicepolicy/src/android/devicepolicy/cts/ |
D | KeyguardDisableFeaturesTest.java | 50 public void setKeyguardDisabledFeature_isSet(@PolicyArgument int flag) { in setKeyguardDisabledFeature_isSet() argument 53 sDeviceState.dpc().componentName(), flag); in setKeyguardDisabledFeature_isSet() local 55 assertThat(TestApis.devicePolicy().getKeyguardDisabledFeatures()).isEqualTo(flag); in setKeyguardDisabledFeature_isSet() 69 public void setKeyguardDisabledFeature_cannotSet_isNotSet(@PolicyArgument int flag) { in setKeyguardDisabledFeature_cannotSet_isNotSet() argument 72 sDeviceState.dpc().componentName(), flag); in setKeyguardDisabledFeature_cannotSet_isNotSet() local 74 assertThat(TestApis.devicePolicy().getKeyguardDisabledFeatures()).isNotEqualTo(flag); in setKeyguardDisabledFeature_cannotSet_isNotSet()
|
D | CrossProfileIntentFiltersTest.java | 107 int flag = TestApis.users().instrumented().equals(sDeviceState.workProfile()) in queryIntentActivities_intentFilterIsSet_includesAppInOtherUser() local 113 testIntentFilter, flag); in queryIntentActivities_intentFilterIsSet_includesAppInOtherUser() local 134 int flag = TestApis.users().instrumented().equals(sDeviceState.workProfile()) in queryIntentActivities_intentFilterIsSet_includesAppInOwnUser() local 140 testIntentFilter, flag); in queryIntentActivities_intentFilterIsSet_includesAppInOwnUser() local 162 int flag = TestApis.users().instrumented().equals(sDeviceState.workProfile()) in startActivity_intentFilterIsSet_startsAppInOtherUser() local 168 testIntentFilter, flag); in startActivity_intentFilterIsSet_startsAppInOtherUser() local 194 int flag = TestApis.users().instrumented().equals(sDeviceState.workProfile()) in startActivity_intentFilterIsSet_startsAppInOwnUser() local 200 testIntentFilter, flag); in startActivity_intentFilterIsSet_startsAppInOwnUser() local 225 int flag = runningOnWorkProfile in addCrossProfileIntentFilter_logsMetric() local 231 testIntentFilter, flag); in addCrossProfileIntentFilter_logsMetric() local [all …]
|
D | WifiMinimumSecurityTest.java | 74 @SettableWifiSecurityLevelTestParameter int flag) { in setWifiMinimumSecurity_validLevel_works() 76 mDevicePolicyManager.setMinimumRequiredWifiSecurityLevel(flag); in setWifiMinimumSecurity_validLevel_works() 78 .isEqualTo(flag); in setWifiMinimumSecurity_validLevel_works()
|
/cts/hostsidetests/media/app/MediaSessionTestHelper/src/android/media/app/media_session_test_helper/ |
D | MediaSessionTestHelperService.java | 70 int flag = intent.getIntExtra(MediaSessionTestHelperConstants.EXTRA_CONTROL_COMMAND, 0); in onStartCommand() local 71 if ((flag & MediaSessionTestHelperConstants.FLAG_CREATE_MEDIA_SESSION) != 0) { in onStartCommand() 77 if ((flag & MediaSessionTestHelperConstants.FLAG_SET_MEDIA_SESSION_ACTIVE) != 0) { in onStartCommand() 80 if ((flag & MediaSessionTestHelperConstants.FLAG_SET_MEDIA_SESSION_INACTIVE) != 0) { in onStartCommand() 84 if ((flag & MediaSessionTestHelperConstants.FLAG_CREATE_MEDIA_SESSION2) != 0) { in onStartCommand() 89 if ((flag & MediaSessionTestHelperConstants.FLAG_RELEASE_ALL_MEDIA_SESSION) != 0) { in onStartCommand()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | FileUtils.java | 81 public boolean hasModeFlag(int flag) { in hasModeFlag() argument 82 if (((S_IRWXU | S_IRWXG | S_IRWXO) & flag) != flag) { in hasModeFlag() 83 throw new IllegalArgumentException("Inappropriate flag " + flag); in hasModeFlag() 85 return (mode & flag) == flag; in hasModeFlag()
|
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/utils/ |
D | FileUtils.java | 85 public boolean hasModeFlag(int flag) { in hasModeFlag() argument 86 if (((S_IRWXU | S_IRWXG | S_IRWXO) & flag) != flag) { in hasModeFlag() 87 throw new IllegalArgumentException("Inappropriate flag " + flag); in hasModeFlag() 89 return (mode & flag) == flag; in hasModeFlag()
|
/cts/tests/tests/text/src/android/text/cts/ |
D | SpannableStringBuilderSpanTest.java | 102 for (int flag: flags) { in replaceWithRange() 104 replacement, replacementStart, replacementEnd, flag); in replaceWithRange() 109 String replacement, int replacementStart, int replacementEnd, int flag) { in replaceWithSpanFlag() argument 120 expected + "\", flag=" + flag); in replaceWithSpanFlag() 125 mSpanSet.initSpans(originalSpannable, replaceStart, replaceEnd, flag); in replaceWithSpanFlag() 126 mReplacementSpanSet.initSpans(replacementSpannable, replacementStart, replacementEnd, flag); in replaceWithSpanFlag() 134 flag); in replaceWithSpanFlag() 136 replacementStart, replacementEnd, flag); in replaceWithSpanFlag() 140 int replacementLength, int flag) { in verifySpanPositions() argument 156 if (!isValidSpan(originalStart, originalEnd, flag)) continue; in verifySpanPositions() [all …]
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-39701/src/android/security/cts/CVE_2021_39701/ |
D | PocService.java | 46 public void setResult(int flag, String message) { in setResult() argument 50 editor.putInt(getString(R.string.flag), flag); in setResult() local
|
/cts/hostsidetests/media/common/android/media/cts/ |
D | MediaSessionTestHelperConstants.java | 94 public static String buildControlCommand(int userId, int flag) { in buildControlCommand() argument 96 + EXTRA_CONTROL_COMMAND + " " + flag + " " + MEDIA_SESSION_TEST_HELPER_PKG; in buildControlCommand()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | VerifyInputEventTest.java | 368 for (int flag : verifiedKeyFlags) { in compareKeyFlags() 369 assertFlag(expectedFlags, flag, verified); in compareKeyFlags() 373 int flag = 1 << i; in compareKeyFlags() local 374 if (verifiedKeyFlags.contains(flag)) { in compareKeyFlags() 377 assertNull(verified.getFlag(flag)); in compareKeyFlags() 387 for (int flag : verifiedMotionFlags) { in compareMotionFlags() 388 assertFlag(expectedFlags, flag, verified); in compareMotionFlags() 392 int flag = 1 << i; in compareMotionFlags() local 393 if (verifiedMotionFlags.contains(flag)) { in compareMotionFlags() 396 assertNull(verified.getFlag(flag)); in compareMotionFlags() [all …]
|
/cts/tests/accessibility/common/src/android/accessibility/cts/common/ |
D | AccessibilityDumper.java | 97 private AccessibilityDumper(int flag) { in AccessibilityDumper() argument 99 mFlag = flag; in AccessibilityDumper() 102 public void dump(int flag) { in dump() argument 105 if ((flag & FLAG_DUMPSYS) != 0) { in dump() 108 if ((flag & FLAG_HIERARCHY) != 0) { in dump() 111 if ((flag & FLAG_SCREENSHOT) != 0) { in dump() 114 if ((flag & FLAG_NODETREE) != 0) { in dump() 117 if ((flag & FLAG_DUMPSYS_WINDOW_MANAGER) != 0) { in dump()
|
D | AccessibilityDumpOnFailureRule.java | 51 public void dump(int flag) { in dump() argument 52 AccessibilityDumper.getInstance().dump(flag); in dump()
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
D | AccessibilityServiceInfoTest.java | 33 import android.platform.test.flag.junit.CheckFlagsRule; 34 import android.platform.test.flag.junit.DeviceFlagsValueProvider; 214 final int flag = AccessibilityServiceInfo.FLAG_REPORT_VIEW_IDS; in testDynamicallyConfigurableProperties_doNotPersist() local 219 assertThat(info.flags & flag).isEqualTo(0); in testDynamicallyConfigurableProperties_doNotPersist() 220 info.flags |= flag; in testDynamicallyConfigurableProperties_doNotPersist() 222 assertThat(service.getServiceInfo().flags & flag).isEqualTo(flag); in testDynamicallyConfigurableProperties_doNotPersist() 228 assertThat(reenabledService.getServiceInfo().flags & flag).isEqualTo(0); in testDynamicallyConfigurableProperties_doNotPersist()
|
/cts/tests/mediapc/requirements/ |
D | genreqsrc.go | 31 flag.StringVar(&f, "f", "", "The proto binary file containing a RequirementList.") 32 flag.Parse()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/activities/ |
D | SimpleSaveActivity.java | 103 public void setAutoCommit(boolean flag) { in setAutoCommit() argument 104 mAutoCommit = flag; in setAutoCommit() 110 public void setClearFieldsOnSubmit(boolean flag) { in setClearFieldsOnSubmit() argument 111 mClearFieldsOnSubmit = flag; in setClearFieldsOnSubmit()
|
/cts/tests/tests/networksecurityconfig/networksecurityconfig-certificate-transparency-default/src/android/security/net/config/cts/ |
D | CertificateTransparencyTest.java | 22 import android.platform.test.flag.junit.CheckFlagsRule; 23 import android.platform.test.flag.junit.DeviceFlagsValueProvider;
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/mainline/ |
D | ModuleDetector.java | 81 int flag = PackageManager.GET_SIGNING_CERTIFICATES; in getSignatureDigest() local 83 flag |= PackageManager.MATCH_APEX; in getSignatureDigest() 86 PackageInfo packageInfo = pm.getPackageInfo(module.packageName, flag); in getSignatureDigest()
|
/cts/tests/tests/telephony2/src/android/telephony2/cts/ |
D | EuiccManagerNoPermissionTest.java | 23 import android.platform.test.flag.junit.CheckFlagsRule; 24 import android.platform.test.flag.junit.DeviceFlagsValueProvider;
|
/cts/tests/credentials/src/android/credentials/cts/unittests/selection/ |
D | DisabledProviderInfoTest.java | 26 import android.platform.test.flag.junit.CheckFlagsRule; 27 import android.platform.test.flag.junit.DeviceFlagsValueProvider;
|
/cts/tests/backup/src/android/backup/cts/ |
D | PermissionTest.java | 403 private void setFlag(String app, String permission, int flag) { in setFlag() argument 406 flag, flag, sContext.getUser())); in setFlag() 409 private void clearFlag(String app, String permission, int flag) { in clearFlag() argument 412 flag, 0, sContext.getUser())); in clearFlag() 415 private boolean isFlagSet(String app, String permission, int flag) { in isFlagSet() argument 419 sContext.getUser())) & flag) == flag; in isFlagSet()
|
/cts/common/device-side/bedstead/harrier/src/test/java/com/android/bedstead/harrier/ |
D | BedsteadJUnit4Test.java | 324 public void policyAppliesTestAnnotation_withArguments_shouldApply(@PolicyArgument int flag) { in policyAppliesTestAnnotation_withArguments_shouldApply() argument 325 sPolicyAppliesTestArguments.add(flag); in policyAppliesTestAnnotation_withArguments_shouldApply() 333 @PolicyArgument int flag) { in policyDoesNotApplyTestAnnotation_withArguments_shouldApply() 334 sPolicyDoesNotApplyTestArguments.add(flag); in policyDoesNotApplyTestAnnotation_withArguments_shouldApply() 342 @PolicyArgument int flag) { in canSetPolicyTestAnnotation_withArguments_shouldApply() 343 sCanSetPolicyTestArguments.add(flag); in canSetPolicyTestAnnotation_withArguments_shouldApply() 351 @PolicyArgument int flag) { in cannotSetPolicyTestAnnotation_withArguments_shouldApply() 352 sCannotSetPolicyTestArguments.add(flag); in cannotSetPolicyTestAnnotation_withArguments_shouldApply()
|