Home
last modified time | relevance | path

Searched refs:si (Results 1 – 25 of 26) sorted by relevance

12

/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/
DShortcutManagerClientApiTest.java151 ShortcutInfo si = new ShortcutInfo.Builder(getTestContext(), "id") in testShortcutInfoMissingMandatoryFields()
153 assertTrue(getManager().setDynamicShortcuts(list(si))); in testShortcutInfoMissingMandatoryFields()
159 ShortcutInfo si = new ShortcutInfo.Builder(getTestContext(), "id") in testShortcutInfoMissingMandatoryFields()
162 assertTrue(getManager().addDynamicShortcuts(list(si))); in testShortcutInfoMissingMandatoryFields()
166 ShortcutInfo si = new ShortcutInfo.Builder(getTestContext(), "id") in testShortcutInfoMissingMandatoryFields()
170 assertTrue(getManager().setDynamicShortcuts(list(si))); in testShortcutInfoMissingMandatoryFields()
175 ShortcutInfo si = new ShortcutInfo.Builder(getTestContext(), "id") in testShortcutInfoMissingMandatoryFields()
179 assertTrue(getManager().addDynamicShortcuts(list(si))); in testShortcutInfoMissingMandatoryFields()
184 ShortcutInfo si = new ShortcutInfo.Builder(getTestContext(), "id") in testShortcutInfoMissingMandatoryFields()
187 assertTrue(getManager().setDynamicShortcuts(list(si))); in testShortcutInfoMissingMandatoryFields()
[all …]
DShortcutManagerLauncherCallbackTest.java89 for (ShortcutInfo si : shortcuts) { in onShortcutsChanged()
93 sb.append(si.getId()); in onShortcutsChanged()
98 for (ShortcutInfo si : shortcuts) { in onShortcutsChanged()
99 Log.i(TAG, " " + si); in onShortcutsChanged()
127 for (ShortcutInfo si : lastShortcuts) { in isShortcutById()
128 if (id.equals(si.getId()) && predicate.test(si)) { in isShortcutById()
301 retryUntil(() -> (c.isCalled() && c.isShortcutById("s1", si -> !si.isEnabled())), in testCallbacks()
320 retryUntil(() -> (c.isCalled() && c.isShortcutById("s1", si -> si.isEnabled())), in testCallbacks()
DShortcutManagerLauncherApiTest.java466 assertWith(ret).haveIds("s1", "s2", "s3").forShortcutWithId("s1", si -> { in setDynamicShortcuts_PersistsShortcutsToDisk()
468 "action.intent.START_EXERCISE").build()), si.getCapabilities()); in setDynamicShortcuts_PersistsShortcutsToDisk()
473 si.getCapabilityParams(new Capability.Builder( in setDynamicShortcuts_PersistsShortcutsToDisk()
508 .forShortcutWithId("s1", si -> { in removeAllDynamicShortcuts_RemovesShortcutsFromDisk()
510 "action.intent.START_EXERCISE").build()), si.getCapabilities()); in removeAllDynamicShortcuts_RemovesShortcutsFromDisk()
516 si.getCapabilityParams(new Capability.Builder( in removeAllDynamicShortcuts_RemovesShortcutsFromDisk()
567 .forShortcutWithId("s1", si -> { in addDynamicShortcuts_PersistsShortcutsToDisk()
569 "action.intent.START_EXERCISE").build()), si.getCapabilities()); in addDynamicShortcuts_PersistsShortcutsToDisk()
575 si.getCapabilityParams(new Capability.Builder( in addDynamicShortcuts_PersistsShortcutsToDisk()
634 .forShortcutWithId("s1", si -> { in pushDynamicShortcuts_PersistsShortcutsToDisk()
[all …]
DShortcutManagerRequestPinTest.java124 .forShortcutWithId(SHORTCUT_ID, si -> { in testRequestPinShortcut()
125 assertEquals("label1", si.getShortLabel()); in testRequestPinShortcut()
301 .forShortcutWithId(SHORTCUT_ID, si -> { in testRequestPinShortcut_multiLaunchers_withDynamic()
302 assertEquals("label1", si.getShortLabel()); in testRequestPinShortcut_multiLaunchers_withDynamic()
/cts/hostsidetests/shortcuts/deviceside/backup/launcher4old/src/android/content/pm/cts/shortcut/backup/launcher4/
DShortcutManagerPostBackupTest.java45 .forAllShortcuts(si -> { in testRestoredOnOldVersion()
46 assertEquals("shortlabel1_new_one", si.getShortLabel()); in testRestoredOnOldVersion()
50 assertNull(si.getExtras()); in testRestoredOnOldVersion()
56 .forAllShortcuts(si -> { in testRestoredOnOldVersion()
57 assertEquals("shortlabel2_updated", si.getShortLabel()); in testRestoredOnOldVersion()
79 .forAllShortcuts(si -> { in testRestoredOnNewVersion()
80 assertEquals("shortlabel1_new_one", si.getShortLabel()); in testRestoredOnNewVersion()
84 assertNull(si.getExtras()); in testRestoredOnNewVersion()
90 .forAllShortcuts(si -> { in testRestoredOnNewVersion()
91 assertEquals("shortlabel2_updated", si.getShortLabel()); in testRestoredOnNewVersion()
[all …]
/cts/hostsidetests/shortcuts/deviceside/multiuser/src/android/content/pm/cts/shortcut/multiuser/
DShortcutManagerManagedUserTest.java78 .forShortcutWithId("s1", si -> { in test04_getAndLaunch_primary()
79 assertEquals("label1", si.getShortLabel()); in test04_getAndLaunch_primary()
80 assertEquals(userCurrent, si.getUserHandle()); in test04_getAndLaunch_primary()
85 .forShortcutWithId("s1", si -> { in test04_getAndLaunch_primary()
86 assertEquals("label2", si.getShortLabel()); in test04_getAndLaunch_primary()
87 assertEquals(userOther, si.getUserHandle()); in test04_getAndLaunch_primary()
114 .forShortcutWithId("s1", si -> { in test05_getAndLaunch_managed()
115 assertEquals("label2", si.getShortLabel()); in test05_getAndLaunch_managed()
116 assertEquals(userCurrent, si.getUserHandle()); in test05_getAndLaunch_managed()
DShortcutManagerSecondaryUserTest.java56 .forShortcutWithId("s1", si -> { in testCreateAndStart()
57 assertEquals(user, si.getUserHandle()); in testCreateAndStart()
/cts/tests/tests/renderscript/src/android/renderscript/cts/
DIntrinsicConvolve5x5.java23 private void test5(ScriptC_intrinsic_convolve5x5 sr, ScriptIntrinsicConvolve5x5 si, in test5() argument
26 si.setCoefficients(cf); in test5()
27 si.setInput(mAllocSrc); in test5()
33 si.forEach(mAllocRef, sc); in test5()
101 ScriptIntrinsicConvolve5x5 si = ScriptIntrinsicConvolve5x5.create(mRS, e); in testConvolve5() local
103 test5(sr, si, e, cf1, "test convolve", 1, w, h, sc); in testConvolve5()
104 test5(sr, si, e, cf2, "test convolve", 2, w, h, sc); in testConvolve5()
105 test5(sr, si, e, cf3, "test convolve", 3, w, h, sc); in testConvolve5()
107 si.destroy(); in testConvolve5()
DIntrinsicConvolve3x3.java38 ScriptIntrinsicConvolve3x3 si = ScriptIntrinsicConvolve3x3.create(mRS, e); in testConvolve3() local
39 si.setCoefficients(cf1); in testConvolve3()
40 si.setInput(mAllocSrc); in testConvolve3()
41 si.forEach(mAllocRef, sc); in testConvolve3()
89 si.setCoefficients(cf2); in testConvolve3()
91 si.forEach(mAllocRef, sc); in testConvolve3()
126 si.setCoefficients(cf3); in testConvolve3()
128 si.forEach(mAllocRef, sc); in testConvolve3()
165 si.destroy(); in testConvolve3()
DIntrinsicResize.java55 ScriptIntrinsicResize si = ScriptIntrinsicResize.create(mRS); in testResize() local
56 si.setInput(mAllocSrc); in testResize()
58 si.forEach_bicubic(mAllocRef, options); in testResize()
60 si.forEach_bicubic(mAllocRef); in testResize()
145 si.destroy(); in testResize()
DMatrixTest.rscript707 const float si = sin(inRadians);
712 co + ux * ux * (1.f - co), ux * uy * (1.f - co) - uz * si, ux * uz * (1.f - co) + uy * si, 0.f,
713 uy * ux * (1.f - co) + uz * si, co + uy * uy * (1.f - co), uy * uz * (1.f - co) - ux * si, 0.f,
714 uz * ux * (1.f - co) - uy * si, uz * uy * (1.f - co) + ux * si, co + uz * uz * (1.f - co), 0.f,
/cts/hostsidetests/shortcuts/deviceside/backup/publisher4old/src/android/content/pm/cts/shortcut/backup/publisher4/
DShortcutManagerPostBackupTest.java98 .forAllShortcuts(si -> { in testRestoredOnNewVersion()
99 assertEquals("shortlabel2_updated", si.getShortLabel()); in testRestoredOnNewVersion()
131 .forAllShortcuts(si -> { in testBackupDisabled()
134 assertNull(si.getExtras()); in testBackupDisabled()
275 .forAllShortcuts(si -> { in testInvisibleIgnored()
278 assertTrue(TextUtils.isEmpty(si.getLongLabel())); in testInvisibleIgnored()
/cts/tests/tests/syncmanager/src/android/content/syncmanager/cts/
DCtsSyncManagerTest.java200 SyncInvocation si = res.getSyncInvocations().getSyncInvocations(0); in testInitialSync() local
202 assertEquals(ACCOUNT_1_A.name, si.getAccountName()); in testInitialSync()
203 assertEquals(ACCOUNT_1_A.type, si.getAccountType()); in testInitialSync()
204 assertEquals(APP1_AUTHORITY, si.getAuthority()); in testInitialSync()
206 Bundle extras = ParcelUtils.fromBytes(si.getExtras().toByteArray()); in testInitialSync()
325 SyncInvocation si = res.getSyncInvocations().getSyncInvocations(0); in testInitialSyncInNeverBucket() local
327 assertEquals(ACCOUNT_1_A.name, si.getAccountName()); in testInitialSyncInNeverBucket()
328 assertEquals(ACCOUNT_1_A.type, si.getAccountType()); in testInitialSyncInNeverBucket()
329 assertEquals(APP1_AUTHORITY, si.getAuthority()); in testInitialSyncInNeverBucket()
331 Bundle extras = ParcelUtils.fromBytes(si.getExtras().toByteArray()); in testInitialSyncInNeverBucket()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DRouteSelectionDescriptorTest.java39 List<NetworkSliceInfo> si = new ArrayList<>(); in testConstructorAndGetters() local
42 TEST_PRECEDENCE, TEST_SESSION_TYPE, TEST_SSC_MODE, si, dnn); in testConstructorAndGetters()
DNetworkSliceInfoTest.java114 NetworkSliceInfo si = new NetworkSliceInfo.Builder().setStatus(TEST_SLICE_STATUS).build(); in testGetterAndSetterForSliceStatus() local
115 assertThat(si.getStatus()).isEqualTo(SLICE_STATUS_CONFIGURED); in testGetterAndSetterForSliceStatus()
/cts/tests/mediaprovider/src/android/provider/cts/media/
DMediaStoreNotificationTest.java85 try (BlockingObserver si = BlockingObserver.createAndRegister(mSpecificImages); in testSimple() argument
101 try (BlockingObserver si = BlockingObserver.createAndRegister(specificImage); in testSimple() argument
110 try (BlockingObserver si = BlockingObserver.createAndRegister(specificImage); in testSimple() argument
120 try (Cursor si = mResolver.query(mSpecificImages, null, null, null); in testCursor() argument
128 si.registerContentObserver(sio); in testCursor()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/
DItsSerializer.java144 for (int si = 0; si < Array.getLength(sizes); si++) { in serializeStreamConfigurationMap()
147 obj.put("width",sizes[si].getWidth()); in serializeStreamConfigurationMap()
148 obj.put("height", sizes[si].getHeight()); in serializeStreamConfigurationMap()
151 map.getOutputMinFrameDuration(fmts[fi],sizes[si])); in serializeStreamConfigurationMap()
157 for (int si = 0; si < Array.getLength(sizes); si++) { in serializeStreamConfigurationMap()
160 obj.put("width",sizes[si].getWidth()); in serializeStreamConfigurationMap()
161 obj.put("height", sizes[si].getHeight()); in serializeStreamConfigurationMap()
164 map.getOutputMinFrameDuration(fmts[fi],sizes[si])); in serializeStreamConfigurationMap()
/cts/tests/tests/nfc/src/android/nfc/cts/
DApduServiceInfoTest.java133 ServiceInfo si = resolvedService.serviceInfo; in findForegroundServiceResolveInfo() local
134 ComponentName componentName = new ComponentName(si.packageName, si.name); in findForegroundServiceResolveInfo()
/cts/tests/tests/graphics/jni/
Dandroid_graphics_cts_ComputeAhbTest.cpp255 VkSubmitInfo si = { in verifyComputeShaderWrite() local
261 vkQueueSubmit(init.queue(), 1, &si, VK_NULL_HANDLE); in verifyComputeShaderWrite()
/cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/
DCameraMetadataGetter.java313 for (int si = 0; si < Array.getLength(sizes); si++) { in serializeStreamConfigurationMap()
316 obj.put("width", sizes[si].getWidth()); in serializeStreamConfigurationMap()
317 obj.put("height", sizes[si].getHeight()); in serializeStreamConfigurationMap()
320 map.getOutputMinFrameDuration(fmts[fi], sizes[si])); in serializeStreamConfigurationMap()
/cts/tests/tests/dreams/src/android/service/dreams/cts/
DDreamServiceTest.java164 final ServiceInfo si = mContext.getPackageManager().getServiceInfo( in getDreamMetadata() local
167 return DreamService.getDreamMetadata(mContext, si); in getDreamMetadata()
/cts/tools/cts-device-info/src/com/android/cts/deviceinfo/
DCameraDeviceInfo.java172 for (int si = 0; si < Array.getLength(sizes); si++) { in storeStreamConfigurationMap()
175 mStore.addResult("width", sizes[si].getWidth()); in storeStreamConfigurationMap()
176 mStore.addResult("height", sizes[si].getHeight()); in storeStreamConfigurationMap()
179 map.getOutputMinFrameDuration(fmts[fi], sizes[si])); in storeStreamConfigurationMap()
/cts/tests/tests/content/src/android/content/pm/cts/
DPackageManagerTest.java987 for (ServiceInfo si : packageInfo.services) { in runTestGetPackageArchiveInfoSameApplicationInfo()
989 applicationInfo = si.applicationInfo; in runTestGetPackageArchiveInfoSameApplicationInfo()
991 assertSame(applicationInfo, si.applicationInfo); in runTestGetPackageArchiveInfoSameApplicationInfo()
/cts/tests/tests/security/res/raw/
Dcve_2019_2245.ts2816 �Ԡ���A�E�#$&Mu:��U$Ԫ�v �]�˺�A�h�+���si&d ���[p�w(b�[��'@����LI3'��Lэ�}��ӄ�s
2864 �GS�Ȋd�ě����:>mMMQ��>C0�MD��2���p�'!�N>��si�M�u�jC�ak�=r��9�J#?z�����w}�'�y#=�>����/G]���…
9494 �2E�A�����b3��si �Ln���]�+�"1�j��±(N���`�,��zG�1Z�\�ŗU�UZ
10128 K�$i�kVs�d�0��܊�˜V6dy�+�; �dm.�ȡ݃( ���5�E��si[�Q�U �D+�&B�ˊ-�W�lBO�g�P�0.%a�zڅGB�k�� E~��r(…
Dcve_2018_13925.ts2817 �Ԡ���A�E�#$&Mu:��U$Ԫ�v �]�˺�A�h�+���si&d ���[p�w(b�[��'@����LI3'��Lэ�}��ӄ�s
2865 �GS�Ȋd�ě����:>mMMQ��>C0�MD��2���p�'!�N>��si�M�u�jC�ak�=r��9�J#?z�����w}�'�y#=�>����/G]���…
9594 �2E�A�����b3��si �Ln���]�+�"1�j��±(N���`�,��zG�1Z�\�ŗU�UZ
10228 K�$i�kVs�d�0��܊�˜V6dy�+�; �dm.�ȡ݃( ���5�E��si[�Q�U �D+�&B�ˊ-�W�lBO�g�P�0.%a�zڅGB�k�� E~��r(…

12