/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/ |
D | EphemeralUserTest.java | 42 int flags = getUserFlags(userId); in testCreateEphemeralUser() local 43 assertTrue("ephemeral flag must be set", FLAG_EPHEMERAL == (flags & FLAG_EPHEMERAL)); in testCreateEphemeralUser() 52 int flags = getUserFlags(userId); in testCreateLongLivedUser() local 53 assertTrue("ephemeral flag must not be set", 0 == (flags & FLAG_EPHEMERAL)); in testCreateLongLivedUser() 68 int flags = getUserFlags(profileId); in testProfileInheritsEphemeral() local 69 assertTrue("ephemeral flag must be set", FLAG_EPHEMERAL == (flags & FLAG_EPHEMERAL)); in testProfileInheritsEphemeral() 96 int flags = getUserFlags(userId); in testEphemeralGuestFeature() local 100 FLAG_EPHEMERAL == (flags & FLAG_EPHEMERAL)); in testEphemeralGuestFeature() 103 assertTrue("ephemeral flag must not be set for guest", 0 == (flags & FLAG_EPHEMERAL)); in testEphemeralGuestFeature()
|
/cts/tests/tests/text/src/android/text/cts/ |
D | HtmlTest.java | 156 final int flags = Html.FROM_HTML_OPTION_USE_CSS_COLORS; in testUseCssColor() local 158 Spanned s = Html.fromHtml("<font color=\"green\">GREEN</font>", flags); in testUseCssColor() 162 s = Html.fromHtml("<font color=\"gray\">GRAY</font>", flags); in testUseCssColor() 166 s = Html.fromHtml("<font color=\"grey\">GREY</font>", flags); in testUseCssColor() 170 s = Html.fromHtml("<font color=\"lightgray\">LIGHTGRAY</font>", flags); in testUseCssColor() 174 s = Html.fromHtml("<font color=\"lightgrey\">LIGHTGREY</font>", flags); in testUseCssColor() 178 s = Html.fromHtml("<font color=\"darkgray\">DARKGRAY</font>", flags); in testUseCssColor() 182 s = Html.fromHtml("<font color=\"darkgrey\">DARKGREY</font>", flags); in testUseCssColor() 463 int flags = Html.FROM_HTML_SEPARATOR_LINE_BREAK_BLOCKQUOTE in testBlockLevelElementsFromHtml() local 466 Html.fromHtml(source, flags, null, null).toString()); in testBlockLevelElementsFromHtml() [all …]
|
/cts/tests/tests/dpi/src/android/dpi/cts/ |
D | DefaultManifestAttributesTest.java | 73 (getAppInfo().flags & ApplicationInfo.FLAG_SUPPORTS_SMALL_SCREENS) != 0); in testSmallScreenDefault() 80 (getAppInfo().flags & ApplicationInfo.FLAG_SUPPORTS_NORMAL_SCREENS) != 0); in testNormalScreenDefault() 85 (getAppInfo().flags & ApplicationInfo.FLAG_SUPPORTS_LARGE_SCREENS) != 0); in testLargeScreenDefault() 90 (getAppInfo().flags & ApplicationInfo.FLAG_RESIZEABLE_FOR_SCREENS) != 0); in testResizableDefault() 95 (getAppInfo().flags & ApplicationInfo.FLAG_SUPPORTS_SCREEN_DENSITIES) != 0); in testAnyDensityDefault()
|
/cts/tools/utils/ |
D | monsoon.py | 57 import gflags as flags # http://code.google.com/p/python-gflags/ namespace 61 FLAGS = flags.FLAGS 437 flags.DEFINE_boolean("status", None, "Print power meter status") 438 flags.DEFINE_integer("avg", None, 440 flags.DEFINE_float("voltage", None, "Set output voltage (0 for off)") 441 flags.DEFINE_float("current", None, "Set max output current") 442 flags.DEFINE_string("usbpassthrough", None, "USB control (on, off, auto)") 443 flags.DEFINE_integer("samples", None, 446 flags.DEFINE_integer("hz", 5000, "Print this many samples/sec") 447 flags.DEFINE_string("device", None, [all …]
|
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/ |
D | MockIme.java | 155 final int flags = command.getExtras().getInt("flags"); in onHandleCommand() 156 return getCurrentInputConnection().getExtractedText(request, flags); in onHandleCommand() 245 final int flags = command.getExtras().getInt("flags"); in onHandleCommand() 248 inputContentInfo, flags, opts); in onHandleCommand() 257 final int flags = command.getExtras().getInt("flags"); in onHandleCommand() 258 requestHideSelf(flags); in onHandleCommand() 262 final int flags = command.getExtras().getInt("flags"); in onHandleCommand() 263 requestShowSelf(flags); in onHandleCommand() 302 public void showSoftInput(int flags, ResultReceiver resultReceiver) { in showSoftInput() argument 303 getTracer().showSoftInput(flags, resultReceiver, in showSoftInput() [all …]
|
/cts/tests/tests/nativehardware/src/android/hardware/nativehardware/cts/ |
D | HardwareBufferVrTest.java | 38 … final long flags = HardwareBuffer.USAGE_GPU_SAMPLED_IMAGE | HardwareBuffer.USAGE_GPU_COLOR_OUTPUT; in testLayeredBuffersForVr() local 46 HardwareBuffer buffer = HardwareBuffer.create(2, 4, format, 2, flags); in testLayeredBuffersForVr() 51 assertEquals(flags, buffer.getUsage()); in testLayeredBuffersForVr() 53 buffer = HardwareBuffer.create(345, 231, format, 5, flags); in testLayeredBuffersForVr() 58 assertEquals(flags, buffer.getUsage()); in testLayeredBuffersForVr()
|
/cts/tests/tests/graphics/jni/ |
D | VulkanPreTransformTestHelpers.cpp | 162 .flags = 0, in init() 186 .flags = 0, in init() 227 .flags = 0, in init() 323 .flags = 0, in init() 390 .flags = 0, in createRenderPass() 405 .flags = 0, in createRenderPass() 419 .flags = 0, in createRenderPass() 444 .flags = 0, in createFrameBuffers() 473 .flags = 0, in createFrameBuffers() 493 .flags = 0, in createVertexBuffers() [all …]
|
D | VulkanTestHelpers.cpp | 132 .flags = 0, in init() 247 .flags = 0u, in init() 373 .flags = 0, in init() 391 .flags = 0, in init() 401 .flags = VK_SEMAPHORE_IMPORT_TEMPORARY_BIT, in init() 459 .flags = 0u, in init() 499 .flags = 0u, in init() 516 .flags = 0u, in init() 529 .flags = 0u, in init() 543 .flags = 0u, in init() [all …]
|
/cts/hostsidetests/appsecurity/test-apps/EncryptionApp/src/com/android/cts/encryptionapp/ |
D | EncryptionAppTest.java | 305 private void assertQuery(int count, int flags) throws Exception { in assertQuery() argument 307 assertEquals("activity", count, mPm.queryIntentActivities(intent, flags).size()); in assertQuery() 308 assertEquals("service", count, mPm.queryIntentServices(intent, flags).size()); in assertQuery() 309 assertEquals("provider", count, mPm.queryIntentContentProviders(intent, flags).size()); in assertQuery() 310 assertEquals("receiver", count, mPm.queryBroadcastReceivers(intent, flags).size()); in assertQuery() 313 private void assertGetUnaware(boolean visible, int flags) throws Exception { in assertGetUnaware() argument 314 assertGet(visible, false, flags); in assertGetUnaware() 317 private void assertGetAware(boolean visible, int flags) throws Exception { in assertGetAware() argument 318 assertGet(visible, true, flags); in assertGetAware() 329 private void assertGet(boolean visible, boolean aware, int flags) throws Exception { in assertGet() argument [all …]
|
/cts/tests/JobSchedulerSharedUid/src/android/jobscheduler/ |
D | MockJobService.java | 109 int flags = 0; in onStartJob() local 177 flags = expected.flags; in onStartJob() 179 if ((flags & TestWorkItem.FLAG_WAIT_FOR_STOP) != 0) { in onStartJob() 186 if ((flags & TestWorkItem.FLAG_COMPLETE_NEXT) != 0) { in onStartJob() 197 if ((flags & TestWorkItem.FLAG_DELAY_COMPLETE_PUSH_BACK) != 0) { in onStartJob() 199 } else if ((flags & TestWorkItem.FLAG_DELAY_COMPLETE_PUSH_TOP) != 0) { in onStartJob() 297 public final int flags; field in MockJobService.TestWorkItem 306 flags = 0; in TestWorkItem() 316 flags = _flags; in TestWorkItem() 326 flags = _flags; in TestWorkItem() [all …]
|
/cts/tests/JobScheduler/src/android/jobscheduler/ |
D | MockJobService.java | 109 int flags = 0; in onStartJob() local 177 flags = expected.flags; in onStartJob() 179 if ((flags & TestWorkItem.FLAG_WAIT_FOR_STOP) != 0) { in onStartJob() 186 if ((flags & TestWorkItem.FLAG_COMPLETE_NEXT) != 0) { in onStartJob() 197 if ((flags & TestWorkItem.FLAG_DELAY_COMPLETE_PUSH_BACK) != 0) { in onStartJob() 199 } else if ((flags & TestWorkItem.FLAG_DELAY_COMPLETE_PUSH_TOP) != 0) { in onStartJob() 297 public final int flags; field in MockJobService.TestWorkItem 306 flags = 0; in TestWorkItem() 316 flags = _flags; in TestWorkItem() 326 flags = _flags; in TestWorkItem() [all …]
|
/cts/tests/fragment/src/android/fragment/cts/ |
D | FragmentTestUtil.java | 101 final int id, final int flags) { in popBackStackImmediate() argument 102 return popBackStackImmediate(rule, rule.getActivity().getFragmentManager(), id, flags); in popBackStackImmediate() 106 final FragmentManager fm, final int id, final int flags) { in popBackStackImmediate() argument 111 ret[0] = fm.popBackStackImmediate(id, flags); in popBackStackImmediate() 118 final String name, final int flags) { in popBackStackImmediate() argument 119 return popBackStackImmediate(rule, rule.getActivity().getFragmentManager(), name, flags); in popBackStackImmediate() 123 final FragmentManager fm, final String name, final int flags) { in popBackStackImmediate() argument 128 ret[0] = fm.popBackStackImmediate(name, flags); in popBackStackImmediate()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-2471/ |
D | poc.c | 54 __u16 flags; /* Various specifc flags (if any) */ member 60 __u16 flags; /* Optional params */ member 75 __u8 flags; /* Flags (fixed/auto) */ member 115 __u8 flags; member 147 prIwReq.u.data.flags = IW_SCAN_THIS_ESSID; in main()
|
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/ |
D | CustomView.java | 45 public void onProvideContentCaptureStructure(ViewStructure structure, int flags) { in onProvideContentCaptureStructure() argument 52 superOnProvideContentCaptureStructure(structure, flags); in onProvideContentCaptureStructure() 61 void superOnProvideContentCaptureStructure(@NonNull ViewStructure structure, int flags) { in superOnProvideContentCaptureStructure() argument 63 super.onProvideContentCaptureStructure(structure, flags); in superOnProvideContentCaptureStructure()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | NdkMediaCodec.java | 67 int flags); in AMediaCodecConfigure() argument 75 int flags); in AMediaCodecQueueInputBuffer() argument 104 public void configure(MediaFormat format, int flags) { in configure() argument 131 flags); in configure() 163 info.flags = (int)ret[4]; in dequeueOutputBuffer() 209 int flags) { in queueInputBuffer() argument 211 AMediaCodecQueueInputBuffer(mNdkMediaCodec, index, offset, size, presentationTimeUs, flags); in queueInputBuffer()
|
D | SdkMediaCodec.java | 52 public void configure(MediaFormat format, int flags) { in configure() argument 53 mCodec.configure(format, null, null, flags); in configure() 122 int flags) { in queueInputBuffer() argument 123 mCodec.queueInputBuffer(index, offset, size, presentationTimeUs, flags); in queueInputBuffer()
|
D | DecodeEditEncodeTest.java | 321 assertTrue((info.flags & MediaCodec.BUFFER_FLAG_CODEC_CONFIG) != 0 || in generateVideoData() 329 output.addChunk(encodedData, info.flags, info.presentationTimeUs); in generateVideoData() 334 if ((info.flags & MediaCodec.BUFFER_FLAG_END_OF_STREAM) != 0) { in generateVideoData() 490 int flags = inputData.getChunkFlags(inputChunk); in editVideoData() local 493 time, flags); in editVideoData() 496 inputBuf.position() + " flags=" + flags); in editVideoData() 535 outputData.addChunk(encodedData, info.flags, info.presentationTimeUs); in editVideoData() 540 outputDone = (info.flags & MediaCodec.BUFFER_FLAG_END_OF_STREAM) != 0; in editVideoData() 590 if ((info.flags & MediaCodec.BUFFER_FLAG_END_OF_STREAM) != 0) { in editVideoData() 685 int flags = inputData.getChunkFlags(inputChunk); in checkVideoData() local [all …]
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | BaseRemoteTelecomTest.java | 61 MockConnectionService remoteConnectionService, int flags) throws Exception { in setupConnectionServices() argument 63 setupConnectionService(connectionService, flags); in setupConnectionServices() 64 setupRemoteConnectionService(remoteConnectionService, flags); in setupConnectionServices() 68 int flags) throws Exception { in setupRemoteConnectionService() argument 78 if ((flags & FLAG_REGISTER) != 0) { in setupRemoteConnectionService() 87 if ((flags & FLAG_ENABLE) != 0) { in setupRemoteConnectionService()
|
/cts/apps/CtsVerifier/assets/scripts/ |
D | execute_power_tests.py | 24 import gflags as flags # http://code.google.com/p/python-gflags/ namespace 51 FLAGS = flags.FLAGS 919 flags.DEFINE_boolean("status", None, "Print power meter status") 920 flags.DEFINE_integer("avg", None, 922 flags.DEFINE_float("voltage", None, "Set output voltage (0 for off)") 923 flags.DEFINE_float("current", None, "Set max output current") 924 flags.DEFINE_string("usbpassthrough", None, "USB control (on, off, auto)") 925 flags.DEFINE_integer("samples", None, "Collect and print this many samples") 926 flags.DEFINE_integer("hz", 5000, "Print this many samples/sec") 927 flags.DEFINE_string("device", None, [all …]
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | VirtualDisplayHelper.java | 123 int flags = VIRTUAL_DISPLAY_FLAG_PRESENTATION | VIRTUAL_DISPLAY_FLAG_OWN_CONTENT_ONLY; in createVirtualDisplay() local 126 flags |= VIRTUAL_DISPLAY_FLAG_PUBLIC; in createVirtualDisplay() 129 flags |= VIRTUAL_DISPLAY_FLAG_CAN_SHOW_WITH_INSECURE_KEYGUARD; in createVirtualDisplay() 132 flags |= VIRTUAL_DISPLAY_FLAG_SHOULD_SHOW_SYSTEM_DECORATIONS; in createVirtualDisplay() 141 VIRTUAL_DISPLAY_NAME, WIDTH, HEIGHT, DENSITY, mReader.getSurface(), flags); in createVirtualDisplay()
|
D | DialogFrameTestActivity.java | 139 params.flags |= FLAG_LAYOUT_IN_SCREEN; in testMatchParentLayoutInOverscan() 140 params.flags |= FLAG_LAYOUT_IN_OVERSCAN; in testMatchParentLayoutInOverscan() 178 params.flags |= FLAG_LAYOUT_NO_LIMITS; in testOversizedDimensionsNoLimits() 197 params.flags |= FLAG_LAYOUT_NO_LIMITS; in testExplicitPositionMatchParentNoLimits() 204 doLayoutParamTest(params -> params.flags |= FLAG_NOT_FOCUSABLE); in testNoFocus()
|
/cts/hostsidetests/devicepolicy/app/SimpleApp/src/com/android/cts/launcherapps/simpleapp/ |
D | SimpleService.java | 42 protected boolean onTransact(int code, Parcel data, Parcel reply, int flags) 49 return super.onTransact(code, data, reply, flags); 60 public int onStartCommand(Intent intent, int flags, int startId) { in onStartCommand() argument 79 return super.onStartCommand(intent, flags, startId); in onStartCommand()
|
D | SimpleService3.java | 47 protected boolean onTransact(int code, Parcel data, Parcel reply, int flags) 54 return super.onTransact(code, data, reply, flags); 65 public int onStartCommand(Intent intent, int flags, int startId) { in onStartCommand() argument 92 return super.onStartCommand(intent, flags, startId); in onStartCommand()
|
/cts/tests/media/jni/ |
D | NativeExtractorTest.cpp | 39 return refSample->flags == testSample->flags && refSample->size == testSample->size && in isSampleInfoIdentical() 45 return refSample->flags == testSample->flags && refSample->size == testSample->size && in isSampleInfoValidAndIdentical() 47 (int)refSample->flags >= 0 && refSample->size >= 0 && refSample->presentationTimeUs >= 0; in isSampleInfoValidAndIdentical() 83 info->flags = AMediaExtractor_getSampleFlags(extractor); in setSampleInfo() 121 ALOGD(" flags exp/got: %d / %d", refSampleInfo.flags, testSampleInfo.flags); in isMediaSimilar() 180 refSampleInfo.flags, refSampleInfo.size, in isMediaSimilar() 427 ALOGE(" flags exp/got: %d / %d", arg->mExpected.flags, received.flags); in checkSeekPoints() 485 ALOGE(" flags exp/got: %d / %d", refSampleInfo.flags, testSampleInfo.flags); in isSeekOk() 610 ALOGE(" flags exp/got: %d / %d", sampleInfoAtZero.flags, currInfo.flags); in nativeTestSeekToZero() 622 ALOGE(" flags exp/got: %d / %d", sampleInfoAtZero.flags, currInfo.flags); in nativeTestSeekToZero()
|
/cts/hostsidetests/appsecurity/test-apps/DocumentProvider/src/com/android/cts/documentprovider/ |
D | MyDocumentsProvider.java | 140 mCreateRoot.flags = Document.FLAG_DIR_SUPPORTS_CREATE; in resetRoots() 145 file1.flags = Document.FLAG_SUPPORTS_WRITE; in resetRoots() 153 file2.flags = Document.FLAG_SUPPORTS_WRITE; in resetRoots() 161 virtualFile.flags = Document.FLAG_VIRTUAL_DOCUMENT; in resetRoots() 170 webLinkableFile.flags = Document.FLAG_VIRTUAL_DOCUMENT | Document.FLAG_WEB_LINKABLE; in resetRoots() 182 file3.flags = Document.FLAG_SUPPORTS_WRITE; in resetRoots() 192 file4.flags = Document.FLAG_SUPPORTS_WRITE | in resetRoots() 205 public int flags; field in MyDocumentsProvider.Doc 220 row.add(Document.COLUMN_FLAGS, flags); in include() 245 doc.flags = Document.FLAG_SUPPORTS_WRITE | Document.FLAG_SUPPORTS_RENAME; in createDocument() [all …]
|