/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/ |
D | ShortcutManagerLauncherApiTest.java | 25 import static com.android.server.pm.shortcutmanagertest.ShortcutManagerTestUtils.list; 63 assertTrue(getManager().setDynamicShortcuts(list( in testPinShortcuts() 82 assertTrue(getManager().setDynamicShortcuts(list( in testPinShortcuts() 100 list("s1", "s2", "s3", "ms1", "ms21"), getUserHandle()); in testPinShortcuts() 103 list("s2", "s3", "ms1", "ms31"), getUserHandle()); in testPinShortcuts() 107 getManager().removeDynamicShortcuts(list("s1", "s2")); in testPinShortcuts() 116 getManager().removeDynamicShortcuts(list("s1", "s2")); in testPinShortcuts() 159 assertTrue(getManager().updateShortcuts(list( in testGetShortcuts() 166 assertTrue(getManager().updateShortcuts(list( in testGetShortcuts() 175 assertTrue(getManager().updateShortcuts(list( in testGetShortcuts() [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 | ShortcutManagerClientApiTest.java | 20 import static com.android.server.pm.shortcutmanagertest.ShortcutManagerTestUtils.list; 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() 187 assertTrue(getManager().setDynamicShortcuts(list(si))); in testShortcutInfoMissingMandatoryFields() 196 assertTrue(getManager().addDynamicShortcuts(list(si))); in testShortcutInfoMissingMandatoryFields() 208 assertTrue(getManager().setDynamicShortcuts(list(si))); in testShortcutInfoMissingMandatoryFields() 216 assertTrue(getManager().addDynamicShortcuts(list(si))); in testShortcutInfoMissingMandatoryFields() 224 assertTrue(getManager().updateShortcuts(list(si))); in testShortcutInfoMissingMandatoryFields() [all …]
|
D | ShortcutManagerSpoofDetectionTest.java | 19 import static com.android.server.pm.shortcutmanagertest.ShortcutManagerTestUtils.list; 53 getManager().setDynamicShortcuts(list(makeShortcut("s1"))); in testPublisherSpoofing() 56 getManager().addDynamicShortcuts(list(makeShortcut("s1"))); in testPublisherSpoofing() 59 getManager().removeDynamicShortcuts(list("s1")); in testPublisherSpoofing() 71 getManager().updateShortcuts(list(makeShortcut("s1"))); in testPublisherSpoofing() 101 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 | ShortcutManagerMaxCountTest.java | 20 import static com.android.server.pm.shortcutmanagertest.ShortcutManagerTestUtils.list; 36 assertTrue(getManager().setDynamicShortcuts(list(makeShortcut("s1")))); in testNumDynamicShortcuts() 56 getManager().addDynamicShortcuts(list( in testNumDynamicShortcuts() 63 getManager().removeDynamicShortcuts(list("sx15")); in testNumDynamicShortcuts() 64 assertTrue(getManager().addDynamicShortcuts(list( in testNumDynamicShortcuts() 148 assertDynamicShortcutCountExceeded(() -> getManager().addDynamicShortcuts(list( in testWithManifest() 185 assertDynamicShortcutCountExceeded(() -> getManager().updateShortcuts(list( in testChangeActivity() 202 assertTrue(getManager().updateShortcuts(list( in testChangeActivity() 232 list(makeIds("s", 1, 15)), in testWithPinned()
|
/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/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/app/AppExitTest/src/android/app/cts/ |
D | ActivityManagerAppExitInfoTest.java | 486 List<ApplicationExitInfo> list = null; in testExitCode() local 488 list = mActivityManager.getHistoricalProcessExitReasons( in testExitCode() 497 list = getHistoricalProcessExitReasonsAsUser(STUB_PACKAGE_NAME, in testExitCode() 504 list = ShellIdentityUtils.invokeMethodWithShellPermissions( in testExitCode() 509 assertTrue(list != null && list.size() == 1); in testExitCode() 510 verify(list.get(0), mStubPackagePid, mStubPackageUid, STUB_PACKAGE_NAME, in testExitCode() 516 final List<ApplicationExitInfo> list) throws Exception { in fillUpMemoryAndCheck() argument 524 while (list.size() == 0) { in fillUpMemoryAndCheck() 530 if (!MemoryConsumerService.runOnce(consumer, totalMb) && list.size() == 0) { in fillUpMemoryAndCheck() 559 List<ApplicationExitInfo> list = new ArrayList<>(); in testLmkdKill() local [all …]
|
/cts/tests/tests/webkit/src/android/webkit/cts/ |
D | WebBackForwardListTest.java | 90 WebBackForwardList list = mOnUiThread.copyBackForwardList(); in testGetCurrentItem() local 92 assertNull(list.getCurrentItem()); in testGetCurrentItem() 93 assertEquals(0, list.getSize()); in testGetCurrentItem() 94 assertEquals(-1, list.getCurrentIndex()); in testGetCurrentItem() 95 assertNull(list.getItemAtIndex(-1)); in testGetCurrentItem() 96 assertNull(list.getItemAtIndex(2)); in testGetCurrentItem() 124 WebBackForwardList list = mOnUiThread.copyBackForwardList(); in checkBackForwardList() local 125 if (list.getSize() != url.length) { in checkBackForwardList() 128 if (list.getCurrentIndex() != url.length - 1) { in checkBackForwardList() 132 WebHistoryItem item = list.getItemAtIndex(i); in checkBackForwardList()
|
D | WebHistoryItemTest.java | 130 WebBackForwardList list = mOnUiThread.copyBackForwardList(); in testWebHistoryItem() local 131 assertEquals(0, list.getSize()); in testWebHistoryItem() 142 list = mOnUiThread.copyBackForwardList(); in testWebHistoryItem() 143 assertEquals(1, list.getSize()); in testWebHistoryItem() 144 WebHistoryItem item = list.getCurrentItem(); in testWebHistoryItem() 154 list = mOnUiThread.copyBackForwardList(); in testWebHistoryItem() 155 assertEquals(2, list.getSize()); in testWebHistoryItem() 156 item = list.getCurrentItem(); in testWebHistoryItem()
|
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/proxy/ |
D | PacProxyTest.java | 207 List<Proxy> list = selector.select(uri); in testDirect() local 208 assertEquals("Proxy must be direct", newArrayList(Proxy.NO_PROXY), list); in testDirect() 223 List<Proxy> list = selector.select(uri); in testLocalPlusDirect() local 227 Proxy.NO_PROXY), list); in testLocalPlusDirect() 242 List<Proxy> list = selector.select(uri); in testHostPassthrough() local 246 list); in testHostPassthrough() 262 List<Proxy> list = selector.select(uri); in testUrlPassthrough() local 265 list); in testUrlPassthrough() 268 list = selector.select(uri); in testUrlPassthrough() 270 newArrayList(Proxy.NO_PROXY), list); in testUrlPassthrough() [all …]
|
D | StaticProxyTest.java | 82 List<Proxy> list = selector.select(uri); in testProxySelector() local 86 list); in testProxySelector() 100 List<Proxy> list = selector.select(uri); in testProxySelectorExclude() local 101 assertEquals("Direct must be returned", newArrayList(Proxy.NO_PROXY), list); in testProxySelectorExclude() 112 List<Proxy> list = selector.select(uri); in testClearProxySelector() local 113 assertEquals("Direct must be returned", newArrayList(Proxy.NO_PROXY), list); in testClearProxySelector()
|
/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/apps/CtsVerifier/src/com/android/cts/verifier/qstiles/ |
D | TileServiceVerifierActivity.java | 49 ArrayList<InteractiveTestCase> list = new ArrayList<>(); in createTestItems() local 50 list.add(new SettingUpTile()); in createTestItems() 51 list.add(new TileNotAvailable()); in createTestItems() 52 list.add(new TileInCustomizer()); in createTestItems() 53 list.add(new TearingDownTile()); in createTestItems() 54 return list; in createTestItems()
|
D | TileServiceRequestVerifierActivity.java | 104 ArrayList<InteractiveTestCase> list = new ArrayList<>(); in createTestItems() local 105 list.add(new UninstallPackage()); in createTestItems() 106 list.add(new InstallPackage()); in createTestItems() 107 list.add(new InstallPackageVerify()); in createTestItems() 108 list.add(new TileNotPresent()); in createTestItems() 109 list.add(new RequestAddTileDismiss()); in createTestItems() 110 list.add(new RequestAddTileCorrectInfo()); in createTestItems() 111 list.add(new RequestAddTileAnswerYes()); in createTestItems() 112 list.add(new TilePresentAfterRequest()); in createTestItems() 113 list.add(new RequestAddTileAlreadyAdded()); in createTestItems() [all …]
|
/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; 41 getLauncherApps().pinShortcuts(PUBLISHER1_PKG, list("s3", "ms2"), getUserHandle()); in testPreBackup() 42 getLauncherApps().pinShortcuts(PUBLISHER2_PKG, list("s2", "s3", "ms1"), getUserHandle()); in testPreBackup() 43 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; 41 getLauncherApps().pinShortcuts(PUBLISHER1_PKG, list("s3", "ms1", "ms2"), getUserHandle()); in testPreBackup() 42 getLauncherApps().pinShortcuts(PUBLISHER2_PKG, list("s1", "s3", "ms2"), getUserHandle()); in testPreBackup() 43 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; 41 getLauncherApps().pinShortcuts(PUBLISHER1_PKG, list("s1", "ms1"), getUserHandle()); in testPreBackup() 42 getLauncherApps().pinShortcuts(PUBLISHER2_PKG, list("s1", "s2", "ms2"), getUserHandle()); in testPreBackup() 43 getLauncherApps().pinShortcuts(PUBLISHER3_PKG, list("s1", "s2", "ms1", "ms2"), in testPreBackup()
|
/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/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; 59 assertTrue(getManager().addDynamicShortcuts(list(s1))); in testRestoredOnOldVersion() 64 assertTrue(getManager().updateShortcuts(list(s2))); in testRestoredOnOldVersion() 94 assertTrue(getManager().updateShortcuts(list(s2))); in testRestoredOnNewVersion() 125 assertTrue(getManager().addDynamicShortcuts(list(s1))); in testBackupDisabled() 159 assertTrue(getManager().addDynamicShortcuts(list(s1))); in testRestoreWrongKey() 164 assertTrue(getManager().updateShortcuts(list(s2))); in testRestoreWrongKey() 220 getManager().disableShortcuts(list("s1", "s2")); in testInvisibleIgnored() 223 getManager().enableShortcuts(list("s2")); in testInvisibleIgnored() 226 getManager().removeDynamicShortcuts(list("s1")); in testInvisibleIgnored()
|
/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/broadcastradio/src/android/broadcastradio/cts/ |
D | RadioTunerTest.java | 260 ProgramList list = assumeNonNullProgramList(); in getDynamicProgramList_programListUpdated() local 262 list.addOnCompleteListener(completeListener); in getDynamicProgramList_programListUpdated() 267 list.close(); in getDynamicProgramList_programListUpdated() 277 ProgramList list = assumeNonNullProgramList(); in getProgramInfos_fromDynamicProgramList() local 279 list.addOnCompleteListener(completeListener); in getProgramInfos_fromDynamicProgramList() 282 List<RadioManager.ProgramInfo> programInfoList = list.toList(); in getProgramInfos_fromDynamicProgramList() 288 .that(list.getProgramInfos(firstProgram.getSelector().getPrimaryId())) in getProgramInfos_fromDynamicProgramList() 291 list.close(); in getProgramInfos_fromDynamicProgramList() 304 ProgramList list = assumeNonNullFiltereredDynamicProgramList(hdFilter); in tune_withHdSelectorFromDynamicProgramList() local 306 list.addOnCompleteListener(completeListener); in tune_withHdSelectorFromDynamicProgramList() [all …]
|
/cts/hostsidetests/multidevices/ |
D | Android.bp | 45 cmd: "echo $(locations :multidevice_apps_to_include) >$(genDir)/list && " + 46 "$(location soong_zip) -o $(out) -j -P android-cts-verifier/MultiDevice -l $(genDir)/list", 50 name: "multidevice-test-list", 57 out: ["multidevice-test-list.zip"], 70 ":multidevice-test-list", 78 …locations utils/*.py) $(locations build/envsetup.sh) $(locations config.yml) >$(genDir)/list && " + 79 …ifier/MultiDevice -C $$(dirname $$(dirname $(location build/envsetup.sh))) -l $(genDir)/list && " + 80 …_zips) $(out) $(genDir)/multidevice-temp.zip $(location :multidevice-test-list) $(location :multid…
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/tv/display/ |
D | YesNoTestStep.java | 53 List<View> list = super.createUiElements(); in createUiElements() local 65 list.add(mPositiveButton); in createUiElements() 77 list.add(mNegativeButton); in createUiElements() 79 return list; in createUiElements()
|