Home
last modified time | relevance | path

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

12345678910>>...23

/cts/common/device-side/bedstead/eventlib/src/test/java/com/android/eventlib/premade/
DEventLibActivityTest.java66 intent.setPackage(sContext.getPackageName()); in launchEventLibActivity_logsActivityCreatedEvent()
67 intent.setClassName(sContext.getPackageName(), EventLibActivity.class.getName()); in launchEventLibActivity_logsActivityCreatedEvent()
72 .queryPackage(sContext.getPackageName()) in launchEventLibActivity_logsActivityCreatedEvent()
80 intent.setPackage(sContext.getPackageName()); in launchEventLibActivity_withGeneratedActivityClass_logsActivityCreatedEventWithCorrectClassName()
81 intent.setClassName(sContext.getPackageName(), GENERATED_ACTIVITY_CLASS_NAME); in launchEventLibActivity_withGeneratedActivityClass_logsActivityCreatedEventWithCorrectClassName()
86 .queryPackage(sContext.getPackageName()) in launchEventLibActivity_withGeneratedActivityClass_logsActivityCreatedEventWithCorrectClassName()
94 intent.setPackage(sContext.getPackageName()); in startEventLibActivity_logsActivityStartedEvent()
95 intent.setClassName(sContext.getPackageName(), EventLibActivity.class.getName()); in startEventLibActivity_logsActivityStartedEvent()
103 .queryPackage(sContext.getPackageName()) in startEventLibActivity_logsActivityStartedEvent()
111 intent.setPackage(sContext.getPackageName()); in startEventLibActivity_withGeneratedActivityClass_logsActivityStartedEventWithCorrectClassName()
[all …]
DEventLibDeviceAdminReceiverTest.java51 sContext.getPackageName(), EventLibDeviceAdminReceiver.class.getName());
69 DeviceAdminEnabledEvent.queryPackage(sContext.getPackageName()); in enableDeviceOwner_logsEnabledEvent()
84 DeviceAdminEnabledEvent.queryPackage(sContext.getPackageName()); in enableProfileOwner_logsEnabledEvent()
99 DeviceAdminDisableRequestedEvent.queryPackage(sContext.getPackageName()); in disableProfileOwner_logsDisableRequestedEvent()
110 DeviceAdminDisabledEvent.queryPackage(sContext.getPackageName()); in disableProfileOwner_logsDisabledEvent()
121 DeviceAdminPasswordChangedEvent.queryPackage(sContext.getPackageName()); in changePassword_logsPasswordChangedEvent()
132 DeviceAdminPasswordChangedEvent.queryPackage(sContext.getPackageName()); in changePasswordWithUserHandle_logsPasswordChangedEvent()
143 DeviceAdminPasswordFailedEvent.queryPackage(sContext.getPackageName()); in failPassword_logsPasswordFailedEvent()
154 DeviceAdminPasswordFailedEvent.queryPackage(sContext.getPackageName()); in failPasswordWithUserHandle_logsPasswordFailedEvent()
165 DeviceAdminPasswordSucceededEvent.queryPackage(sContext.getPackageName()); in succeedPassword_logsPasswordSucceededEvent()
[all …]
DEventLibBroadcastReceiverTest.java60 intent.setPackage(sContext.getPackageName()); in receiveBroadcast_logsBroadcastReceivedEvent()
65 .queryPackage(sContext.getPackageName()) in receiveBroadcast_logsBroadcastReceivedEvent()
73 intent.setPackage(sContext.getPackageName()); in receiveBroadcast_withGeneratedBroadcastReceiverClass_logsBroadcastReceivedEventWithCorrectClassName()
78 .queryPackage(sContext.getPackageName()) in receiveBroadcast_withGeneratedBroadcastReceiverClass_logsBroadcastReceivedEventWithCorrectClassName()
86 intent.setPackage(sContext.getPackageName()); in receiveBroadcast_logsIntent()
91 .queryPackage(sContext.getPackageName()) in receiveBroadcast_logsIntent()
DEventLibAppComponentFactoryTest.java59 intent.setComponent(new ComponentName(sContext.getPackageName(), in startActivity_activityDoesNotExist_startsLoggingActivity()
65 ActivityCreatedEvent.queryPackage(sContext.getPackageName()) in startActivity_activityDoesNotExist_startsLoggingActivity()
73 intent.setPackage(sContext.getPackageName()); in sendBroadcast_receiverDoesNotExist_launchesBroadcastReceiver()
78 .queryPackage(sContext.getPackageName()) in sendBroadcast_receiverDoesNotExist_launchesBroadcastReceiver()
/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/
DShortcutManagerLauncherApiTest.java89 mPackageContext1.getPackageName(), in testPinShortcuts()
92 mPackageContext2.getPackageName(), in testPinShortcuts()
182 mPackageContext1.getPackageName(), in testGetShortcuts()
191 mPackageContext1.getPackageName(), in testGetShortcuts()
200 mPackageContext1.getPackageName(), in testGetShortcuts()
210 mPackageContext1.getPackageName(), in testGetShortcuts()
220 mPackageContext1.getPackageName(), in testGetShortcuts()
230 mPackageContext1.getPackageName(), in testGetShortcuts()
239 mPackageContext1.getPackageName(), in testGetShortcuts()
249 mPackageContext1.getPackageName(), in testGetShortcuts()
[all …]
DShortcutManagerMultiLauncherTest.java90 mPackageContext1.getPackageName(), in testPinShortcuts()
93 mPackageContext2.getPackageName(), in testPinShortcuts()
101 mPackageContext1.getPackageName(), in testPinShortcuts()
104 mPackageContext2.getPackageName(), in testPinShortcuts()
181 mPackageContext1.getPackageName())) in testPinShortcuts()
186 mPackageContext1.getPackageName())) in testPinShortcuts()
191 mPackageContext1.getPackageName())) in testPinShortcuts()
204 mPackageContext2.getPackageName())) in testPinShortcuts()
209 mPackageContext2.getPackageName())) in testPinShortcuts()
214 mPackageContext2.getPackageName())) in testPinShortcuts()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DCommandReceiverActivity.java263 new String[] {getPackageName(), getCurrentLauncherPackage()}); in onCreate()
265 mDpm.setLockTaskPackages(mAdmin, new String[] {getPackageName()}); in onCreate()
284 if (!mDpm.isDeviceOwnerApp(getPackageName())) { in onCreate()
285 Log.e(TAG, COMMAND_REMOVE_DEVICE_OWNER + ": " + getPackageName() in onCreate()
290 mDpm.clearDeviceOwnerApp(getPackageName()); in onCreate()
301 if (!mDpm.isDeviceOwnerApp(getPackageName())) { in onCreate()
315 if (!mDpm.isDeviceOwnerApp(getPackageName())) { in onCreate()
321 if (!mDpm.isProfileOwnerApp(getPackageName())) { in onCreate()
329 if (!mDpm.isDeviceOwnerApp(getPackageName())) { in onCreate()
337 if (!mDpm.isDeviceOwnerApp(getPackageName())) { in onCreate()
[all …]
/cts/tests/tests/appcomponentfactory/src/android/app/componentfactory/cts/
DAppComponentFactoryTest.java42 .setComponent(new ComponentName(mContext.getPackageName(), in testActivity()
43 mContext.getPackageName() + ".inject.MyActivity")) in testActivity()
50 .setComponent(new ComponentName(mContext.getPackageName(), in testReceiver()
51 mContext.getPackageName() + ".inject.MyReceiver"))); in testReceiver()
57 .setComponent(new ComponentName(mContext.getPackageName(), in testService()
58 mContext.getPackageName() + ".inject.MyService"))); in testService()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityTextTraversalTest.java139 && event.getPackageName().equals(mActivity.getPackageName()) in testActionNextAndPreviousAtGranularityCharacterOverContentDescription()
169 && event.getPackageName().equals(mActivity.getPackageName()) in testActionNextAndPreviousAtGranularityCharacterOverContentDescription()
199 && event.getPackageName().equals(mActivity.getPackageName()) in testActionNextAndPreviousAtGranularityCharacterOverContentDescription()
233 && event.getPackageName().equals(mActivity.getPackageName()) in testActionNextAndPreviousAtGranularityCharacterOverContentDescription()
263 && event.getPackageName().equals(mActivity.getPackageName()) in testActionNextAndPreviousAtGranularityCharacterOverContentDescription()
293 && event.getPackageName().equals(mActivity.getPackageName()) in testActionNextAndPreviousAtGranularityCharacterOverContentDescription()
355 && event.getPackageName().equals(mActivity.getPackageName()) in testActionNextAndPreviousAtGranularityWordOverContentDescription()
385 && event.getPackageName().equals(mActivity.getPackageName()) in testActionNextAndPreviousAtGranularityWordOverContentDescription()
415 && event.getPackageName().equals(mActivity.getPackageName()) in testActionNextAndPreviousAtGranularityWordOverContentDescription()
449 && event.getPackageName().equals(mActivity.getPackageName()) in testActionNextAndPreviousAtGranularityWordOverContentDescription()
[all …]
/cts/tests/MediaProviderTranscode/src/android/mediaprovidertranscode/cts/
DTranscodeTest.java118 TranscodeTestUtils.grantPermission(getContext().getPackageName(), in setUp()
140 TranscodeTestUtils.enableTranscodingForPackage(getContext().getPackageName()); in testTranscoded_FilePath()
169 TranscodeTestUtils.enableTranscodingForPackage(getContext().getPackageName()); in testNoTranscodeOutsideCamera_FilePath()
194 TranscodeTestUtils.enableTranscodingForPackage(getContext().getPackageName()); in testSameTranscoded_FilePath()
216 TranscodeTestUtils.enableTranscodingForPackage(getContext().getPackageName()); in testTranscoded_ContentResolver()
247 TranscodeTestUtils.enableTranscodingForPackage(getContext().getPackageName()); in testNoTranscodeOutsideCamera_ConentResolver()
274 TranscodeTestUtils.enableTranscodingForPackage(getContext().getPackageName()); in testSameTranscodedFile_ContentResolver()
295 TranscodeTestUtils.enableTranscodingForPackage(getContext().getPackageName()); in testDeleteTranscodedFile_FilePath()
319 TranscodeTestUtils.enableTranscodingForPackage(getContext().getPackageName()); in testRenameTranscodedFile_FilePath()
347 TranscodeTestUtils.enableTranscodingForPackage(getContext().getPackageName()); in testLazyTranscodedFile_FilePath()
[all …]
/cts/hostsidetests/os/test-apps/StaticSharedLibConsumerApp1/src/android/os/lib/consumer1/
DUseSharedLibraryTest.java92 assertEquals(PLATFORM_PACKAGE, declaringPackage.getPackageName()); in testSharedLibrariesProperlyReported()
99 assertNotNull(declaringPackage.getPackageName()); in testSharedLibrariesProperlyReported()
106 assertNotNull(declaringPackage.getPackageName()); in testSharedLibrariesProperlyReported()
113 assertEquals(STATIC_LIB_PROVIDER_PKG, declaringPackage.getPackageName()); in testSharedLibrariesProperlyReported()
118 assertEquals(RECURSIVE_LIB_PROVIDER_NAME, declaringPackage.getPackageName()); in testSharedLibrariesProperlyReported()
134 assertEquals(STATIC_LIB_CONSUMER1_PKG, dependentPackage.getPackageName()); in testSharedLibrariesProperlyReported()
145 assertEquals(STATIC_LIB_CONSUMER2_PKG, dependentPackage.getPackageName()); in testSharedLibrariesProperlyReported()
152 assertEquals(STATIC_LIB_PROVIDER_PKG, dependentPackage.getPackageName()); in testSharedLibrariesProperlyReported()
179 assertEquals(STATIC_LIB_PROVIDER_PKG, declaringPackage.getPackageName()); in testDeclaredSharedLibrariesProperlyReported()
189 assertEquals(STATIC_LIB_CONSUMER1_PKG, dependentPackage.getPackageName()); in testDeclaredSharedLibrariesProperlyReported()
[all …]
/cts/common/device-side/bedstead/eventlib/src/test/java/com/android/eventlib/events/deviceadminreceivers/
DDeviceAdminPasswordChangedEventTest.java68 DeviceAdminPasswordChangedEvent.queryPackage(sContext.getPackageName()) in whereIntent_works()
85 DeviceAdminPasswordChangedEvent.queryPackage(sContext.getPackageName()) in whereIntent_skipsNonMatching()
98 DeviceAdminPasswordChangedEvent.queryPackage(sContext.getPackageName()) in whereDeviceAdminReceiver_customValueOnLogger_works()
116 DeviceAdminPasswordChangedEvent.queryPackage(sContext.getPackageName()) in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching()
129 DeviceAdminPasswordChangedEvent.queryPackage(sContext.getPackageName()) in whereDeviceAdminReceiver_defaultValue_works()
146 DeviceAdminPasswordChangedEvent.queryPackage(sContext.getPackageName()) in whereDeviceAdminReceiver_defaultValue_skipsNonMatching()
161 DeviceAdminPasswordChangedEvent.queryPackage(sContext.getPackageName()) in whereUserHandle_works()
177 DeviceAdminPasswordChangedEvent.queryPackage(sContext.getPackageName()) in whereUserHandle_skipsNonMatching()
DDeviceAdminSystemUpdatePendingEventTest.java69 DeviceAdminSystemUpdatePendingEvent.queryPackage(sContext.getPackageName()) in whereIntent_works()
88 DeviceAdminSystemUpdatePendingEvent.queryPackage(sContext.getPackageName()) in whereIntent_skipsNonMatching()
102 DeviceAdminSystemUpdatePendingEvent.queryPackage(sContext.getPackageName()) in whereDeviceAdminReceiver_customValueOnLogger_works()
122 DeviceAdminSystemUpdatePendingEvent.queryPackage(sContext.getPackageName()) in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching()
137 DeviceAdminSystemUpdatePendingEvent.queryPackage(sContext.getPackageName()) in whereDeviceAdminReceiver_defaultValue_works()
156 DeviceAdminSystemUpdatePendingEvent.queryPackage(sContext.getPackageName()) in whereDeviceAdminReceiver_defaultValue_skipsNonMatching()
172 DeviceAdminSystemUpdatePendingEvent.queryPackage(sContext.getPackageName()) in whereReceivedTime_works()
190 DeviceAdminSystemUpdatePendingEvent.queryPackage(sContext.getPackageName()) in whereReceivedTime_skipsNonMatching()
DDeviceAdminPasswordFailedEventTest.java68 DeviceAdminPasswordFailedEvent.queryPackage(sContext.getPackageName()) in whereIntent_works()
85 DeviceAdminPasswordFailedEvent.queryPackage(sContext.getPackageName()) in whereIntent_skipsNonMatching()
98 DeviceAdminPasswordFailedEvent.queryPackage(sContext.getPackageName()) in whereDeviceAdminReceiver_customValueOnLogger_works()
116 DeviceAdminPasswordFailedEvent.queryPackage(sContext.getPackageName()) in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching()
129 DeviceAdminPasswordFailedEvent.queryPackage(sContext.getPackageName()) in whereDeviceAdminReceiver_defaultValue_works()
146 DeviceAdminPasswordFailedEvent.queryPackage(sContext.getPackageName()) in whereDeviceAdminReceiver_defaultValue_skipsNonMatching()
161 DeviceAdminPasswordFailedEvent.queryPackage(sContext.getPackageName()) in whereUserHandle_works()
177 DeviceAdminPasswordFailedEvent.queryPackage(sContext.getPackageName()) in whereUserHandle_skipsNonMatching()
DDeviceAdminPasswordSucceededEventTest.java68 DeviceAdminPasswordSucceededEvent.queryPackage(sContext.getPackageName()) in whereIntent_works()
85 DeviceAdminPasswordSucceededEvent.queryPackage(sContext.getPackageName()) in whereIntent_skipsNonMatching()
98 DeviceAdminPasswordSucceededEvent.queryPackage(sContext.getPackageName()) in whereDeviceAdminReceiver_customValueOnLogger_works()
116 DeviceAdminPasswordSucceededEvent.queryPackage(sContext.getPackageName()) in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching()
129 DeviceAdminPasswordSucceededEvent.queryPackage(sContext.getPackageName()) in whereDeviceAdminReceiver_defaultValue_works()
146 DeviceAdminPasswordSucceededEvent.queryPackage(sContext.getPackageName()) in whereDeviceAdminReceiver_defaultValue_skipsNonMatching()
161 DeviceAdminPasswordSucceededEvent.queryPackage(sContext.getPackageName()) in whereUserHandle_works()
177 DeviceAdminPasswordSucceededEvent.queryPackage(sContext.getPackageName()) in whereUserHandle_skipsNonMatching()
DDeviceAdminEnabledEventTest.java65 DeviceAdminEnabledEvent.queryPackage(sContext.getPackageName()) in whereIntent_works()
81 DeviceAdminEnabledEvent.queryPackage(sContext.getPackageName()) in whereIntent_skipsNonMatching()
94 DeviceAdminEnabledEvent.queryPackage(sContext.getPackageName()) in whereDeviceAdminReceiver_customValueOnLogger_works()
112 DeviceAdminEnabledEvent.queryPackage(sContext.getPackageName()) in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching()
125 DeviceAdminEnabledEvent.queryPackage(sContext.getPackageName()) in whereDeviceAdminReceiver_defaultValue_works()
142 DeviceAdminEnabledEvent.queryPackage(sContext.getPackageName()) in whereDeviceAdminReceiver_defaultValue_skipsNonMatching()
DDeviceAdminDisabledEventTest.java65 DeviceAdminDisabledEvent.queryPackage(sContext.getPackageName()) in whereIntent_works()
81 DeviceAdminDisabledEvent.queryPackage(sContext.getPackageName()) in whereIntent_skipsNonMatching()
94 DeviceAdminDisabledEvent.queryPackage(sContext.getPackageName()) in whereDeviceAdminReceiver_customValueOnLogger_works()
112 DeviceAdminDisabledEvent.queryPackage(sContext.getPackageName()) in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching()
125 DeviceAdminDisabledEvent.queryPackage(sContext.getPackageName()) in whereDeviceAdminReceiver_defaultValue_works()
142 DeviceAdminDisabledEvent.queryPackage(sContext.getPackageName()) in whereDeviceAdminReceiver_defaultValue_skipsNonMatching()
DDeviceAdminDisableRequestedEventTest.java65 DeviceAdminDisableRequestedEvent.queryPackage(sContext.getPackageName()) in whereIntent_works()
83 DeviceAdminDisableRequestedEvent.queryPackage(sContext.getPackageName()) in whereIntent_skipsNonMatching()
96 DeviceAdminDisableRequestedEvent.queryPackage(sContext.getPackageName()) in whereDeviceAdminReceiver_customValueOnLogger_works()
114 DeviceAdminDisableRequestedEvent.queryPackage(sContext.getPackageName()) in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching()
127 DeviceAdminDisableRequestedEvent.queryPackage(sContext.getPackageName()) in whereDeviceAdminReceiver_defaultValue_works()
144 DeviceAdminDisableRequestedEvent.queryPackage(sContext.getPackageName()) in whereDeviceAdminReceiver_defaultValue_skipsNonMatching()
/cts/hostsidetests/incident/apps/errorsapp/src/com/android/server/cts/errors/
DErrorsTests.java53 + mContext.getPackageName() in setUp()
65 mContext.getPackageName() + ":TestProcess", in testException()
84 mContext.getPackageName() + ":TestProcess", in testANR()
106 mContext.getPackageName() + ":TestProcess", in testNativeCrash()
124 mContext.getPackageName() + ":TestProcess", in testTombstone()
/cts/hostsidetests/shortcuts/deviceside/multiuser/src/android/content/pm/cts/shortcut/multiuser/
DShortcutManagerManagedUserTest.java74 .setPackage(getContext().getPackageName()) in test04_getAndLaunch_primary()
92 getLauncherApps().startShortcut(getContext().getPackageName(), "s1", null, null, in test04_getAndLaunch_primary()
96 getLauncherApps().startShortcut(getContext().getPackageName(), "s1", null, null, in test04_getAndLaunch_primary()
109 .setPackage(getContext().getPackageName()) in test05_getAndLaunch_managed()
125 getLauncherApps().startShortcut(getContext().getPackageName(), "s1", null, null, in test05_getAndLaunch_managed()
130 getLauncherApps().startShortcut(getContext().getPackageName(), "s1", null, null, in test05_getAndLaunch_managed()
/cts/tests/framework/base/windowmanager/appSecondUid/src/android/server/wm/second/
DComponents.java49 getPackageName() + ".LAUNCH_BROADCAST_ACTION";
60 private static String getPackageName() { in getPackageName() method in Components
61 return getPackageName(Components.class); in getPackageName()
/cts/common/device-side/bedstead/eventlib/src/test/java/com/android/eventlib/events/broadcastreceivers/
DBroadcastReceivedEventTest.java66 BroadcastReceivedEvent.queryPackage(sContext.getPackageName()) in whereIntent_works()
82 BroadcastReceivedEvent.queryPackage(sContext.getPackageName()) in whereIntent_skipsNonMatching()
95 BroadcastReceivedEvent.queryPackage(sContext.getPackageName()) in whereBroadcastReceiver_customValueOnLogger_works()
113 BroadcastReceivedEvent.queryPackage(sContext.getPackageName()) in whereBroadcastReceiver_customValueOnLogger_skipsNonMatching()
126 BroadcastReceivedEvent.queryPackage(sContext.getPackageName()) in whereBroadcastReceiver_defaultValue_works()
143 BroadcastReceivedEvent.queryPackage(sContext.getPackageName()) in whereBroadcastReceiver_defaultValue_skipsNonMatching()
/cts/hostsidetests/devicepolicy/app/DeviceAdmin/src/com.android.cts.deviceadmin/
DBaseDeviceAdminTest.java49 + ", isDO=" + dpm.isDeviceOwnerApp(mContext.getPackageName()) in setUp()
50 + ", isPO=" + dpm.isProfileOwnerApp(mContext.getPackageName())); in setUp()
60 final String packageName = mContext.getPackageName(); in getTargetApiLevel()
65 return dpm.isDeviceOwnerApp(mAdminComponent.getPackageName()); in isDeviceOwner()
/cts/common/device-side/bedstead/testapp/src/test/java/com/android/bedstead/testapp/
DTestAppAppComponentFactoryTest.java62 intent.setComponent(new ComponentName(sContext.getPackageName(), in startActivity_activityDoesNotExist_startsLoggingActivity()
68 ActivityCreatedEvent.queryPackage(sContext.getPackageName()) in startActivity_activityDoesNotExist_startsLoggingActivity()
77 intent.setPackage(sContext.getPackageName()); in sendBroadcast_receiverDoesNotExist_launchesBroadcastReceiver()
82 .queryPackage(sContext.getPackageName()) in sendBroadcast_receiverDoesNotExist_launchesBroadcastReceiver()
/cts/common/device-side/bedstead/eventlib/src/test/java/com/android/eventlib/events/
DCustomEventTest.java55 EventLogs<CustomEvent> eventLogs = CustomEvent.queryPackage(sContext.getPackageName()) in whereTag_works()
70 EventLogs<CustomEvent> eventLogs = CustomEvent.queryPackage(sContext.getPackageName()) in whereTag_skipsNonMatching()
82 EventLogs<CustomEvent> eventLogs = CustomEvent.queryPackage(sContext.getPackageName()) in whereData_works()
97 EventLogs<CustomEvent> eventLogs = CustomEvent.queryPackage(sContext.getPackageName()) in whereData_skipsNonMatching()

12345678910>>...23