Home
last modified time | relevance | path

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

12345678910>>...33

/packages/providers/MediaProvider/src/com/android/providers/media/
DLocalCallingIdentity.java89 public String getPackageName() { in getPackageName() method in LocalCallingIdentity
133 .getApplicationInfo(getPackageName(), 0); in getTargetSdkVersionInternal()
175 .checkPermissionReadAudio(false, pid, uid, getPackageName()); in hasPermissionInternal()
178 .checkPermissionReadVideo(false, pid, uid, getPackageName()); in hasPermissionInternal()
181 .checkPermissionReadImages(false, pid, uid, getPackageName()); in hasPermissionInternal()
184 .checkPermissionWriteAudio(false, pid, uid, getPackageName()); in hasPermissionInternal()
187 .checkPermissionWriteVideo(false, pid, uid, getPackageName()); in hasPermissionInternal()
190 .checkPermissionWriteImages(false, pid, uid, getPackageName()); in hasPermissionInternal()
209 uid, getPackageName(), WRITE_EXTERNAL_STORAGE, OP_WRITE_EXTERNAL_STORAGE); in isSystemInternal()
222 uid, getPackageName(), WRITE_EXTERNAL_STORAGE, OP_WRITE_EXTERNAL_STORAGE); in isLegacyInternal()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/
DMediaPlayerList.java176 if (!havePlayerId(wrapper.getPackageName())) { in init()
177 mMediaPlayerIds.put(wrapper.getPackageName(), getFreeMediaPlayerId()); in init()
180 d("Adding Browser Wrapper for " + wrapper.getPackageName() + " with id " in init()
181 + mMediaPlayerIds.get(wrapper.getPackageName())); in init()
183 mBrowsablePlayers.put(mMediaPlayerIds.get(wrapper.getPackageName()), wrapper); in init()
379 String displayName = Util.getDisplayName(mContext, player.getPackageName()); in getFolderItemsMediaPlayerList()
380 int id = mMediaPlayerIds.get(player.getPackageName()); in getFolderItemsMediaPlayerList()
416 + wrapper.getPackageName()); in getFolderItems()
447 String packageName = controller.getPackageName(); in addMediaPlayer()
474 + mMediaPlayerIds.get(controller.getPackageName())); in addMediaPlayer()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/
DPartner.java81 public String getPackageName() { in getPackageName() method in Partner
91 "xml", getPackageName()); in hasDefaultLayout()
97 "xml", getPackageName()); in hasFolder()
103 getPackageName()); in hideDefaultWallpaper()
109 getPackageName()); in getWallpaperDirectory()
115 getPackageName()); in requiresFirstRunFlow()
126 "integer", getPackageName()); in applyInvariantDeviceProfileOverrides()
132 "integer", getPackageName()); in applyInvariantDeviceProfileOverrides()
138 "dimen", getPackageName()); in applyInvariantDeviceProfileOverrides()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/vms/
DVmsClientManagerTest.java803 assertEquals(TEST_PACKAGE, mClientManager.getPackageName(mSubscriberClient1)); in testAddSubscriber()
805 assertEquals(UNKNOWN_PACKAGE, mClientManager.getPackageName(mSubscriberClient2)); in testAddSubscriber()
815 assertEquals(TEST_PACKAGE, mClientManager.getPackageName(mSubscriberClient1)); in testAddSubscriber_SystemUser()
817 assertEquals(UNKNOWN_PACKAGE, mClientManager.getPackageName(mSubscriberClient2)); in testAddSubscriber_SystemUser()
831 assertEquals(UNKNOWN_PACKAGE, mClientManager.getPackageName(mSubscriberClient1)); in testAddSubscriber_NotForegroundUser()
840 assertEquals(TEST_PACKAGE, mClientManager.getPackageName(mSubscriberClient1)); in testAddSubscriber_MultipleCalls()
842 assertEquals(UNKNOWN_PACKAGE, mClientManager.getPackageName(mSubscriberClient2)); in testAddSubscriber_MultipleCalls()
851 assertEquals(TEST_PACKAGE, mClientManager.getPackageName(mSubscriberClient1)); in testAddSubscriber_MultipleClients_SamePackage()
853 assertEquals(TEST_PACKAGE, mClientManager.getPackageName(mSubscriberClient2)); in testAddSubscriber_MultipleClients_SamePackage()
867 assertEquals(TEST_PACKAGE, mClientManager.getPackageName(mSubscriberClient1)); in testAddSubscriber_MultipleClients_ForegroundAndSystemUsers_SamePackage()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DRecentNotifyingAppsPreferenceControllerTest.java189 when(mAppState.getEntry(app.getPackageName(), UserHandle.myUserId())) in display_showRecents()
191 when(mAppState.getEntry(app1.getPackageName(), UserHandle.myUserId())) in display_showRecents()
193 when(mAppState.getEntry(app2.getPackageName(), UserHandle.myUserId())) in display_showRecents()
199 new String[] {app.getPackageName(), app1.getPackageName(), app2.getPackageName()}, in display_showRecents()
241 app.getPackageName(), UserHandle.myUserId())).thenReturn(app1Entry); in display_showRecentsWithInstantApp()
243 app1.getPackageName(), UserHandle.myUserId())).thenReturn(app2Entry); in display_showRecentsWithInstantApp()
246 when(mPackageManager.resolveActivity(argThat(intentMatcher(app.getPackageName())), in display_showRecentsWithInstantApp()
266 app.getPackageName())); in display_showRecentsWithInstantApp()
269 app1.getPackageName())); in display_showRecentsWithInstantApp()
284 when(mAppState.getEntry(app.getPackageName(), UserHandle.myUserId())) in display_showRecents_formatSummary()
/packages/services/Telecomm/src/com/android/server/telecom/
DCarModeTracker.java67 public String getPackageName() { in getPackageName() method in CarModeTracker.CarModeApp
109 if (mCarModeApps.stream().anyMatch(c -> c.getPackageName().equals(packageName))) { in handleEnterCarMode()
134 c -> c.getPackageName().equals(packageName) && c.getPriority() == priority)) { in handleExitCarMode()
155 .map(cma -> cma.getPackageName()) in getCarModeApps()
163 .map(cma -> "[" + cma.getPriority() + ", " + cma.getPackageName() + "]") in getCarModePriorityString()
174 return app == null ? null : app.getPackageName(); in getCurrentCarModePackage()
198 pw.println(app.getPackageName()); in dump()
/packages/apps/Car/Notification/src/com/android/car/notification/
DNotificationUtils.java72 statusBarNotification.getPackageName(), /* flags= */ 0, in isSystemApp()
75 Log.e(TAG, "package not found: " + statusBarNotification.getPackageName()); in isSystemApp()
92 statusBarNotification.getPackageName(), /* flags= */ 0, in isSignedWithPlatformKey()
95 Log.e(TAG, "package not found: " + statusBarNotification.getPackageName()); in isSignedWithPlatformKey()
109 statusBarNotification.getPackageName(), /* flags= */ 0, in isSystemPrivilegedOrPlatformKeyInner()
112 Log.e(TAG, "package not found: " + statusBarNotification.getPackageName()); in isSystemPrivilegedOrPlatformKeyInner()
/packages/apps/Car/Settings/src/com/android/car/settings/applications/managedomainurls/
DClearDefaultsPreferenceController.java64 boolean autoLaunchEnabled = AppUtils.hasPreferredActivities(mPm, getPackageName()) in updateState()
65 || isDefaultBrowser(getPackageName()) in updateState()
66 || hasUsbDefaults(mUsbManager, getPackageName()); in updateState()
82 mPm.clearPackagePreferredActivities(getPackageName()); in handlePreferenceClicked()
83 if (isDefaultBrowser(getPackageName())) { in handlePreferenceClicked()
87 mUsbManager.clearDefaults(getPackageName(), userId); in handlePreferenceClicked()
DAppLinkStatePreferenceController.java83 int state = mPm.getIntentVerificationStatusAsUser(getPackageName(), in updateState()
99 int priorState = mPm.getIntentVerificationStatusAsUser(getPackageName(), in handlePreferenceChanged()
105 boolean success = mPm.updateIntentVerificationStatusAsUser(getPackageName(), newState, in handlePreferenceChanged()
109 int updatedState = mPm.getIntentVerificationStatusAsUser(getPackageName(), in handlePreferenceChanged()
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/deletionhelper/
DAppDeletionPreferenceTest.java60 assertThat(preference.getPackageName()).isEqualTo(TEST_PACKAGE_NAME); in testPreferenceSummary()
79 assertThat(preference.getPackageName()).isEqualTo(TEST_PACKAGE_NAME); in testTwoDayPreferenceSummary()
98 assertThat(preference.getPackageName()).isEqualTo(TEST_PACKAGE_NAME); in testYesterdayPreferenceSummary()
117 assertThat(preference.getPackageName()).isEqualTo(TEST_PACKAGE_NAME); in testTodayPreferenceSummary()
136 assertThat(preference.getPackageName()).isEqualTo(TEST_PACKAGE_NAME); in testNeverUsedPreferenceSummary()
156 assertThat(preference.getPackageName()).isEqualTo(TEST_PACKAGE_NAME); in testUnknownLastUsePreferenceSummary()
176 assertThat(preference.getPackageName()).isEqualTo(TEST_PACKAGE_NAME); in testSizeSummary()
/packages/apps/Settings/tests/robotests/src/com/android/settings/inputmethod/
DVirtualKeyboardPreferenceControllerTest.java103 when(imis.get(0).getPackageName()).thenReturn(componentName.getPackageName()); in updateState_singleIme_setImeLabelToSummary()
124 when(imis.get(0).getPackageName()).thenReturn(componentName.getPackageName()); in updateState_multiImeWithMixedLocale_setImeLabelToSummary()
126 when(imis.get(1).getPackageName()).thenReturn(componentName.getPackageName()); in updateState_multiImeWithMixedLocale_setImeLabelToSummary()
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/qstile/
DDevelopmentTilePreferenceControllerTest.java90 .setPackage(mContext.getPackageName()); in display_hasTileService_shouldDisplay()
95 info.serviceInfo.packageName = mContext.getPackageName(); in display_hasTileService_shouldDisplay()
111 assertThat(argument.getValue().getPackageName()).isEqualTo(mContext.getPackageName()); in preferenceChecked_shouldAddTile()
122 assertThat(argument.getValue().getPackageName()).isEqualTo(mContext.getPackageName()); in preferenceUnchecked_shouldRemoveTile()
/packages/apps/Settings/src/com/android/settings/
DUsageStatsActivity.java68 String alabel = mAppLabelList.get(a.getPackageName()); in compare()
69 String blabel = mAppLabelList.get(b.getPackageName()); in compare()
127 ApplicationInfo appInfo = mPm.getApplicationInfo(pkgStats.getPackageName(), 0); in UsageStatsAdapter()
129 mAppLabelMap.put(pkgStats.getPackageName(), label); in UsageStatsAdapter()
132 map.get(pkgStats.getPackageName()); in UsageStatsAdapter()
134 map.put(pkgStats.getPackageName(), pkgStats); in UsageStatsAdapter()
193 String label = mAppLabelMap.get(pkgStats.getPackageName()); in getView()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DUsageStatsActivity.java68 String alabel = mAppLabelList.get(a.getPackageName()); in compare()
69 String blabel = mAppLabelList.get(b.getPackageName()); in compare()
127 ApplicationInfo appInfo = mPm.getApplicationInfo(pkgStats.getPackageName(), 0); in UsageStatsAdapter()
129 mAppLabelMap.put(pkgStats.getPackageName(), label); in UsageStatsAdapter()
132 map.get(pkgStats.getPackageName()); in UsageStatsAdapter()
134 map.put(pkgStats.getPackageName(), pkgStats); in UsageStatsAdapter()
193 String label = mAppLabelMap.get(pkgStats.getPackageName()); in getView()
/packages/services/Car/service/src/com/android/car/
DCarMediaService.java137 && mPrimaryMediaComponent.getPackageName().equals(intentPackage)) {
284 "\tCurrent media controller: " + mActiveUserMediaController.getPackageName()); in dump()
300 Log.d(CarLog.TAG_MEDIA, "Changing media source to: " + componentName.getPackageName()); in setMediaSource()
381 Log.d(CarLog.TAG_MEDIA, "playing " + mActiveUserMediaController.getPackageName()); in play()
388 + mActiveUserMediaController.getPackageName()); in play()
402 Log.d(CarLog.TAG_MEDIA, "stopping " + mActiveUserMediaController.getPackageName()); in stopAndUnregisterCallback()
409 + mActiveUserMediaController.getPackageName()); in stopAndUnregisterCallback()
454 ComponentName mediaSource = getMediaSource(mMediaController.getPackageName(), in onPlaybackStateChanged()
585 String newPackageName = controller.getPackageName(); in updatePrimaryMediaSourceWithCurrentlyPlaying()
612 if (mPrimaryMediaComponent != null && mPrimaryMediaComponent.getPackageName().equals( in matchPrimaryMediaSource()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/theme/
DThemeOverlayManager.java89 final ApplicationInfo ai = pm.getApplicationInfo(info.getPackageName(), 0); in getValidOverlay()
100 Log.w(TAG, "Can't get ApplicationInfo of overlay package " + info.getPackageName()); in getValidOverlay()
128 mOverlayManager.setEnabled(info.getPackageName(), enabled, mUserHandle); in setEnabledOverlayPackages()
130 Log.w(TAG, "Skip enabled overlay package:" + info.getPackageName() in setEnabledOverlayPackages()
135 Log.e(TAG, "Failed to enable overlay: " + info.getPackageName() + ", user: " in setEnabledOverlayPackages()
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/source/
DMediaBrowserConnector.java72 private final String mCallbackPackage = mBrowseService.getPackageName();
78 + " current: " + mBrowseService.getPackageName()); in isValidCall()
81 Log.d(TAG, method + " " + mBrowseService.getPackageName() + idHash(mBrowser)); in isValidCall()
118 Log.d(TAG, "Disconnecting: " + mBrowseService.getPackageName() + idHash(mBrowser)); in connectTo()
128 Log.d(TAG, "Connecting to: " + mBrowseService.getPackageName() + idHash(mBrowser)); in connectTo()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DUncachedInputMethodManagerUtils.java41 final String packageName = context.getPackageName(); in isThisImeEnabled()
43 if (packageName.equals(imi.getPackageName())) { in isThisImeEnabled()
60 final InputMethodInfo imi = getInputMethodInfoOf(context.getPackageName(), imm); in isThisImeCurrent()
78 if (packageName.equals(imi.getPackageName())) { in getInputMethodInfoOf()
/packages/apps/Settings/src/com/android/settings/search/
DSearchFeatureProviderImpl.java45 final String packageName = caller.getPackageName(); in verifyLaunchSearchResultPageCaller()
46 final boolean isSettingsPackage = TextUtils.equals(packageName, context.getPackageName()) in verifyLaunchSearchResultPageCaller()
49 isSignatureWhitelisted(context, caller.getPackageName()); in verifyLaunchSearchResultPageCaller()
79 .authority(context.getPackageName()) in buildReferrer()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/search/
DSearchFeatureProviderImpl.java45 final String packageName = caller.getPackageName(); in verifyLaunchSearchResultPageCaller()
46 final boolean isSettingsPackage = TextUtils.equals(packageName, context.getPackageName()) in verifyLaunchSearchResultPageCaller()
49 isSignatureWhitelisted(context, caller.getPackageName()); in verifyLaunchSearchResultPageCaller()
79 .authority(context.getPackageName()) in buildReferrer()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DFirstScreenBroadcast.java113 folderItemInfoPackage = getPackageName(folderItemInfo); in sendBroadcastToInstaller()
121 String packageName = getPackageName(info); in sendBroadcastToInstaller()
151 private static String getPackageName(ItemInfo info) { in getPackageName() method in FirstScreenBroadcast
156 packageName = widgetInfo.providerName.getPackageName(); in getPackageName()
159 packageName = info.getTargetComponent().getPackageName(); in getPackageName()
/packages/apps/Contacts/src/com/android/contacts/util/
DImplicitIntentsUtil.java80 String packageName = context.getPackageName(); in startActivityInApp()
123 intent.setPackage(activity.getPackageName()); in startQuickContact()
181 intent.setPackage(context.getPackageName()); in getIntentForQuickContactLauncherShortcut()
208 intentCopy.setPackage(context.getPackageName()); in getIntentInAppIfExists()
219 intentCopy.setClassName(context.getPackageName(), in getIntentInAppIfExists()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/
DUseOpenWifiPreferenceControllerTest.java111 .thenReturn(sEnableActivityComponent.getPackageName()); in setupScorers()
187 sEnableActivityComponent.getPackageName()); in onPreferenceChange_matchingKeyAndAvailable_disableShouldUpdateSetting()
231 .isEqualTo(sEnableActivityComponent.getPackageName()); in onActivityResult_matchingRequestCode_okResult_updatesSetting()
241 sEnableActivityComponent.getPackageName()); in updateState_noEnableActivity_preferenceDisabled_summaryChanged()
257 sEnableActivityComponent.getPackageName()); in updateState_noScorer_preferenceDisabled_summaryChanged()
273 sEnableActivityComponent.getPackageName()); in updateState_enableActivityExists_preferenceEnabled()
/packages/apps/Dialer/java/com/android/dialer/databasepopulator/
DVoicemailPopulator.java94 Voicemails.buildSourceUri(context.getPackageName()), in populateVoicemail()
111 .delete(Voicemails.buildSourceUri(context.getPackageName()), null, null); in deleteAllVoicemail()
120 values.put(Status.SOURCE_PACKAGE, handle.getComponentName().getPackageName()); in enableVoicemail()
129 context.getContentResolver().insert(Status.buildSourceUri(context.getPackageName()), values); in enableVoicemail()
158 values.put(Voicemails.SOURCE_PACKAGE, context.getPackageName()); in getAsContentValues()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DVoicemailNotifier.java70 mVoicemailPermissions.packageHasReadAccess(component.getPackageName()); in sendNotification()
73 component.getPackageName()); in sendNotification()
77 && (!mModifiedPackages.contains(component.getPackageName()) in sendNotification()
86 callingPackages.contains(component.getPackageName())); in sendNotification()

12345678910>>...33