Home
last modified time | relevance | path

Searched refs:getPackageName (Results 1 – 25 of 225) sorted by relevance

123456789

/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/
DShortcutManagerLauncherApiTest.java78 mPackageContext1.getPackageName(), in testPinShortcuts()
81 mPackageContext2.getPackageName(), in testPinShortcuts()
169 mPackageContext1.getPackageName(), in testGetShortcuts()
177 mPackageContext1.getPackageName(), in testGetShortcuts()
185 mPackageContext1.getPackageName(), in testGetShortcuts()
194 mPackageContext1.getPackageName(), in testGetShortcuts()
203 mPackageContext1.getPackageName(), in testGetShortcuts()
212 mPackageContext1.getPackageName(), in testGetShortcuts()
220 mPackageContext1.getPackageName(), in testGetShortcuts()
229 mPackageContext1.getPackageName(), in testGetShortcuts()
[all …]
DShortcutManagerMultiLauncherTest.java86 mPackageContext1.getPackageName(), in testPinShortcuts()
89 mPackageContext2.getPackageName(), in testPinShortcuts()
97 mPackageContext1.getPackageName(), in testPinShortcuts()
100 mPackageContext2.getPackageName(), in testPinShortcuts()
177 mPackageContext1.getPackageName())) in testPinShortcuts()
182 mPackageContext1.getPackageName())) in testPinShortcuts()
187 mPackageContext1.getPackageName())) in testPinShortcuts()
200 mPackageContext2.getPackageName())) in testPinShortcuts()
205 mPackageContext2.getPackageName())) in testPinShortcuts()
210 mPackageContext2.getPackageName())) in testPinShortcuts()
[all …]
DShortcutManagerUsageTest.java42 appOps(getInstrumentation(), getTestContext().getPackageName(), in setUp()
48 appOps(getInstrumentation(), getTestContext().getPackageName(), in tearDown()
68 && packageName.equals(e.getPackageName()) in hasEvent()
114 mPackageContext2.getPackageName(), id3), "Events weren't populated"); in testReportShortcutUsed()
123 mPackageContext1.getPackageName(), id1), "Events weren't populated"); in testReportShortcutUsed()
133 mPackageContext1.getPackageName(), idManifest), "Events weren't populated"); in testReportShortcutUsed()
136 mPackageContext1.getPackageName(), idNonexistance)); in testReportShortcutUsed()
DShortcutManagerClientApiTest.java69 getTestContext().getPackageName(), "android.content.pm.cts.shortcutmanager.main"); in testShortcutInfoMissingMandatoryFields()
181 getTestContext().getPackageName(), in testShortcutInfoMissingMandatoryFields()
209 getTestContext().getPackageName(), in testShortcutInfoMissingMandatoryFields()
391 assertIconDimensions(mLauncherContext1, mPackageContext1.getPackageName(), "s1", in testSetDynamicShortcuts_details()
418 getIconAsLauncher(mLauncherContext1, mPackageContext1.getPackageName(), "s1")); in testSetDynamicShortcuts_details()
448 assertIconDimensions(mLauncherContext1, mPackageContext1.getPackageName(), "s1", in testSetDynamicShortcuts_details()
468 assertIconDimensions(mLauncherContext1, mPackageContext1.getPackageName(), "s1", in testSetDynamicShortcuts_details()
487 assertIconDimensions(mLauncherContext1, mPackageContext1.getPackageName(), "s1", in testSetDynamicShortcuts_details()
507 assertIconDimensions(mLauncherContext1, mPackageContext1.getPackageName(), "s1", in testSetDynamicShortcuts_details()
525 assertIconDimensions(mLauncherContext1, mPackageContext1.getPackageName(), "s1", in testSetDynamicShortcuts_details()
[all …]
DShortcutManagerSpoofDetectionTest.java44 "Caller=" + callerContext.getPackageName() + ", method=" + method, in assertCallingPackageMismatch()
100 mPackageContext1.getPackageName(), list(), getUserHandle()); in testLauncherSpoofing()
107 getLauncherApps().startShortcut(mPackageContext1.getPackageName(), "s1", in testLauncherSpoofing()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DCommandReceiverActivity.java233 if (!mDpm.isDeviceOwnerApp(getPackageName())) { in onCreate()
237 mDpm.clearDeviceOwnerApp(getPackageName()); in onCreate()
240 if (!mDpm.isDeviceOwnerApp(getPackageName())) { in onCreate()
254 if (!mDpm.isDeviceOwnerApp(getPackageName())) { in onCreate()
259 if (!mDpm.isProfileOwnerApp(getPackageName())) { in onCreate()
267 if (!mDpm.isDeviceOwnerApp(getPackageName())) { in onCreate()
274 if (!mDpm.isDeviceOwnerApp(getPackageName())) { in onCreate()
282 if (!mDpm.isDeviceOwnerApp(getPackageName())) { in onCreate()
290 if (!mDpm.isDeviceOwnerApp(getPackageName())) { in onCreate()
297 if (!mDpm.isDeviceOwnerApp(getPackageName())) { in onCreate()
[all …]
/cts/tests/tests/content/src/android/content/pm/cts/
DPermissionFeatureTest.java27 getContext().getPackageName())); in testPermissionRequiredFeatureDefined()
34 getContext().getPackageName())); in testPermissionRequiredFeatureUndefined()
41 getContext().getPackageName())); in testPermissionRequiredNotFeatureDefined()
48 getContext().getPackageName())); in testPermissionRequiredNotFeatureUndefined()
55 getContext().getPackageName())); in testPermissionRequiredMultiDeny()
62 getContext().getPackageName())); in testPermissionRequiredMultiGrant()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityTextTraversalTest.java87 && event.getPackageName().equals(getActivity().getPackageName()) in testActionNextAndPreviousAtGranularityCharacterOverContentDescription()
117 && event.getPackageName().equals(getActivity().getPackageName()) in testActionNextAndPreviousAtGranularityCharacterOverContentDescription()
147 && event.getPackageName().equals(getActivity().getPackageName()) in testActionNextAndPreviousAtGranularityCharacterOverContentDescription()
181 && event.getPackageName().equals(getActivity().getPackageName()) in testActionNextAndPreviousAtGranularityCharacterOverContentDescription()
211 && event.getPackageName().equals(getActivity().getPackageName()) in testActionNextAndPreviousAtGranularityCharacterOverContentDescription()
241 && event.getPackageName().equals(getActivity().getPackageName()) in testActionNextAndPreviousAtGranularityCharacterOverContentDescription()
302 && event.getPackageName().equals(getActivity().getPackageName()) in testActionNextAndPreviousAtGranularityWordOverContentDescription()
332 && event.getPackageName().equals(getActivity().getPackageName()) in testActionNextAndPreviousAtGranularityWordOverContentDescription()
362 && event.getPackageName().equals(getActivity().getPackageName()) in testActionNextAndPreviousAtGranularityWordOverContentDescription()
396 && event.getPackageName().equals(getActivity().getPackageName()) in testActionNextAndPreviousAtGranularityWordOverContentDescription()
[all …]
/cts/hostsidetests/os/test-apps/StaticSharedLibConsumerApp1/src/android/os/lib/consumer1/
DUseSharedLibraryTest.java61 + InstrumentationRegistry.getInstrumentation().getContext().getPackageName() in testSharedLibrariesProperlyReported()
91 assertEquals(PLATFORM_PACKAGE, declaringPackage.getPackageName()); in testSharedLibrariesProperlyReported()
98 assertNotNull(declaringPackage.getPackageName()); in testSharedLibrariesProperlyReported()
105 assertNotNull(declaringPackage.getPackageName()); in testSharedLibrariesProperlyReported()
112 assertEquals(STATIC_LIB_PROVIDER_PKG, declaringPackage.getPackageName()); in testSharedLibrariesProperlyReported()
117 assertEquals(RECURSIVE_LIB_PROVIDER_NAME, declaringPackage.getPackageName()); in testSharedLibrariesProperlyReported()
133 … assertEquals(STATIC_LIB_CONSUMER1_PKG, dependentPackage.getPackageName()); in testSharedLibrariesProperlyReported()
150 … assertEquals(STATIC_LIB_CONSUMER2_PKG, dependentPackage.getPackageName()); in testSharedLibrariesProperlyReported()
160 … assertEquals(STATIC_LIB_PROVIDER_PKG, dependentPackage.getPackageName()); in testSharedLibrariesProperlyReported()
174 + InstrumentationRegistry.getInstrumentation().getContext().getPackageName() in testSharedLibrariesProperlyReported()
/cts/hostsidetests/shortcuts/deviceside/multiuser/src/android/content/pm/cts/shortcut/multiuser/
DShortcutManagerManagedUserTest.java73 .setPackage(getContext().getPackageName()) in test04_getAndLaunch_primary()
91 getLauncherApps().startShortcut(getContext().getPackageName(), "s1", null, null, in test04_getAndLaunch_primary()
95 getLauncherApps().startShortcut(getContext().getPackageName(), "s1", null, null, in test04_getAndLaunch_primary()
107 .setPackage(getContext().getPackageName()) in test05_getAndLaunch_managed()
121 getLauncherApps().startShortcut(getContext().getPackageName(), "s1", null, null, in test05_getAndLaunch_managed()
125 getLauncherApps().startShortcut(getContext().getPackageName(), "s1", null, null, in test05_getAndLaunch_managed()
/cts/tests/tests/media/src/android/media/cts/
DAudioManagerTest.java69 Utils.enableAppOps(mContext.getPackageName(), APPOPS_OP_STR, getInstrumentation()); in setUp()
84 mContext.getPackageName(), getInstrumentation(), false); in tearDown()
97 mContext.getPackageName(), getInstrumentation(), true); in testSoundEffects()
102 mContext.getPackageName(), getInstrumentation(), false); in testSoundEffects()
202 mContext.getPackageName(), getInstrumentation(), true); in testVibrateNotification()
265 mContext.getPackageName(), getInstrumentation(), true); in testVibrateRinger()
326 mContext.getPackageName(), getInstrumentation(), true); in testAccessRingMode()
354 mContext.getPackageName(), getInstrumentation(), true); in testSetRingerModePolicyAccess()
358 mContext.getPackageName(), getInstrumentation(), false); in testSetRingerModePolicyAccess()
374 mContext.getPackageName(), getInstrumentation(), true); in testSetRingerModePolicyAccess()
[all …]
DRingtoneManagerTest.java58 Utils.enableAppOps(mContext.getPackageName(), "android:write_settings", mInstrumentation); in setUp()
68 mContext.getPackageName(), getInstrumentation(), true); in setUp()
73 mContext.getPackageName(), getInstrumentation(), false); in setUp()
82 mContext.getPackageName(), getInstrumentation(), true); in tearDown()
90 mContext.getPackageName(), getInstrumentation(), false); in tearDown()
94 Utils.disableAppOps(mContext.getPackageName(), "android:write_settings", mInstrumentation); in tearDown()
DRingtoneTest.java57 mContext.getPackageName(), getInstrumentation(), true); in setUp()
65 mContext.getPackageName(), getInstrumentation(), false); in setUp()
75 cmd.append(getInstrumentation().getContext().getPackageName()); in enableAppOps()
94 mContext.getPackageName(), getInstrumentation(), true); in tearDown()
100 mContext.getPackageName(), getInstrumentation(), false); in tearDown()
/cts/tests/accessibility/src/android/view/accessibility/cts/
DAccessibilityManagerTest.java108 if (mTargetContext.getPackageName().equals(serviceInfo.packageName) in testGetInstalledAccessibilityServicesList()
112 if (mTargetContext.getPackageName().equals(serviceInfo.packageName) in testGetInstalledAccessibilityServicesList()
132 if (mTargetContext.getPackageName().equals(serviceInfo.packageName) in testGetEnabledAccessibilityServiceList()
136 if (mTargetContext.getPackageName().equals(serviceInfo.packageName) in testGetEnabledAccessibilityServiceList()
155 if (mTargetContext.getPackageName().equals(serviceInfo.packageName) in testGetEnabledAccessibilityServiceListForType()
180 if (mTargetContext.getPackageName().equals(serviceInfo.packageName) in testGetEnabledAccessibilityServiceListForTypes()
184 if (mTargetContext.getPackageName().equals(serviceInfo.packageName) in testGetEnabledAccessibilityServiceListForTypes()
188 if (mTargetContext.getPackageName().equals(serviceInfo.packageName) in testGetEnabledAccessibilityServiceListForTypes()
208 if (mTargetContext.getPackageName().equals(serviceInfo.packageName) in testGetAccessibilityServiceList()
212 if (mTargetContext.getPackageName().equals(serviceInfo.packageName) in testGetAccessibilityServiceList()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DVersion.java43 return packageManager.getPackageInfo(context.getPackageName(), 0); in getPackageInfo()
46 + context.getPackageName()); in getPackageInfo()
54 context.getPackageName(), PackageManager.GET_META_DATA); in getMetadata()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/voicemail/
DDefaultDialerChanger.java68 if (mOriginalDefaultDialer.equals(mActivity.getPackageName())) { in DefaultDialerChanger()
80 if (telecomManager.getDefaultDialerPackage().equals(mActivity.getPackageName())) { in DefaultDialerChanger()
89 mActivity.getPackageName()); in DefaultDialerChanger()
127 if (packageName.equals(mActivity.getPackageName())) {
139 if (packageName.equals(mActivity.getPackageName())) { in updateSetDefaultDialerState()
/cts/hostsidetests/shortcuts/deviceside/upgrade/src/android/content/pm/cts/shortcut/upgrade/
DShortcutManagerPostUpgradeTest.java57 assertIconDimensions(getContext().getPackageName(), "s1", icon1); in testPostUpgrade()
58 assertIconDimensions(getContext().getPackageName(), "s2", icon2); in testPostUpgrade()
63 assertIconDimensions(getContext().getPackageName(), "s1", icon2); in testPostUpgrade()
DShortcutManagerPreUpgradeTest.java64 assertIconDimensions(getContext().getPackageName(), "s1", icon1); in testPreUpgrade()
65 assertIconDimensions(getContext().getPackageName(), "s2", icon2); in testPreUpgrade()
70 assertIconDimensions(getContext().getPackageName(), "s1", icon2); in testPreUpgrade()
/cts/hostsidetests/devicepolicy/app/DeviceAdmin/src/com.android.cts.deviceadmin/
DBaseDeviceAdminTest.java39 mPackageName = mContext.getPackageName(); in setUp()
50 final String packageName = mContext.getPackageName(); in getTargetApiLevel()
55 return dpm.isDeviceOwnerApp(mAdminComponent.getPackageName()); in isDeviceOwner()
/cts/tests/tests/appwidget/src/android/appwidget/cts/
DAppWidgetTestCase.java67 assertEquals(getInstrumentation().getTargetContext().getPackageName(), in verifyInstalledProviders()
68 provider.configure.getPackageName()); in verifyInstalledProviders()
96 assertEquals(getInstrumentation().getTargetContext().getPackageName(), in verifyInstalledProviders()
97 provider.configure.getPackageName()); in verifyInstalledProviders()
130 getInstrumentation().getTargetContext().getPackageName(), in getFirstWidgetComponent()
136 getInstrumentation().getTargetContext().getPackageName(), in getSecondWidgetComponent()
/cts/tests/tests/app.usage/src/android/app/usage/cts/
DUsageStatsTest.java76 mTargetPackage = getInstrumentation().getContext().getPackageName(); in setUp()
103 getInstrumentation().getContext().getPackageName(), mode); in setAppOpsMode()
181 assertEquals(mTargetPackage, event.getPackageName()); in testOrderedActivityLaunchSequenceInEventLog()
189 assertEquals(mTargetPackage, event.getPackageName()); in testOrderedActivityLaunchSequenceInEventLog()
222 assertEquals(before.getPackageName(), after.getPackageName()); in ignore_testStatsAreShiftedInTimeWhenSystemTimeChanges()
265 assertEquals(e1.getPackageName(), e2.getPackageName()); in testUsageEventsParceling()
304 if (stats.getPackageName().equals(mTargetPackage) && in testPackageUsageStatsIntervals()
/cts/tests/admin/src/android/admin/cts/
DDeviceAdminInfoTest.java68 assertEquals(mComponent.getPackageName(), info.getPackageName()); in testDeviceAdminInfo()
100 assertEquals(mSecondComponent.getPackageName(), info.getPackageName()); in testDeviceAdminInfo2()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Utils/
DVersion.java58 return packageManager.getPackageInfo(context.getPackageName(), 0); in getPackageInfo()
61 + context.getPackageName()); in getPackageInfo()
/cts/tests/tests/content/src/android/content/cts/
DComponentNameTest.java123 final String actual = getComponentName().getPackageName(); in testGetPackageName()
154 ComponentName componentName2 = new ComponentName(componentName1.getPackageName(), in testEquals()
159 componentName2 = new ComponentName(componentName1.getPackageName(), in testEquals()
186 final ComponentName componentName2 = new ComponentName(componentName.getPackageName(), in testHashCode()
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/
DClientTest.java430 assertThat(testResult.getPackageName(), in testStartExposed01()
450 assertThat(testResult.getPackageName(), in testStartExposed02()
471 assertThat(testResult.getPackageName(), in testStartExposed03()
520 assertThat(testResult.getPackageName(), in testStartExposed06()
540 assertThat(testResult.getPackageName(), in testStartExposed07()
565 assertThat(testResult.getPackageName(), in testStartExposed08()
594 assertThat(testResult.getPackageName(), in testStartExposed09()
629 assertThat(testResult.getPackageName(), in testStartExposed10()
649 assertThat(testResult.getPackageName(), in testStartEphemeral()
666 assertThat(testResult.getPackageName(), in testStartEphemeral()
[all …]

123456789