/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() 53 assertTrue(getManager().setDynamicShortcuts(list( in testNumDynamicShortcuts() 67 getManager().setDynamicShortcuts(list( in testNumDynamicShortcuts() 86 getManager().addDynamicShortcuts(list( in testNumDynamicShortcuts() 93 getManager().removeDynamicShortcuts(list("s10x")); in testNumDynamicShortcuts() 94 assertTrue(getManager().addDynamicShortcuts(list( in testNumDynamicShortcuts() 104 assertTrue(getManager().addDynamicShortcuts(list( in testNumDynamicShortcuts() 163 assertTrue(getManager().setDynamicShortcuts(list( in testWithManifest() [all …]
|
D | ShortcutManagerClientApiTest.java | 20 import static com.android.server.pm.shortcutmanagertest.ShortcutManagerTestUtils.list; 144 assertTrue(getManager().setDynamicShortcuts(list(si))); in testShortcutInfoMissingMandatoryFields() 153 assertTrue(getManager().addDynamicShortcuts(list(si))); in testShortcutInfoMissingMandatoryFields() 161 assertTrue(getManager().setDynamicShortcuts(list(si))); in testShortcutInfoMissingMandatoryFields() 170 assertTrue(getManager().addDynamicShortcuts(list(si))); in testShortcutInfoMissingMandatoryFields() 178 assertTrue(getManager().setDynamicShortcuts(list(si))); in testShortcutInfoMissingMandatoryFields() 187 assertTrue(getManager().addDynamicShortcuts(list(si))); in testShortcutInfoMissingMandatoryFields() 199 assertTrue(getManager().setDynamicShortcuts(list(si))); in testShortcutInfoMissingMandatoryFields() 207 assertTrue(getManager().addDynamicShortcuts(list(si))); in testShortcutInfoMissingMandatoryFields() 215 assertTrue(getManager().updateShortcuts(list(si))); in testShortcutInfoMissingMandatoryFields() [all …]
|
D | ShortcutManagerFakingPublisherTest.java | 19 import static com.android.server.pm.shortcutmanagertest.ShortcutManagerTestUtils.list; 78 getManager().setDynamicShortcuts(list( in testSpoofingPublisher() 83 getManager().setDynamicShortcuts(list( in testSpoofingPublisher() 89 getManager().setDynamicShortcuts(list( in testSpoofingPublisher() 101 getManager().addDynamicShortcuts(list( in testSpoofingPublisher() 106 getManager().addDynamicShortcuts(list( in testSpoofingPublisher() 112 getManager().addDynamicShortcuts(list( in testSpoofingPublisher() 124 getManager().updateShortcuts(list( in testSpoofingPublisher() 129 getManager().updateShortcuts(list( in testSpoofingPublisher() 135 getManager().updateShortcuts(list( in testSpoofingPublisher()
|
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 | 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 | 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/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/tests/tests/webkit/src/android/webkit/cts/ |
D | WebBackForwardListTest.java | 60 WebBackForwardList list = mOnUiThread.copyBackForwardList(); in testGetCurrentItem() local 62 assertNull(list.getCurrentItem()); in testGetCurrentItem() 63 assertEquals(0, list.getSize()); in testGetCurrentItem() 64 assertEquals(-1, list.getCurrentIndex()); in testGetCurrentItem() 65 assertNull(list.getItemAtIndex(-1)); in testGetCurrentItem() 66 assertNull(list.getItemAtIndex(2)); in testGetCurrentItem() 94 WebBackForwardList list = mOnUiThread.copyBackForwardList(); in checkBackForwardList() local 95 if (list.getSize() != url.length) { in checkBackForwardList() 98 if (list.getCurrentIndex() != url.length - 1) { in checkBackForwardList() 102 WebHistoryItem item = list.getItemAtIndex(i); in checkBackForwardList()
|
D | WebHistoryItemTest.java | 93 WebBackForwardList list = mOnUiThread.copyBackForwardList(); in testWebHistoryItem() local 94 assertEquals(0, list.getSize()); in testWebHistoryItem() 105 list = mOnUiThread.copyBackForwardList(); in testWebHistoryItem() 106 assertEquals(1, list.getSize()); in testWebHistoryItem() 107 WebHistoryItem item = list.getCurrentItem(); in testWebHistoryItem() 117 list = mOnUiThread.copyBackForwardList(); in testWebHistoryItem() 118 assertEquals(2, list.getSize()); in testWebHistoryItem() 119 item = list.getCurrentItem(); in testWebHistoryItem()
|
/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/apps/CtsVerifier/src/com/android/cts/verifier/audio/peripheralprofile/ |
D | ListsHelper.java | 64 static public String textFormatHex(int[] list) { in textFormatHex() argument 67 for (int index = 0; index < list.length; index++) { in textFormatHex() 68 sb.append("0x" + Integer.toHexString(list[index])); in textFormatHex() 69 if (index < list.length-1) { in textFormatHex() 77 static public String textFormatDecimal(int[] list) { in textFormatDecimal() argument 80 for (int index = 0; index < list.length; index++) { in textFormatDecimal() 81 sb.append("0x" + list[index]); in textFormatDecimal() 82 if (index < list.length-1) { in textFormatDecimal()
|
/cts/tests/tests/text/src/android/text/util/cts/ |
D | Rfc822TokenizerTest.java | 154 final List<Rfc822Token> list = new ArrayList<>(); in testTokenize_withListParam() local 155 Rfc822Tokenizer.tokenize("", list); in testTokenize_withListParam() 156 assertEquals(0, list.size()); in testTokenize_withListParam() 159 Rfc822Tokenizer.tokenize(text, list); in testTokenize_withListParam() 160 assertEquals(2, list.size()); in testTokenize_withListParam() 161 verifyLocalAssertEquals(list.get(0), "Berg", "berg\\@example.com", "home"); in testTokenize_withListParam() 162 verifyLocalAssertEquals(list.get(1), null, "tom\\@example.com", "work"); in testTokenize_withListParam() 165 list.clear(); in testTokenize_withListParam() 166 Rfc822Tokenizer.tokenize(text, list); in testTokenize_withListParam() 167 assertEquals(2, list.size()); in testTokenize_withListParam() [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/apps/CtsVerifier/src/com/android/cts/verifier/qstiles/ |
D | TileServiceVerifierActivity.java | 41 ArrayList<InteractiveTestCase> list = new ArrayList<>(); in createTestItems() local 42 list.add(new SettingUpTile()); in createTestItems() 43 list.add(new TileNotAvailable()); in createTestItems() 44 list.add(new TileInCustomizer()); in createTestItems() 45 list.add(new TearingDownTile()); in createTestItems() 46 return list; in createTestItems()
|
/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()
|
/cts/tests/media/src/android/mediav2/cts/ |
D | CodecDecoderTest.java | 101 ArrayList<MediaCodec.BufferInfo> list = new ArrayList<>(); in createSubFrames() local 120 list.add(info); in createSubFrames() 123 return list; in createSubFrames() 128 Set<String> list = new HashSet<>(); in input() local 131 list.add(MediaFormat.MIMETYPE_AUDIO_AAC); in input() 132 list.add(MediaFormat.MIMETYPE_AUDIO_FLAC); in input() 133 list.add(MediaFormat.MIMETYPE_AUDIO_MPEG); in input() 134 list.add(MediaFormat.MIMETYPE_AUDIO_VORBIS); in input() 135 list.add(MediaFormat.MIMETYPE_AUDIO_RAW); in input() 136 list.add(MediaFormat.MIMETYPE_AUDIO_OPUS); in input() [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/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/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/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/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()
|