Home
last modified time | relevance | path

Searched refs:items (Results 1 – 25 of 38) sorted by relevance

12

/cts/tests/tests/widget/src/android/widget/cts/
DRemoteViewsFixedCollectionAdapterTest.java131 RemoteCollectionItems items = new RemoteCollectionItems.Builder() in testParcelingAndUnparceling() local
138 RemoteCollectionItems unparceled = parcelAndUnparcel(items); in testParcelingAndUnparceling()
167 RemoteCollectionItems items = new RemoteCollectionItems.Builder() in testParcelingAndUnparceling_afterAttaching() local
175 parent.setRemoteAdapter(R.id.listview_default, items); in testParcelingAndUnparceling_afterAttaching()
177 RemoteCollectionItems unparceled = parcelAndUnparcel(items); in testParcelingAndUnparceling_afterAttaching()
194 RemoteCollectionItems items = new RemoteCollectionItems.Builder() in testParcelingAndUnparceling_multiplePackages()
204 parent.setRemoteAdapter(R.id.listview_default, items); in testParcelingAndUnparceling_multiplePackages()
206 RemoteCollectionItems unparceled = parcelAndUnparcel(items); in testParcelingAndUnparceling_multiplePackages()
222 RemoteCollectionItems items = new RemoteCollectionItems.Builder().build(); in testBuilder_empty() local
224 assertEquals(0, items.getItemCount()); in testBuilder_empty()
[all …]
DListViewTest.java682 List<String> items = new ArrayList<>(); in testRequestLayoutCallsMeasure() local
683 items.add("hello"); in testRequestLayoutCallsMeasure()
684 MockAdapter<String> adapter = new MockAdapter<>(mActivity, 0, items); in testRequestLayoutCallsMeasure()
708 List<String> items = new ArrayList<>(); in testNoSelectableItems() local
709 items.add("hello"); in testNoSelectableItems()
710 MockAdapter<String> adapter = new MockAdapter<>(mActivity, 0, items); in testNoSelectableItems()
721 items.remove(0); in testNoSelectableItems()
947 List<String> items = new ArrayList<>(); in testRequestLayoutWithTemporaryDetach() local
948 items.add("0"); in testRequestLayoutWithTemporaryDetach()
949 items.add("1"); in testRequestLayoutWithTemporaryDetach()
[all …]
DAbsListViewTest.java994 final ArrayList<String> items = new ArrayList<>(Arrays.asList(COUNTRY_LIST)); in testCheckItemCount() local
996 android.R.layout.simple_list_item_1, items); in testCheckItemCount()
1010 final ArrayList<String> items = new ArrayList<>(Arrays.asList(COUNTRY_LIST)); in testCheckedItemsUnderNoneChoiceMode() local
1012 android.R.layout.simple_list_item_1, items); in testCheckedItemsUnderNoneChoiceMode()
1036 final ArrayList<String> items = new ArrayList<>(Arrays.asList(COUNTRY_LIST)); in testCheckedItemsUnderSingleChoiceMode() local
1038 android.R.layout.simple_list_item_1, items); in testCheckedItemsUnderSingleChoiceMode()
1062 final ArrayList<String> items = new ArrayList<>(Arrays.asList(COUNTRY_LIST)); in testCheckedItemsUnderMultipleChoiceMode() local
1064 android.R.layout.simple_list_item_1, items); in testCheckedItemsUnderMultipleChoiceMode()
1086 final ArrayList<String> items = new ArrayList<>(Arrays.asList(COUNTRY_LIST)); in configureMultiChoiceModalState() local
1088 android.R.layout.simple_list_item_1, items); in configureMultiChoiceModalState()
/cts/tests/smartspace/src/android/smartspace/cts/
DCarouselTemplateDataTest.java47 List<CarouselItem> items = new ArrayList<>(); in testCreateCarouselTemplateData() local
48 items.add(createCarouselItem()); in testCreateCarouselTemplateData()
49 items.add(createCarouselItem()); in testCreateCarouselTemplateData()
50 CarouselTemplateData carouselTemplateData = new CarouselTemplateData.Builder(items) in testCreateCarouselTemplateData()
55 assertThat(carouselTemplateData.getCarouselItems()).isEqualTo(items); in testCreateCarouselTemplateData()
/cts/tests/tests/uidmigration/src/android/uidmigration/cts/
DCommon.kt53 fun <T> Array<T>.sameAs(vararg items: T) = in assertEquals()
54 size == items.size && all { items.contains(it) } && items.all { contains(it) } in assertEquals()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DArrayTestListAdapter.java48 public void addAll(List<TestListItem> items) { in addAll() argument
49 mRows.addAll(items); in addAll()
DTestListAdapter.java497 List<TestListItem> items, in RefreshResult() argument
503 mItems = items; in RefreshResult()
524 RefreshResult getRefreshResults(List<TestListItem> items) { in getRefreshResults() argument
563 items, results, details, reportLogs, histories, screenshotsMetadata); in getRefreshResults()
/cts/tests/app/src/android/app/cts/
DAlertDialog_BuilderTest.java388 final CharSequence[] items = mDialogActivity.getResources().getTextArray( in testSetMultiChoiceItemsWithParamInt() local
407 assertEquals(items[0], mSelectedItem); in testSetMultiChoiceItemsWithParamInt()
411 assertEquals(items[0], mListView.getItemAtPosition(0)); in testSetMultiChoiceItemsWithParamInt()
416 final CharSequence[] items = mDialogActivity.getResources().getTextArray( in testSetMultiChoiceItemsWithParamCharSequence() local
421 mBuilder.setMultiChoiceItems(items, null, mOnMultiChoiceClickListener); in testSetMultiChoiceItemsWithParamCharSequence()
434 assertEquals(items[0], mSelectedItem); in testSetMultiChoiceItemsWithParamCharSequence()
438 assertEquals(items[0], mListView.getItemAtPosition(0)); in testSetMultiChoiceItemsWithParamCharSequence()
443 final CharSequence[] items = mDialogActivity.getResources().getTextArray( in testSetSingleChoiceItemsWithParamInt() local
462 assertEquals(items[0], mSelectedItem); in testSetSingleChoiceItemsWithParamInt()
463 assertEquals(items[0], mListView.getItemAtPosition(0)); in testSetSingleChoiceItemsWithParamInt()
[all …]
/cts/apps/CameraITS/tests/scene2_a/
Dtest_reprocess_uv_swap.py149 for reprocess_format, nr_mode_dict in uv_swaps.items():
150 for nr_mode, (sad_swap, sad_no_swap) in nr_mode_dict.items():
223 for reprocess_format, edge_mode_dict in uv_swaps.items():
224 for edge_mode, (sad_swap, sad_no_swap) in edge_mode_dict.items():
284 for reprocess_format, (sad_swap, sad_no_swap) in uv_swaps.items():
/cts/apps/CameraITS/tests/scene0/
Dtest_unified_timestamps.py67 for sensor, existing in sensors.items():
82 for sensor, existing in sensors.items():
Dtest_sensor_events.py53 for key, existing in sensors.items():
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DRVCVXCheckAnalyzer.java411 String[] items = line.split(" "); in loadSensorLog() local
413 if (items.length != 5) { in loadSensorLog()
418 quat[0] = Double.parseDouble(items[1]); in loadSensorLog()
419 quat[1] = Double.parseDouble(items[2]); in loadSensorLog()
420 quat[2] = Double.parseDouble(items[3]); in loadSensorLog()
421 quat[3] = Double.parseDouble(items[4]); in loadSensorLog()
440 t0 = Long.parseLong(items[0])/1e9; in loadSensorLog()
442 recs.add(new AttitudeRec(Long.parseLong(items[0])/1e9-t0, rpy)); in loadSensorLog()
538 String[] items = line.split(" "); in loadAttitudeRecs() local
540 if (items.length != 4) { in loadAttitudeRecs()
[all …]
/cts/tools/cts-media/
Dget_achievable_rates.py46 …return 'dict(' + ', '.join(k + '=' + nice(v) for k, v in sorted(v.items(), key=lambda i: nicekey(i…
130 for comp_, cdata in sorted(data.items()):
139 for size, sdata in sorted(cdata.items()):
260 for dev, ddata in xmlInfo.items():
342 jsonData = json.load(jsonFile, object_pairs_hook=lambda items: items)
/cts/apps/CtsVerifier/src/com/android/cts/verifier/p2p/
DRequesterTestActivity.java286 final CharSequence[] items = new CharSequence[peerList.size()]; in showSelectTargetDialog() local
289 items[i++] = dev.deviceName; in showSelectTargetDialog()
295 .setItems(items, new android.content.DialogInterface.OnClickListener() { in showSelectTargetDialog()
/cts/tests/tests/keystore/src/android/keystore/cts/
DImportWrappedKeyTest.java519 DEREncodableVector items = new DEREncodableVector(); in wrapKey() local
520 items.add(new DERInteger(WRAPPED_FORMAT_VERSION)); in wrapKey()
521 items.add(new DEROctetString(encryptedEphemeralKeys)); in wrapKey()
522 items.add(new DEROctetString(iv)); in wrapKey()
523 items.add(wrappedKeyDescription); in wrapKey()
524 items.add(new DEROctetString(encryptedSecureKey)); in wrapKey()
525 items.add(new DEROctetString(tag)); in wrapKey()
526 return new DERSequence(items).getEncoded(ASN1Encoding.DER); in wrapKey()
/cts/apps/CameraITS/tests/scene1_1/
Dtest_crop_region_raw.py150 for s, img in imgs.items():
171 for s, img in imgs2.items():
/cts/tools/utils/
Dmonsoon.py355 items = sorted(mon.GetStatus().items())
356 print "\n".join(["%s: %s" % item for item in items])
/cts/apps/CameraITS/tests/sensor_fusion/
Dtest_preview_stabilization.py162 for _, result_per_size in stabilization_result.items():
Dtest_video_stabilization.py237 for video_quality, max_angles in max_cam_gyro_angles.items():
/cts/hostsidetests/multidevices/tools/
Drun_all_tests.py67 for _, testbed_data in config_file_contents.items():
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2020-0213/
Dpoc.cpp388 std::list<std::unique_ptr<C2Work>> items; in decodeNFrames() local
389 items.push_back(std::move(work)); in decodeNFrames()
392 if (component->queue(&items) != C2_OK) { in decodeNFrames()
/cts/tests/app/shared/src/android/app/stubs/shared/
DTestNotificationAssistant.java174 public void onPanelRevealed(int items) { in onPanelRevealed() argument
/cts/apps/CtsVerifier/assets/scripts/
Dexecute_power_tests.py835 items = sorted(mon.GetStatus().items())
836 print "\n".join(["%s: %s" % item for item in items])
/cts/apps/CameraITS/utils/
Dsensor_fusion_utils_tests.py104 gyro_pts = {k: v+t_offset+self._CAM_FRAME_TIME//2 for k, v in pts.items()}
/cts/tests/tests/tools/processors/view_inspector/src/android/processor/view/inspector/cts/
DPlatformInspectableProcessorTest.java779 private static <T> Set<T> setOf(T... items) { in setOf() argument
780 Set<T> set = new HashSet<>(items.length); in setOf()
782 for (T item : items) { in setOf()

12