/cts/common/device-side/device-info/tests/src/com/android/compatibility/common/deviceinfo/ |
D | TestDeviceInfo.java | 47 List<String> list = new ArrayList<>(); in collectDeviceInfo() local 48 list.add("test string 1"); in collectDeviceInfo() 49 list.add("test string 2"); in collectDeviceInfo() 50 list.add("test string 3"); in collectDeviceInfo() 51 store.addListResult("test_strings", list); in collectDeviceInfo() 60 list = new ArrayList<>(); in collectDeviceInfo() 61 list.add("test group string 1"); in collectDeviceInfo() 62 list.add("test group string 2"); in collectDeviceInfo() 63 list.add("test group string 3"); in collectDeviceInfo() 64 store.addListResult("test_strings", list); in collectDeviceInfo() [all …]
|
/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/ |
D | ShortcutManagerLauncherApiTest.java | 24 import static com.android.server.pm.shortcutmanagertest.ShortcutManagerTestUtils.list; 52 assertTrue(getManager().setDynamicShortcuts(list( in testPinShortcuts() 71 assertTrue(getManager().setDynamicShortcuts(list( in testPinShortcuts() 89 list("s1", "s2", "s3", "ms1", "ms21"), getUserHandle()); in testPinShortcuts() 92 list("s2", "s3", "ms1", "ms31"), getUserHandle()); in testPinShortcuts() 96 getManager().removeDynamicShortcuts(list("s1", "s2")); in testPinShortcuts() 105 getManager().removeDynamicShortcuts(list("s1", "s2")); in testPinShortcuts() 148 assertTrue(getManager().updateShortcuts(list( in testGetShortcuts() 153 assertTrue(getManager().updateShortcuts(list( in testGetShortcuts() 162 assertTrue(getManager().updateShortcuts(list( in testGetShortcuts() [all …]
|
D | ShortcutManagerMaxCountTest.java | 20 import static com.android.server.pm.shortcutmanagertest.ShortcutManagerTestUtils.list; 36 assertTrue(getManager().setDynamicShortcuts(list(makeShortcut("s1")))); in testNumDynamicShortcuts() 37 assertTrue(getManager().setDynamicShortcuts(list( in testNumDynamicShortcuts() 48 assertTrue(getManager().setDynamicShortcuts(list( in testNumDynamicShortcuts() 57 getManager().setDynamicShortcuts(list( in testNumDynamicShortcuts() 71 getManager().addDynamicShortcuts(list( in testNumDynamicShortcuts() 78 getManager().removeDynamicShortcuts(list("s5x")); in testNumDynamicShortcuts() 79 assertTrue(getManager().addDynamicShortcuts(list( in testNumDynamicShortcuts() 89 assertTrue(getManager().addDynamicShortcuts(list( in testNumDynamicShortcuts() 143 assertTrue(getManager().setDynamicShortcuts(list( in testWithManifest() [all …]
|
D | ShortcutManagerClientApiTest.java | 20 import static com.android.server.pm.shortcutmanagertest.ShortcutManagerTestUtils.list; 136 assertTrue(getManager().setDynamicShortcuts(list(si))); in testShortcutInfoMissingMandatoryFields() 145 assertTrue(getManager().addDynamicShortcuts(list(si))); in testShortcutInfoMissingMandatoryFields() 153 assertTrue(getManager().setDynamicShortcuts(list(si))); in testShortcutInfoMissingMandatoryFields() 162 assertTrue(getManager().addDynamicShortcuts(list(si))); in testShortcutInfoMissingMandatoryFields() 170 assertTrue(getManager().setDynamicShortcuts(list(si))); in testShortcutInfoMissingMandatoryFields() 179 assertTrue(getManager().addDynamicShortcuts(list(si))); in testShortcutInfoMissingMandatoryFields() 191 assertTrue(getManager().setDynamicShortcuts(list(si))); in testShortcutInfoMissingMandatoryFields() 199 assertTrue(getManager().addDynamicShortcuts(list(si))); in testShortcutInfoMissingMandatoryFields() 207 assertTrue(getManager().updateShortcuts(list(si))); in testShortcutInfoMissingMandatoryFields() [all …]
|
D | ShortcutManagerSpoofDetectionTest.java | 19 import static com.android.server.pm.shortcutmanagertest.ShortcutManagerTestUtils.list; 52 getManager().setDynamicShortcuts(list(makeShortcut("s1"))); in testPublisherSpoofing() 55 getManager().addDynamicShortcuts(list(makeShortcut("s1"))); in testPublisherSpoofing() 58 getManager().removeDynamicShortcuts(list("s1")); in testPublisherSpoofing() 70 getManager().updateShortcuts(list(makeShortcut("s1"))); in testPublisherSpoofing() 100 mPackageContext1.getPackageName(), list(), getUserHandle()); in testLauncherSpoofing()
|
D | ShortcutManagerMultiLauncherTest.java | 25 import static com.android.server.pm.shortcutmanagertest.ShortcutManagerTestUtils.list; 47 assertTrue(getManager().setDynamicShortcuts(list( in testPinShortcuts() 70 assertTrue(getManager().setDynamicShortcuts(list( in testPinShortcuts() 91 list("s1", "s2", "s3", "ms1", "ms21"), getUserHandle()); in testPinShortcuts() 94 list("s2", "s3", "ms31"), getUserHandle()); in testPinShortcuts() 102 list("s3", "s4", "ms22"), getUserHandle()); in testPinShortcuts() 105 list("s1", "s2", "s3", "ms32"), getUserHandle()); in testPinShortcuts() 122 getManager().removeDynamicShortcuts(list("s1", "s2", "s5")); in testPinShortcuts() 123 getManager().disableShortcuts(list("s4")); in testPinShortcuts() 156 getManager().removeDynamicShortcuts(list("s1", "s2", "s3", "s4")); in testPinShortcuts()
|
D | ShortcutManagerSpoofingTest.java | 23 import static com.android.server.pm.shortcutmanagertest.ShortcutManagerTestUtils.list; 47 getManager().setDynamicShortcuts(list(s1)); in testSpoofingPublisher() 51 getManager().setDynamicShortcuts(list(s1)); in testSpoofingPublisher() 55 getManager().setDynamicShortcuts(list(s1)); in testSpoofingPublisher() 105 resetAll(list(c0_1, c0_2, c0_3)); in testSpoofingLauncher() 109 getManager().setDynamicShortcuts(list(s1)); in testSpoofingLauncher()
|
D | ShortcutManagerLauncherCallbackTest.java | 19 import static com.android.server.pm.shortcutmanagertest.ShortcutManagerTestUtils.list; 165 assertTrue(getManager().setDynamicShortcuts(list( in testCallbacks() 179 assertTrue(getManager().addDynamicShortcuts(list( in testCallbacks() 192 assertTrue(getManager().updateShortcuts(list( in testCallbacks() 205 assertTrue(getManager().updateShortcuts(list( in testCallbacks() 246 list("s1", "ms1", "ms21"), getUserHandle()); in testCallbacks() 252 list("s1", "s2", "s3", "ms22"), getUserHandle()); in testCallbacks() 261 getManager().removeDynamicShortcuts(list("s1", "s2")); in testCallbacks() 294 getManager().disableShortcuts(list("s1")); in testCallbacks() 313 getManager().enableShortcuts(list("s1")); in testCallbacks() [all …]
|
/cts/tests/tests/webkit/src/android/webkit/cts/ |
D | WebBackForwardListTest.java | 58 WebBackForwardList list = mOnUiThread.copyBackForwardList(); in testGetCurrentItem() local 60 assertNull(list.getCurrentItem()); in testGetCurrentItem() 61 assertEquals(0, list.getSize()); in testGetCurrentItem() 62 assertEquals(-1, list.getCurrentIndex()); in testGetCurrentItem() 63 assertNull(list.getItemAtIndex(-1)); in testGetCurrentItem() 64 assertNull(list.getItemAtIndex(2)); in testGetCurrentItem() 92 WebBackForwardList list = mOnUiThread.copyBackForwardList(); in checkBackForwardList() local 93 if (list.getSize() != url.length) { in checkBackForwardList() 96 if (list.getCurrentIndex() != url.length - 1) { in checkBackForwardList() 100 WebHistoryItem item = list.getItemAtIndex(i); in checkBackForwardList()
|
D | WebHistoryItemTest.java | 94 WebBackForwardList list = mOnUiThread.copyBackForwardList(); in testWebHistoryItem() local 95 assertEquals(0, list.getSize()); in testWebHistoryItem() 106 list = mOnUiThread.copyBackForwardList(); in testWebHistoryItem() 107 assertEquals(1, list.getSize()); in testWebHistoryItem() 108 WebHistoryItem item = list.getCurrentItem(); in testWebHistoryItem() 118 list = mOnUiThread.copyBackForwardList(); in testWebHistoryItem() 119 assertEquals(2, list.getSize()); in testWebHistoryItem() 120 item = list.getCurrentItem(); in testWebHistoryItem()
|
/cts/suite/audio_quality/lib/src/task/ |
D | TaskSave.cpp | 38 const android::String8* list[] = {&STR_FILE, &STR_REPORT, NULL}; in TaskSave() local 39 registerSupportedStringAttributes(list); in TaskSave() 55 std::unique_ptr<std::vector<android::String8> > list(StringUtil::split(fileValue, ',')); in handleFile() local 56 std::vector<android::String8>* listp = list.get(); in handleFile() 79 std::unique_ptr<std::list<TaskCase::BufferPair> > buffers( in handleFile() 81 std::list<TaskCase::BufferPair>* buffersp = buffers.get(); in handleFile() 86 std::list<TaskCase::BufferPair>::iterator it = buffersp->begin(); in handleFile() 87 std::list<TaskCase::BufferPair>::iterator end = buffersp->end(); in handleFile() 108 std::unique_ptr<std::vector<android::String8> > list(StringUtil::split(reportValue, ',')); in handleReport() local 109 std::vector<android::String8>* listp = list.get(); in handleReport() [all …]
|
D | TaskProcess.cpp | 54 bool TaskProcess::prepareParams(std::vector<TaskProcess::Param>& list, in prepareParams() argument 61 size_t N = list.size(); in prepareParams() 86 if ((paramTypes != NULL) && paramTypes[i] && (list[i].getType() != EId)) { in prepareParams() 87 LOGE("mismatching types %d %d", paramTypes[i], list[i].getType()); in prepareParams() 90 if ((paramTypes != NULL) && !paramTypes[i] && (list[i].getType() == EId)) { in prepareParams() 91 LOGE("mismatching types %d %d", paramTypes[i], list[i].getType()); in prepareParams() 94 switch(list[i].getType()) { in prepareParams() 102 *(buffer.get()) = getTestCase()->findBuffer(list[i].getParamString()); in prepareParams() 117 if (!getTestCase()->findValue(list[i].getParamString(), *(valuesPtr[i].get()))) { in prepareParams() 118 LOGE("find %s failed", list[i].getParamString().string()); in prepareParams() [all …]
|
D | TaskCase.cpp | 38 const android::String8* list[] = {&STR_NAME, &STR_VERSION, &STR_DESCRIPTION, NULL}; in TaskCase() local 39 registerSupportedStringAttributes(list); in TaskCase() 110 template <typename T> typename std::list<std::pair<android::String8, T> >* findAllGeneric( in findAllGeneric() 119 typename std::list<std::pair<android::String8, T> >* list = NULL; in findAllGeneric() local 122 if (list == NULL) { // create only when found in findAllGeneric() 123 list = new std::list<std::pair<android::String8, T> >(); in findAllGeneric() 124 if (list == NULL) { in findAllGeneric() 130 list->push_back(match); in findAllGeneric() 134 return list; in findAllGeneric() 167 std::list<TaskCase::BufferPair>* TaskCase::findAllBuffers(const android::String8& re) in findAllBuffers() [all …]
|
/cts/suite/audio_quality/test/ |
D | TaskCaseTest.cpp | 61 std::list<TaskCase::BufferPair>* list = mTaskCase->findAllBuffers(RE); in TEST_F() local 62 ASSERT_TRUE(list != NULL); in TEST_F() 63 ASSERT_TRUE(((list->front().second.get() == buffer1.get()) && in TEST_F() 64 (list->back().second.get() == buffer2.get())) || in TEST_F() 65 ((list->front().second.get() == buffer2.get()) && in TEST_F() 66 (list->back().second.get() == buffer1.get()))); in TEST_F() 67 delete list; in TEST_F() 102 std::list<TaskCase::ValuePair>* list = mTaskCase->findAllValues(RE); in TEST_F() local 103 ASSERT_TRUE(list != NULL); in TEST_F() 104 ASSERT_TRUE(((list->front().second == val2) && (list->back().second == val3)) || in TEST_F() [all …]
|
/cts/hostsidetests/shortcuts/deviceside/backup/launcher1/src/android/content/pm/cts/shortcut/backup/launcher1/ |
D | ShortcutManagerPreBackupTest.java | 18 import static com.android.server.pm.shortcutmanagertest.ShortcutManagerTestUtils.list; 40 getLauncherApps().pinShortcuts(PUBLISHER1_PKG, list("s1", "ms1"), getUserHandle()); in testPreBackup() 41 getLauncherApps().pinShortcuts(PUBLISHER2_PKG, list("s1", "s2", "ms2"), getUserHandle()); in testPreBackup() 42 getLauncherApps().pinShortcuts(PUBLISHER3_PKG, list("s1", "s2", "ms1", "ms2"), in testPreBackup()
|
/cts/hostsidetests/shortcuts/deviceside/backup/launcher3/src/android/content/pm/cts/shortcut/backup/launcher3/ |
D | ShortcutManagerPreBackupTest.java | 18 import static com.android.server.pm.shortcutmanagertest.ShortcutManagerTestUtils.list; 40 getLauncherApps().pinShortcuts(PUBLISHER1_PKG, list("s3", "ms1", "ms2"), getUserHandle()); in testPreBackup() 41 getLauncherApps().pinShortcuts(PUBLISHER2_PKG, list("s1", "s3", "ms2"), getUserHandle()); in testPreBackup() 42 getLauncherApps().pinShortcuts(PUBLISHER3_PKG, list("s1", "s3", "ms1"), in testPreBackup()
|
/cts/hostsidetests/shortcuts/deviceside/backup/launcher2/src/android/content/pm/cts/shortcut/backup/launcher2/ |
D | ShortcutManagerPreBackupTest.java | 18 import static com.android.server.pm.shortcutmanagertest.ShortcutManagerTestUtils.list; 40 getLauncherApps().pinShortcuts(PUBLISHER1_PKG, list("s3", "ms2"), getUserHandle()); in testPreBackup() 41 getLauncherApps().pinShortcuts(PUBLISHER2_PKG, list("s2", "s3", "ms1"), getUserHandle()); in testPreBackup() 42 getLauncherApps().pinShortcuts(PUBLISHER3_PKG, list("s2", "s3", "ms1", "ms2"), in testPreBackup()
|
/cts/suite/audio_quality/lib/include/ |
D | Report.h | 52 void writeResult(std::list<StringPair>::const_iterator begin, 53 std::list<StringPair>::const_iterator end, bool passed); 57 std::list<StringPair> mPassedCases; 58 std::list<StringPair> mFailedCases;
|
/cts/tests/tests/text/src/android/text/util/cts/ |
D | Rfc822TokenizerTest.java | 153 final List<Rfc822Token> list = new ArrayList<>(); in testTokenize_withListParam() local 154 Rfc822Tokenizer.tokenize("", list); in testTokenize_withListParam() 155 assertEquals(0, list.size()); in testTokenize_withListParam() 158 Rfc822Tokenizer.tokenize(text, list); in testTokenize_withListParam() 159 assertEquals(2, list.size()); in testTokenize_withListParam() 160 verifyLocalAssertEquals(list.get(0), "Berg", "berg\\@example.com", "home"); in testTokenize_withListParam() 161 verifyLocalAssertEquals(list.get(1), null, "tom\\@example.com", "work"); in testTokenize_withListParam() 164 list.clear(); in testTokenize_withListParam() 165 Rfc822Tokenizer.tokenize(text, list); in testTokenize_withListParam() 166 assertEquals(2, list.size()); in testTokenize_withListParam() [all …]
|
/cts/tests/tests/shortcutmanager/throttling/src/android/content/pm/cts/shortcutmanager/throttling/ |
D | ThrottledTests.java | 18 import static com.android.server.pm.shortcutmanagertest.ShortcutManagerTestUtils.list; 61 retryUntil(() -> !manager.setDynamicShortcuts(list()), "Not throttled."); in ensureThrottled() 70 assertTrue(manager.setDynamicShortcuts(list())); in assertCallNotThrottled() 71 assertTrue(manager.addDynamicShortcuts(list())); in assertCallNotThrottled() 72 assertTrue(manager.updateShortcuts(list())); in assertCallNotThrottled()
|
D | ShortcutManagerThrottlingTestReceiver.java | 18 import static com.android.server.pm.shortcutmanagertest.ShortcutManagerTestUtils.list; 95 context, () -> getManager(context).setDynamicShortcuts(list())); in testSetDynamicShortcuts() 104 context, () -> getManager(context).addDynamicShortcuts(list())); in testAddDynamicShortcuts() 113 context, () -> getManager(context).updateShortcuts(list())); in testUpdateShortcuts() 161 assertTrue(context.getSystemService(ShortcutManager.class).setDynamicShortcuts(list())); in testInlineReplyCheck() 162 assertTrue(context.getSystemService(ShortcutManager.class).addDynamicShortcuts(list())); in testInlineReplyCheck() 163 assertTrue(context.getSystemService(ShortcutManager.class).updateShortcuts(list())); in testInlineReplyCheck()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | MediaCodecListTest.java | 360 List<CodecType> list = new ArrayList<CodecType>(16); in getRequiredCodecTypes() local 367 list.add(new AudioCodec(MediaFormat.MIMETYPE_AUDIO_MPEG, false, 8000)); // mp3 in getRequiredCodecTypes() 368 list.add(new AudioCodec(MediaFormat.MIMETYPE_AUDIO_MPEG, false, 48000)); // mp3 in getRequiredCodecTypes() 369 list.add(new AudioCodec(MediaFormat.MIMETYPE_AUDIO_VORBIS, false, 8000)); in getRequiredCodecTypes() 370 list.add(new AudioCodec(MediaFormat.MIMETYPE_AUDIO_VORBIS, false, 48000)); in getRequiredCodecTypes() 371 list.add(new AudioCodec(MediaFormat.MIMETYPE_AUDIO_AAC, false, 8000)); in getRequiredCodecTypes() 372 list.add(new AudioCodec(MediaFormat.MIMETYPE_AUDIO_AAC, false, 48000)); in getRequiredCodecTypes() 373 list.add(new AudioCodec(MediaFormat.MIMETYPE_AUDIO_RAW, false, 8000)); in getRequiredCodecTypes() 374 list.add(new AudioCodec(MediaFormat.MIMETYPE_AUDIO_RAW, false, 44100)); in getRequiredCodecTypes() 375 list.add(new AudioCodec(MediaFormat.MIMETYPE_AUDIO_OPUS, false, 48000)); in getRequiredCodecTypes() [all …]
|
/cts/hostsidetests/shortcuts/deviceside/backup/publisher4old/src/android/content/pm/cts/shortcut/backup/publisher4/ |
D | ShortcutManagerPostBackupTest.java | 19 import static com.android.server.pm.shortcutmanagertest.ShortcutManagerTestUtils.list; 60 assertTrue(getManager().addDynamicShortcuts(list(s1))); in testRestoredOnOldVersion() 65 assertTrue(getManager().updateShortcuts(list(s2))); in testRestoredOnOldVersion() 96 assertTrue(getManager().updateShortcuts(list(s2))); in testRestoredOnNewVersion() 127 assertTrue(getManager().addDynamicShortcuts(list(s1))); in testBackupDisabled() 161 assertTrue(getManager().addDynamicShortcuts(list(s1))); in testRestoreWrongKey() 166 assertTrue(getManager().updateShortcuts(list(s2))); in testRestoreWrongKey() 195 assertTrue(getManager().setDynamicShortcuts(list(ms1))); in testRestoreNoManifestOnOldVersion() 209 assertTrue(getManager().addDynamicShortcuts(list(s1))); in testRestoreNoManifestOnOldVersion() 220 assertTrue(getManager().updateShortcuts(list(ms2))); in testRestoreNoManifestOnOldVersion() [all …]
|
/cts/hostsidetests/shortcuts/deviceside/multiuser/src/android/content/pm/cts/shortcut/multiuser/ |
D | ShortcutManagerSecondaryUserTest.java | 20 import static com.android.server.pm.shortcutmanagertest.ShortcutManagerTestUtils.list; 41 assertTrue(getManager().setDynamicShortcuts(list( in testCreateAndStart() 51 .setShortcutIds(list("s1")); in testCreateAndStart() 52 final List<ShortcutInfo> list = getLauncherApps().getShortcuts(q, user); in testCreateAndStart() local 53 assertWith(list) in testCreateAndStart() 60 final ShortcutInfo s1 = list.get(0); in testCreateAndStart()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | AdapterViewCtsActivity.java | 52 final List<String> list = new ArrayList<String>(); in getArrayAdapter() local 54 list.add("test:" + i); in getArrayAdapter() 56 return new ArrayAdapter<String>(this, R.layout.adapterview_layout, list); in getArrayAdapter()
|