Home
last modified time | relevance | path

Searched refs:MIME_GROUP (Results 1 – 4 of 4) sorted by relevance

/cts/hostsidetests/securitybulletin/test-apps/BUG-237291548/src/android/security/cts/BUG_237291548/
DDeviceTest.java36 private static final String MIME_GROUP = "myMimeGroup"; field in DeviceTest
42 Set<String> mimeTypes = mPm.getMimeGroup(MIME_GROUP); in testExceedGroupLimit()
46 mPm.setMimeGroup(MIME_GROUP, mimeTypes); in testExceedGroupLimit()
48 mimeTypes = mPm.getMimeGroup(MIME_GROUP); in testExceedGroupLimit()
51 mPm.setMimeGroup(MIME_GROUP, mimeTypes); in testExceedGroupLimit()
58 mPm.setMimeGroup(MIME_GROUP, mimeTypes); in testExceedMimeLengthLimit()
/cts/tests/tests/content/src/android/content/pm/cts/
DPackageManagerShellCommandMultiUserTest.kt114 private const val MIME_GROUP = "mime_group" constant
1099 intent.putExtra(EXTRA_MIME_GROUP, MIME_GROUP) in testUpdateMimeGroup_changed_onlyInstalledUserReceivedBroadcast()
1187 contextPrimaryUser.packageManager.setMimeGroup(MIME_GROUP, mimeTypes1) in testUpdateMimeGroup_changed()
1196 assertThat(contextPrimaryUser.packageManager.getMimeGroup(MIME_GROUP)) in testUpdateMimeGroup_changed()
1203 assertThat(contextSecondaryUser.packageManager.getMimeGroup(MIME_GROUP)) in testUpdateMimeGroup_changed()
1211 contextSecondaryUser.packageManager.setMimeGroup(MIME_GROUP, mimeTypes2) in testUpdateMimeGroup_changed()
1220 assertThat(contextPrimaryUser.packageManager.getMimeGroup(MIME_GROUP)) in testUpdateMimeGroup_changed()
1227 assertThat(contextSecondaryUser.packageManager.getMimeGroup(MIME_GROUP)) in testUpdateMimeGroup_changed()
1298 val mimeTypes = contextPrimaryUser.packageManager.getMimeGroup(MIME_GROUP) in testUpdateMimeGroup_noChanged_noBroadcastReceived()
1301 contextPrimaryUser.packageManager.setMimeGroup(MIME_GROUP, mimeTypes) in testUpdateMimeGroup_noChanged_noBroadcastReceived()
[all …]
DPackageManagerTest.java329 private static final String MIME_GROUP = "mime_group"; field in PackageManagerTest
4042 mPackageManager.setMimeGroup(MIME_GROUP, mimeTypes); in setUpdateMimeGroupAndAssertBroadcasts()
4050 assertThat(mPackageManager.getMimeGroup(MIME_GROUP)).isEqualTo(mimeTypes); in setUpdateMimeGroupAndAssertBroadcasts()
4066 assertThat(mPackageManager.getMimeGroup(MIME_GROUP)).isEqualTo(mimeTypes); in testUpdateMimeGroup_changed()
4076 assertThat(mPackageManager.getMimeGroup(MIME_GROUP)).isEqualTo(mimeTypes); in testUpdateMimeGroup_noChanged_noBroadcastReceived()
/cts/tests/tests/content/src/android/content/cts/
DIntentFilterTest.java113 private static final String MIME_GROUP = "mime_group"; field in IntentFilterTest
766 mIntentFilter.addMimeGroup(MIME_GROUP + i); in testMimeGroups()
774 assertEquals(MIME_GROUP + i, actual); in testMimeGroups()
775 assertEquals(MIME_GROUP + i, mIntentFilter.getMimeGroup(i)); in testMimeGroups()
776 assertTrue(mIntentFilter.hasMimeGroup(MIME_GROUP + i)); in testMimeGroups()
777 assertFalse(mIntentFilter.hasMimeGroup(MIME_GROUP + i + 10)); in testMimeGroups()
1220 mIntentFilter.addMimeGroup(MIME_GROUP); in testWriteToXml()
1232 assertEquals(MIME_GROUP, intentFilter.getMimeGroup(0)); in testWriteToXml()
1261 mIntentFilter.addMimeGroup(MIME_GROUP); in testWriteToXmlWithRelRefGroup()
1274 assertEquals(MIME_GROUP, intentFilter.getMimeGroup(0)); in testWriteToXmlWithRelRefGroup()
[all …]