Home
last modified time | relevance | path

Searched refs:flag (Results 1 – 25 of 51) sorted by relevance

123

/cts/tests/framework/base/windowmanager/src/android/server/wm/intent/
DCases.java31 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 …]
DPersistence.java265 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/tests/permission/src/android/permission/cts/
DFileUtils.java77 public boolean hasModeFlag(int flag) { in hasModeFlag() argument
78 if (((S_IRWXU | S_IRWXG | S_IRWXO) & flag) != flag) { in hasModeFlag()
79 throw new IllegalArgumentException("Inappropriate flag " + flag); in hasModeFlag()
81 return (mode & flag) == flag; in hasModeFlag()
DPermissionUpdateListenerTest.java122 int flag = PackageManager.FLAG_PERMISSION_USER_SET; in updateFlagsNotifiesListener() local
123 sPm.updatePermissionFlags(PERMISSION_NAME, PACKAGE_NAME, flag, flag, in updateFlagsNotifiesListener()
DActivityPermissionRationaleTest.java63 int flag = PackageManager.FLAG_PERMISSION_USER_SET; in setUp() local
64 PermissionUtils.setPermissionFlags(PACKAGE_NAME, PERMISSION_NAME, flag, flag); in setUp()
/cts/hostsidetests/media/app/MediaSessionTestHelper/src/android/media/app/media_session_test_helper/
DMediaSessionTestHelperService.java70 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/
DFileUtils.java81 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/tests/tests/text/src/android/text/cts/
DSpannableStringBuilderSpanTest.java102 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/tests/tests/view/src/android/view/cts/
DVerifyInputEventTest.java345 for (int flag : verifiedKeyFlags) { in compareKeyFlags()
346 assertFlag(expectedFlags, flag, verified); in compareKeyFlags()
350 int flag = 1 << i; in compareKeyFlags() local
351 if (verifiedKeyFlags.contains(flag)) { in compareKeyFlags()
354 assertNull(verified.getFlag(flag)); in compareKeyFlags()
364 for (int flag : verifiedMotionFlags) { in compareMotionFlags()
365 assertFlag(expectedFlags, flag, verified); in compareMotionFlags()
369 int flag = 1 << i; in compareMotionFlags() local
370 if (verifiedMotionFlags.contains(flag)) { in compareMotionFlags()
373 assertNull(verified.getFlag(flag)); in compareMotionFlags()
[all …]
/cts/tests/accessibility/common/src/android/accessibility/cts/common/
DAccessibilityDumper.java93 private AccessibilityDumper(int flag) { in AccessibilityDumper() argument
95 mFlag = flag; in AccessibilityDumper()
98 public void dump(int flag) { in dump() argument
101 if ((flag & FLAG_DUMPSYS) != 0) { in dump()
104 if ((flag & FLAG_HIERARCHY) != 0) { in dump()
107 if ((flag & FLAG_SCREENSHOT) != 0) { in dump()
110 if ((flag & FLAG_NODETREE) != 0) { in dump()
DAccessibilityDumpOnFailureRule.java51 public void dump(int flag) { in dump() argument
52 AccessibilityDumper.getInstance().dump(flag); in dump()
/cts/tests/autofillservice/src/android/autofillservice/cts/activities/
DSimpleSaveActivity.java97 public void setAutoCommit(boolean flag) { in setAutoCommit() argument
98 mAutoCommit = flag; in setAutoCommit()
104 public void setClearFieldsOnSubmit(boolean flag) { in setClearFieldsOnSubmit() argument
105 mClearFieldsOnSubmit = flag; in setClearFieldsOnSubmit()
/cts/hostsidetests/media/common/android/media/cts/
DMediaSessionTestHelperConstants.java94 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/backup/src/android/backup/cts/
DPermissionTest.java400 private void setFlag(String app, String permission, int flag) { in setFlag() argument
403 flag, flag, sContext.getUser())); in setFlag()
406 private void clearFlag(String app, String permission, int flag) { in clearFlag() argument
409 flag, 0, sContext.getUser())); in clearFlag()
412 private boolean isFlagSet(String app, String permission, int flag) { in isFlagSet() argument
416 sContext.getUser())) & flag) == flag; in isFlagSet()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/mainline/
DModuleDetector.java81 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/os/src/android/os/cts/
DCpuFeaturesTest.java34 private static void assertHwCap(String name, int hwcaps, int flag) { in assertHwCap() argument
35 assertEquals("Machine does not advertise " + name + " support", flag, in assertHwCap()
36 hwcaps & flag); in assertHwCap()
/cts/apps/CameraITS/tests/scene_change/
Dtest_scene_change.py145 flag = cap['metadata']['android.control.afSceneChange']
146 if flag not in _VALID_SCENE_CHANGE_VALS:
156 i, iso, exp, fl_str, green_avg, ae_state, af_state, awb_state, flag)
159 cap_data['flag'] = flag
/cts/tests/framework/base/biometrics/src/android/server/biometrics/
DSensorStates.java106 public boolean hasModalityFlag(int flag) { in hasModalityFlag() argument
108 if (f == flag) { in hasModalityFlag()
203 public boolean containsModalityFlag(int flag) { in containsModalityFlag() argument
205 if (state.hasModalityFlag(flag)) { in containsModalityFlag()
/cts/tests/tests/permission3/src/android/permission3/cts/
DPermissionTest30WithBluetooth.kt128 val flag = context.packageManager.getPermissionFlags(BLUETOOTH_SCAN, in assertBluetoothRevokedCompatState() constant
131 assertNotEquals(0, flag) in assertBluetoothRevokedCompatState()
133 assertEquals(0, flag) in assertBluetoothRevokedCompatState()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/users/
DUser.java119 boolean hasFlag(int flag) { in hasFlag() argument
123 return (mMutableUser.mFlags & flag) != 0; in hasFlag()
/cts/tests/tests/telecom/src/android/telecom/cts/
DRttOperationsTest.java242 boolean[] flag = new boolean[1]; in verifyRttPipeReadBlocking()
243 flag[0] = false; in verifyRttPipeReadBlocking()
247 flag[0] = true; in verifyRttPipeReadBlocking()
255 assertFalse(flag[0]); in verifyRttPipeReadBlocking()
/cts/tests/tests/text/src/android/text/style/cts/
DSuggestionSpanTest.java112 final int flag = SuggestionSpan.FLAG_AUTO_CORRECTION; in testGetFlags() local
113 SuggestionSpan span = new SuggestionSpan(Locale.forLanguageTag("en"), anySuggestions, flag); in testGetFlags()
116 flag, span.getFlags()); in testGetFlags()
119 assertEquals("Should (de)serialize flags", flag, clonedSpan.getFlags()); in testGetFlags()
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/
DMockImeSession.java385 public ImeCommand callGetTextBeforeCursor(int n, int flag) { in callGetTextBeforeCursor() argument
388 params.putInt("flag", flag); in callGetTextBeforeCursor()
411 public ImeCommand callGetTextAfterCursor(int n, int flag) { in callGetTextAfterCursor() argument
414 params.putInt("flag", flag); in callGetTextAfterCursor()
436 public ImeCommand callGetSelectedText(int flag) { in callGetSelectedText() argument
438 params.putInt("flag", flag); in callGetSelectedText()
/cts/hostsidetests/incident/apps/graphicsstatsapp/src/com/android/server/cts/device/graphicsstats/
DDrawFramesActivity.java114 private boolean isFrameFlagSet(int flag) { in isFrameFlagSet() argument
115 return mFramesToDraw != null && (mFramesToDraw[mFrameIndex] & flag) != 0; in isFrameFlagSet()
/cts/hostsidetests/incrementalinstall/app/
DAndroid.bp42 // This flag allow the native lib to be compressed in the apk or associated split apk, and
70 // This flag allow the native lib to be uncompressed in the apk or associated split apk, and

123