/cts/tests/tests/permission/src/android/permission/cts/ |
D | FileUtils.java | 77 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()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/intent/ |
D | Cases.java | 30 import static android.server.wm.intent.Persistence.flag; 51 public static final IntentFlag CLEAR_TASK = flag(FLAG_ACTIVITY_CLEAR_TASK, 53 public static final IntentFlag CLEAR_TOP = flag(FLAG_ACTIVITY_CLEAR_TOP, 55 private static final IntentFlag SINGLE_TOP = flag(FLAG_ACTIVITY_SINGLE_TOP, 57 public static final IntentFlag NEW_TASK = flag(FLAG_ACTIVITY_NEW_TASK, 59 public static final IntentFlag NEW_DOCUMENT = flag(FLAG_ACTIVITY_NEW_DOCUMENT, 61 private static final IntentFlag MULTIPLE_TASK = flag(FLAG_ACTIVITY_MULTIPLE_TASK, 63 public static final IntentFlag RESET_TASK_IF_NEEDED = flag( 66 public static final IntentFlag PREVIOUS_IS_TOP = flag(FLAG_ACTIVITY_PREVIOUS_IS_TOP, 68 public static final IntentFlag REORDER_TO_FRONT = flag(FLAG_ACTIVITY_REORDER_TO_FRONT, [all …]
|
D | Persistence.java | 257 int flag = 0; in buildFlag() local 259 flag |= intentFlag.flag; in buildFlag() 262 return flag; in buildFlag() 405 public final int flag; field in Persistence.IntentFlag 411 public IntentFlag(int flag, String name) { in IntentFlag() argument 412 this.flag = flag; in IntentFlag() 417 return flag; in getFlag() 425 return other.flag | flag; in combine() 438 static IntentFlag flag(int flag, String name) { in flag() method in Persistence 439 return new IntentFlag(flag, name); in flag()
|
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
D | FileUtils.java | 76 public boolean hasModeFlag(int flag) { in hasModeFlag() argument 77 if (((S_IRWXU | S_IRWXG | S_IRWXO) & flag) != flag) { in hasModeFlag() 78 throw new IllegalArgumentException("Inappropriate flag " + flag); in hasModeFlag() 80 return (mode & flag) == flag; in hasModeFlag()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | FileUtils.java | 76 public boolean hasModeFlag(int flag) { in hasModeFlag() argument 77 if (((S_IRWXU | S_IRWXG | S_IRWXO) & flag) != flag) { in hasModeFlag() 78 throw new IllegalArgumentException("Inappropriate flag " + flag); in hasModeFlag() 80 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/media/app/MediaSessionTestHelper/src/android/media/app/media_session_test_helper/ |
D | MediaSessionTestHelperService.java | 74 int flag = intent.getIntExtra(MediaSessionTestHelperConstants.EXTRA_CONTROL_COMMAND, 0); in onStartCommand() local 75 if ((flag & MediaSessionTestHelperConstants.FLAG_CREATE_MEDIA_SESSION) != 0) { in onStartCommand() 81 if ((flag & MediaSessionTestHelperConstants.FLAG_SET_MEDIA_SESSION_ACTIVE) != 0) { in onStartCommand() 84 if ((flag & MediaSessionTestHelperConstants.FLAG_SET_MEDIA_SESSION_INACTIVE) != 0) { in onStartCommand() 88 if ((flag & MediaSessionTestHelperConstants.FLAG_RELEASE_MEDIA_SESSION) != 0) { in onStartCommand()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/ |
D | SimpleSaveActivity.java | 95 void setAutoCommit(boolean flag) { in setAutoCommit() argument 96 mAutoCommit = flag; in setAutoCommit() 102 void setClearFieldsOnSubmit(boolean flag) { in setClearFieldsOnSubmit() argument 103 mClearFieldsOnSubmit = flag; in setClearFieldsOnSubmit()
|
/cts/hostsidetests/media/common/android/media/cts/ |
D | MediaSessionTestHelperConstants.java | 86 public static String buildControlCommand(int userId, int flag) { in buildControlCommand() argument 88 + EXTRA_CONTROL_COMMAND + " " + flag + " " + MEDIA_SESSION_TEST_HELPER_PKG; in buildControlCommand()
|
/cts/tests/backup/src/android/backup/cts/ |
D | PermissionTest.java | 358 private void setFlag(String app, String permission, int flag) { in setFlag() argument 361 flag, flag, sContext.getUser())); in setFlag() 364 private void clearFlag(String app, String permission, int flag) { in clearFlag() argument 367 flag, 0, sContext.getUser())); in clearFlag() 370 private boolean isFlagSet(String app, String permission, int flag) { in isFlagSet() argument 374 sContext.getUser())) & flag) == flag; in isFlagSet()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | CpuFeaturesTest.java | 34 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/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | LockTaskTest.java | 202 for (int flag : flags) { in testSetLockTaskFeatures() 203 if (flag == LOCK_TASK_FEATURE_OVERVIEW || flag == LOCK_TASK_FEATURE_NOTIFICATIONS) { in testSetLockTaskFeatures() 207 () -> mDevicePolicyManager.setLockTaskFeatures(ADMIN_COMPONENT, flag)); in testSetLockTaskFeatures() 209 mDevicePolicyManager.setLockTaskFeatures(ADMIN_COMPONENT, flag); in testSetLockTaskFeatures() 210 assertEquals(flag, mDevicePolicyManager.getLockTaskFeatures(ADMIN_COMPONENT)); in testSetLockTaskFeatures() 213 cumulative |= flag; in testSetLockTaskFeatures()
|
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/ |
D | MockImeSession.java | 316 public ImeCommand callGetTextBeforeCursor(int n, int flag) { in callGetTextBeforeCursor() argument 319 params.putInt("flag", flag); in callGetTextBeforeCursor() 340 public ImeCommand callGetTextAfterCursor(int n, int flag) { in callGetTextAfterCursor() argument 343 params.putInt("flag", flag); in callGetTextAfterCursor() 363 public ImeCommand callGetSelectedText(int flag) { in callGetSelectedText() argument 365 params.putInt("flag", flag); in callGetSelectedText()
|
D | MockIme.java | 136 final int flag = command.getExtras().getInt("flag"); in onHandleCommand() 137 return getCurrentInputConnection().getTextBeforeCursor(n, flag); in onHandleCommand() 141 final int flag = command.getExtras().getInt("flag"); in onHandleCommand() 142 return getCurrentInputConnection().getTextAfterCursor(n, flag); in onHandleCommand() 145 final int flag = command.getExtras().getInt("flag"); in onHandleCommand() 146 return getCurrentInputConnection().getSelectedText(flag); in onHandleCommand()
|
/cts/tests/tests/text/src/android/text/style/cts/ |
D | SuggestionSpanTest.java | 112 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/tests/telecom/src/android/telecom/cts/ |
D | RttOperationsTest.java | 242 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/hostsidetests/incident/apps/graphicsstatsapp/src/com/android/server/cts/device/graphicsstats/ |
D | DrawFramesActivity.java | 112 private boolean isFrameFlagSet(int flag) { in isFrameFlagSet() argument 113 return mFramesToDraw != null && (mFramesToDraw[mFrameIndex] & flag) != 0; in isFrameFlagSet()
|
/cts/hostsidetests/media/src/android/media/session/cts/ |
D | MediaSessionManagerHostTest.java | 270 private void sendControlCommand(int userId, int flag) throws Exception { in sendControlCommand() argument 271 executeShellCommand(MediaSessionTestHelperConstants.buildControlCommand(userId, flag)); in sendControlCommand()
|
/cts/tests/tests/voicesettings/service/src/android/voicesettings/service/ |
D | MainInteractionSession.java | 174 AsyncTaskArg setCompleteReq(boolean flag) { in setCompleteReq() argument 175 isCompleteRequest = flag; in setCompleteReq()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | AudioRecordNative.java | 33 @IntDef(flag = true,
|
D | AudioTrackNative.java | 32 @IntDef(flag = true,
|
/cts/tests/tests/view/src/android/view/cts/ |
D | TooltipTest.java | 141 final int flag = View.SYSTEM_UI_FLAG_LOW_PROFILE; in requestLowProfileSystemUi() local 142 mActivityRule.runOnUiThread(() -> mTooltipView.setSystemUiVisibility(flag)); in requestLowProfileSystemUi() 144 () -> (mTooltipView.getWindowSystemUiVisibility() & flag) == flag); in requestLowProfileSystemUi()
|
/cts/tests/tests/location/protos/ |
D | ephemeris.proto | 24 // L2 P data flag.
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
D | IntentFiltersTestHelper.java | 280 public boolean checkCrossProfileIntentFilters(int flag) { in checkCrossProfileIntentFilters() argument 282 if (flag == FLAG_INTENTS_FROM_PRIMARY) { in checkCrossProfileIntentFilters()
|
/cts/tests/app/src/android/app/cts/ |
D | InstrumentationTest.java | 309 final int flag = 2; in testInvokeContextMenuAction() local 310 mInstrumentation.invokeContextMenuAction(mMockActivity, id, flag); in testInvokeContextMenuAction() 314 assertEquals(flag, mMockActivity.mWindow.mFlags); in testInvokeContextMenuAction()
|