/cts/tests/tests/media/misc/src/android/media/misc/cts/ |
D | MediaMetricsTest.java | 47 final MediaMetrics.Item item = new MediaMetrics.Item(key); in testBasicItem() 64 assertEquals("Key", bundle.getString(MediaMetrics.Item.BUNDLE_KEY)); in testBasicItem() 65 assertEquals(-1, bundle.getInt(MediaMetrics.Item.BUNDLE_PID)); // default PID in testBasicItem() 66 assertEquals(-1, bundle.getInt(MediaMetrics.Item.BUNDLE_UID)); // default UID in testBasicItem() 67 assertEquals(0, bundle.getChar(MediaMetrics.Item.BUNDLE_VERSION)); in testBasicItem() 68 assertEquals(key.length() + 1, bundle.getChar(MediaMetrics.Item.BUNDLE_KEY_SIZE)); in testBasicItem() 69 assertEquals(0, bundle.getLong(MediaMetrics.Item.BUNDLE_TIMESTAMP)); // default Time in testBasicItem() 70 assertEquals(4, bundle.getInt(MediaMetrics.Item.BUNDLE_PROPERTY_COUNT)); in testBasicItem() 80 final MediaMetrics.Item item = new MediaMetrics.Item( in testBigItem() 103 assertEquals(key, bundle.getString(MediaMetrics.Item.BUNDLE_KEY)); in testBigItem() [all …]
|
/cts/tests/tests/content/src/android/content/cts/ |
D | ClipDataTest.java | 62 final ClipData.Item clip = new ClipData.Item.Builder() in testBuilder() 110 ClipData clip = new ClipData(description, new ClipData.Item("secret-text")); in testToString_metadata() 119 clip.addItem(new ClipData.Item("secret-two")); in testToString_multipleItems() 120 clip.addItem(new ClipData.Item("secret-three")); in testToString_multipleItems() 128 ClipData.Item item = new ClipData.Item( in testToString_complexItem() 147 final ClipData.Item item = new ClipData.Item( in testCoerceToText_text() 156 final ClipData.Item item = new ClipData.Item( in testCoerceToText_uri() 165 final ClipData.Item item = new ClipData.Item( in testCoerceToText_intent() 174 final ClipData.Item item = new ClipData.Item( in testCoerceToText_multiple()
|
D | ClipboardManagerTest.java | 32 import android.content.ClipData.Item; 173 new Item("Text", intent, uri)); in testSetPrimaryClip_complexItem() 186 textData.addItem(new Item("More Text")); in testSetPrimaryClip_multipleItems() 187 textData.addItem(new Item(intent)); in testSetPrimaryClip_multipleItems() 188 textData.addItem(new Item(uri)); in testSetPrimaryClip_multipleItems() 214 clipData.addItem(contentResolver, new Item("More Text")); in testSetPrimaryClip_multipleMimeTypes() 215 clipData.addItem(contentResolver, new Item(intent)); in testSetPrimaryClip_multipleMimeTypes() 216 clipData.addItem(contentResolver, new Item(uri)); in testSetPrimaryClip_multipleMimeTypes() 217 clipData.addItem(contentResolver, new Item(contentUri1)); in testSetPrimaryClip_multipleMimeTypes() 218 clipData.addItem(contentResolver, new Item(contentUri2)); in testSetPrimaryClip_multipleMimeTypes() [all …]
|
D | ImageCaptureActivity.java | 20 import android.content.ClipData.Item;
|
D | ReadableFileReceiverActivity.java | 20 import android.content.ClipData.Item;
|
D | ClipDescriptionTest.java | 121 ClipData clipData = new ClipData(clipDescription, new ClipData.Item(spannable)); in testIsStyledText() 143 ClipData clipData = new ClipData(clipDescription, new ClipData.Item("Just text")); in testNotStyledText()
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
D | IsObjectTest.java | 72 ScriptField__object_element_input.Item mItem = in testIsObjectElement() 73 new ScriptField__object_element_input.Item(); in testIsObjectElement() 93 ScriptField__object_type_input.Item mItem = new ScriptField__object_type_input.Item(); in testIsObjectType() 116 ScriptField__object_allocation_input.Item mItem = in testIsObjectAllocation() 117 new ScriptField__object_allocation_input.Item(); in testIsObjectAllocation() 139 ScriptField__object_sampler_input.Item mItem = in testIsObjectSampler() 140 new ScriptField__object_sampler_input.Item(); in testIsObjectSampler() 162 ScriptField__object_script_input.Item mItem = new ScriptField__object_script_input.Item(); in testIsObjectScript()
|
D | SetObjectTest.java | 74 …ScriptField__set_object_element_input.Item mItem = new ScriptField__set_object_element_input.Item(… in testSetObjectElement() 94 … ScriptField__set_object_type_input.Item mItem = new ScriptField__set_object_type_input.Item(); in testSetObjectType() 117 …ScriptField__set_object_allocation_input.Item mItem = new ScriptField__set_object_allocation_input… in testSetObjectAllocation() 139 …ScriptField__set_object_sampler_input.Item mItem = new ScriptField__set_object_sampler_input.Item(… in testSetObjectSampler() 161 … ScriptField__set_object_script_input.Item mItem = new ScriptField__set_object_script_input.Item(); in testSetObjectScript()
|
D | StructFieldTest.java | 32 private ScriptField_InnerOne.Item makeInnerOne() { in makeInnerOne() 33 ScriptField_InnerOne.Item innerOne = new ScriptField_InnerOne.Item(); in makeInnerOne() 40 private ScriptField_InnerTwo.Item makeInnerTwo() { in makeInnerTwo() 41 ScriptField_InnerTwo.Item innerTwo = new ScriptField_InnerTwo.Item(); in makeInnerTwo() 50 ScriptField_Outer.Item outer = new ScriptField_Outer.Item(); in testStructField()
|
D | StructPadTest.java | 35 ScriptField_PadMe.Item I = new ScriptField_PadMe.Item(); in testStructPadding() 40 S.set(new ScriptField_PadMe.Item(), 0, true); in testStructPadding()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/activities/ |
D | VirtualContainerView.java | 69 private final SparseArray<Item> mItems = new SparseArray<>(); 140 final Item item = getItem(id); in autofill() 229 final Item item = mItems.valueAt(i); in onProvideAutofillVirtualStructure() 277 final Item item = getItem(virtualId); in isVisibleToUserForAutofill() 296 private Item getItem(int id) { in getItem() 297 final Item item = mItems.get(id); in getItem() 311 final Item item = mItems.valueAt(i); in onProvideAutofillCompatModeAccessibilityNodeInfo() 370 final Item item = getItem(virtualViewId); in setCompatMode() 381 final Item item = getItem(virtualViewId); in setCompatMode() 416 public final Item text; [all …]
|
/cts/hostsidetests/media/app/MediaRouterWithBTPermissionsApp/src/android/media/router/cts/bluetoothpermissionsapp/ |
D | MediaRouter2DeviceTest.java | 464 List<RouteListingPreference.Item> items = in setRouteListingPreference_propagatesToManager() 466 new RouteListingPreference.Item.Builder(ROUTE_ID_APP_1_ROUTE_1) in setRouteListingPreference_propagatesToManager() 467 .setFlags(RouteListingPreference.Item.FLAG_ONGOING_SESSION) in setRouteListingPreference_propagatesToManager() 468 .setSubText(RouteListingPreference.Item.SUBTEXT_NONE) in setRouteListingPreference_propagatesToManager() 470 new RouteListingPreference.Item.Builder(ROUTE_ID_APP_2_ROUTE_2) in setRouteListingPreference_propagatesToManager() 472 .setSubText(RouteListingPreference.Item.SUBTEXT_NONE) in setRouteListingPreference_propagatesToManager() 474 RouteListingPreference.Item.SELECTION_BEHAVIOR_NONE) in setRouteListingPreference_propagatesToManager() 476 new RouteListingPreference.Item.Builder(ROUTE_ID_APP_3_ROUTE_3) in setRouteListingPreference_propagatesToManager() 479 RouteListingPreference.Item.SUBTEXT_SUBSCRIPTION_REQUIRED) in setRouteListingPreference_propagatesToManager() 501 .isEqualTo(RouteListingPreference.Item.FLAG_ONGOING_SESSION); in setRouteListingPreference_propagatesToManager() [all …]
|
/cts/tests/framework/base/windowmanager/dndsourceapp/src/android/server/wm/dndsourceapp/ |
D | DragSource.java | 90 final ClipData.Item intentSenderItem = new ClipData.Item.Builder() in onCreate() 106 setUpDragSource(mode, clipDescription, new ClipData.Item(uri), flags); in setUpDragSource() 110 final ClipData.Item item, final int flags) { in setUpDragSource()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sharesheet/ |
D | SharesheetPayloadToggleActionActivity.java | 24 import android.content.ClipData.Item; 108 new ClipData("", new String[] { mimeType }, new Item(uri))); in share() 122 ClipData clipData = new ClipData("", new String[0], new Item(Uris.ExtraContentUri)); in share() 123 clipData.addItem(new Item(uri)); in share()
|
D | SharesheetPayloadToggleActivity.java | 24 import android.content.ClipData.Item; 231 new ClipData("", new String[] { mimeType }, new Item(uri))); in share() 253 ClipData clipData = new ClipData("", new String[0], new Item(Uris.ExtraContentUri)); in share() 254 clipData.addItem(new Item(uri)); in share()
|
D | SharesheetChooserResultEditActivity.java | 50 new ClipData("", new String[]{"image/jpg"}, new ClipData.Item(mTestImageUri))); in createChooserIntent()
|
/cts/hostsidetests/appsecurity/test-apps/UsePermissionDiffCert/src/com/android/cts/usespermissiondiffcertapp/ |
D | Asserts.java | 45 ClipData.Item item = clip.getItemAt(i); in assertAccess() 99 ClipData.Item item = clip.getItemAt(i); in assertReadingClipNotAllowed() 203 ClipData.Item item = clip.getItemAt(i); in assertWritingClipNotAllowed() 223 ClipData.Item item = clip.getItemAt(i); in assertReadingClipAllowed() 251 ClipData.Item item = clip.getItemAt(i); in assertWritingClipAllowed() 273 final ClipData.Item expectedItem = expected.getItemAt(i); in assertClipDataEquals() 274 final ClipData.Item actualItem = actual.getItemAt(i); in assertClipDataEquals()
|
D | UriGrantsTest.java | 54 new ClipData.Item(uri)); in makeSingleClipData() 64 new ClipData.Item(grantClip1Uri)); in makeMultiClipData() 65 clip.addItem(new ClipData.Item(grantClip2Uri)); in makeMultiClipData() 69 clip.addItem(new ClipData.Item(new Intent(Intent.ACTION_VIEW, grantClip3Uri))); in makeMultiClipData() 73 clip.addItem(new ClipData.Item(intent)); in makeMultiClipData() 76 new ClipData.Item(grantClip5Uri))); in makeMultiClipData() 77 clip.addItem(new ClipData.Item(intent)); in makeMultiClipData()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | ViewReceiveContentTest.java | 192 new ClipData.Item(Uri.parse("content://example/1"))); in testOnDragEvent_withOnReceiveContentListener() 212 new ClipData.Item(Uri.parse("content://example/1"))); in testOnDragEvent_withOnReceiveContentListener_noneOfTheContentAccepted() 232 new ClipData.Item(Uri.parse("content://example/1"))); in testOnDragEvent_withOnReceiveContentListener_someOfTheContentAccepted() 241 new ClipData.Item(Uri.parse("content://example/1"))); in sampleUriPayload() 262 ClipData.Item expectedItem = mClip.getItemAt(0); in matches() 263 ClipData.Item actualItem = actual.getClip().getItemAt(0); in matches()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | TextViewReceiveContentTest.java | 282 new ClipData.Item("text", "html", null, SAMPLE_CONTENT_URI)); in testDefaultReceiver_onReceive_unsupportedMimeType() 295 new ClipData.Item("text", "html", null, SAMPLE_CONTENT_URI)); in testDefaultReceiver_onReceive_unsupportedMimeType_convertToPlainText() 308 clip.addItem(new ClipData.Item("TWO")); in testDefaultReceiver_onReceive_multipleItemsInClipData() 309 clip.addItem(new ClipData.Item("THREE")); in testDefaultReceiver_onReceive_multipleItemsInClipData() 412 new ClipData.Item("y", null, SAMPLE_CONTENT_URI)); in testPaste_customReceiver_unsupportedMimeType() 714 new ClipData.Item("y", null, SAMPLE_CONTENT_URI)); in testDragAndDrop_customReceiver_unsupportedMimeType() 911 ClipData.Item expectedItem = mClip.getItemAt(0); in matches() 912 ClipData.Item actualItem = actual.getClip().getItemAt(0); in matches()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/inline/ |
D | InlineAugmentedContentTest.java | 173 new String[]{suggestionMimeType}, new ClipData.Item(suggestionUri)); 211 new String[]{suggestionMimeType}, new ClipData.Item(suggestion)); 261 ClipData.Item item = clip.getItemAt(i);
|
/cts/tests/JobSchedulerSharedUid/src/android/jobscheduler/cts/shareduidtests/ |
D | ConstraintTest.java | 91 new ClipData.Item(mFirstUri)); in injectInstrumentation() 93 new ClipData.Item(mSecondUri)); in injectInstrumentation()
|
/cts/hostsidetests/devicepolicy/app/IntentSender/src/com/android/cts/intent/sender/ |
D | CopyPasteTest.java | 77 ClipData.Item item = clip.getItemAt(0); in getTextFromClipboard()
|
/cts/tests/tests/security/src/android/security/cts/CVE_2021_0327/ |
D | IntroActivity.java | 27 …intent.setClipData(new ClipData("d", new String[]{"a/b"}, new ClipData.Item(Uri.parse("content://a… in launchOtherUserActivity()
|
/cts/tests/JobScheduler/src/android/jobscheduler/cts/ |
D | BaseJobSchedulerTest.java | 111 new ClipData.Item(mFirstUri)); in injectInstrumentation() 113 new ClipData.Item(mSecondUri)); in injectInstrumentation()
|