Home
last modified time | relevance | path

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

12345678910>>...33

/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/
DMediaPlayerList.java155 if (!mMediaPlayerIds.containsKey(wrapper.getPackageName())) { in init()
156 mMediaPlayerIds.put(wrapper.getPackageName(), getFreeMediaPlayerId()); in init()
159 d("Adding Browser Wrapper for " + wrapper.getPackageName() + " with id " in init()
160 + mMediaPlayerIds.get(wrapper.getPackageName())); in init()
162 mBrowsablePlayers.put(mMediaPlayerIds.get(wrapper.getPackageName()), wrapper); in init()
346 String displayName = Util.getDisplayName(mContext, player.getPackageName()); in getFolderItemsMediaPlayerList()
347 int id = mMediaPlayerIds.get(player.getPackageName()); in getFolderItemsMediaPlayerList()
383 + wrapper.getPackageName()); in getFolderItems()
418 String packageName = controller.getPackageName(); in addMediaPlayer()
445 + mMediaPlayerIds.get(controller.getPackageName())); in addMediaPlayer()
[all …]
/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/services/Car/tests/carservice_test/src/com/android/car/vms/
DVmsBrokerServiceTest.java73 assertThat(broker.getPackageName(subscriberClient)).isEqualTo("test.package1"); in testAddSubscription()
75 assertThat(broker.getPackageName(subscriberClient)).isNull(); in testAddSubscription()
89 assertThat(broker.getPackageName(subscriberClient)).isEqualTo("test.package2"); in testAddSubscriptionLayer()
91 assertThat(broker.getPackageName(subscriberClient)).isNull(); in testAddSubscriptionLayer()
105 assertThat(broker.getPackageName(subscriberClient)).isEqualTo("test.package3"); in testAddSubscriptionLayerVersion()
107 assertThat(broker.getPackageName(subscriberClient)).isNull(); in testAddSubscriptionLayerVersion()
135 assertThat(broker.getPackageName(subscriberClient)).isEqualTo( in testUnknownPackageName()
150 assertThat(broker.getPackageName(subscriberClient)).isEqualTo(VmsBrokerService.HAL_CLIENT); in testAddingHalSubscriberSavesPackageName()
192 assertThat(broker.getPackageName(subscriberClient1)).isEqualTo("test.package0"); in testMultipleSubscriptionsPackageManager()
193 assertThat(broker.getPackageName(subscriberClient2)).isEqualTo("test.package1"); in testMultipleSubscriptionsPackageManager()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/
DPartner.java79 public String getPackageName() { in getPackageName() method in Partner
89 "xml", getPackageName()); in hasDefaultLayout()
95 "xml", getPackageName()); in hasFolder()
101 getPackageName()); in hideDefaultWallpaper()
107 getPackageName()); in getWallpaperDirectory()
113 getPackageName()); in requiresFirstRunFlow()
124 "integer", getPackageName()); in applyInvariantDeviceProfileOverrides()
130 "integer", getPackageName()); in applyInvariantDeviceProfileOverrides()
136 "dimen", getPackageName()); in applyInvariantDeviceProfileOverrides()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DCallScreeningServiceControllerTest.java167 USER_CHOSEN_CALL_SCREENING.getPackageName()); in testAllAllowCall()
176 CARRIER_DEFINED_CALL_SCREENING.getPackageName()); in testAllAllowCall()
184 DEFAULT_DIALER_CALL_SCREENING.getPackageName()); in testAllAllowCall()
186 .getPackageName()); in testAllAllowCall()
207 CARRIER_DEFINED_CALL_SCREENING.getPackageName()); in testCarrierAllowCallAndContactExists()
240 ), CARRIER_DEFINED_CALL_SCREENING.getPackageName()); in testCarrierCallScreeningRejectCall()
262 USER_CHOSEN_CALL_SCREENING.getPackageName()); in testDefaultDialerRejectCall()
271 CARRIER_DEFINED_CALL_SCREENING.getPackageName()); in testDefaultDialerRejectCall()
286 ), DEFAULT_DIALER_CALL_SCREENING.getPackageName()); in testDefaultDialerRejectCall()
308 USER_CHOSEN_CALL_SCREENING.getPackageName()); in testUserChosenRejectCall()
[all …]
DCallScreeningServiceFilterTest.java251 mResolveInfo.serviceInfo.packageName = CARRIER_DEFINED_CALL_SCREENING.getPackageName(); in testDisallowCallForCarrierDefined()
258 CARRIER_DEFINED_CALL_SCREENING.getPackageName(), in testDisallowCallForCarrierDefined()
278 )), eq(CARRIER_DEFINED_CALL_SCREENING.getPackageName())); in testDisallowCallForCarrierDefined()
284 mResolveInfo.serviceInfo.packageName = DEFAULT_DIALER_CALL_SCREENING.getPackageName(); in testDisallowCallForDefaultDialer()
291 DEFAULT_DIALER_CALL_SCREENING.getPackageName(), in testDisallowCallForDefaultDialer()
311 )), eq(DEFAULT_DIALER_CALL_SCREENING.getPackageName())); in testDisallowCallForDefaultDialer()
317 mResolveInfo.serviceInfo.packageName = USER_CHOSEN_CALL_SCREENING.getPackageName(); in testDisallowCallForUserChosen()
324 USER_CHOSEN_CALL_SCREENING.getPackageName(), in testDisallowCallForUserChosen()
344 )), eq(USER_CHOSEN_CALL_SCREENING.getPackageName())); in testDisallowCallForUserChosen()
DInCallControllerTests.java196 assertEquals(SYS_PKG, bindIntent.getComponent().getPackageName()); in testBindToService_NoServicesFound_IncomingCall()
231 assertEquals(SYS_PKG, bindIntent.getComponent().getPackageName()); in testBindToService_NoServicesFound_OutgoingCall()
283 assertEquals(DEF_PKG, bindIntent.getComponent().getPackageName()); in testBindToService_DefaultDialer_NoEmergency()
342 assertEquals(SYS_PKG, bindIntent.getComponent().getPackageName()); in testBindToService_SystemDialer_Emergency()
412 assertEquals(DEF_PKG, bindIntent.getComponent().getPackageName()); in testBindToService_DefaultDialer_FallBackToSystem()
444 assertEquals(SYS_PKG, bindIntent.getComponent().getPackageName()); in testBindToService_DefaultDialer_FallBackToSystem()
482 assertEquals(DEF_PKG, bindIntent.getComponent().getPackageName()); in testBindToService_IncludeExternal()
586 assertEquals(DEF_PKG, bindIntent.getComponent().getPackageName()); in testBindToService_Companion()
591 assertEquals(COMPANION_PKG, bindIntent.getComponent().getPackageName()); in testBindToService_Companion()
595 assertEquals(COMPANION_PKG, bindIntent.getComponent().getPackageName()); in testBindToService_Companion()
[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/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()
/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/apps/Car/libs/car-media-common/src/com/android/car/media/common/source/
DMediaBrowserConnector.java66 private final String mCallbackPackage = mBrowseService.getPackageName();
72 + " current: " + mBrowseService.getPackageName()); in isValidCall()
75 Log.d(TAG, method + " " + mBrowseService.getPackageName() + idHash(mBrowser)); in isValidCall()
112 Log.d(TAG, "Disconnecting: " + mBrowseService.getPackageName() + idHash(mBrowser)); in connectTo()
122 Log.d(TAG, "Connecting to: " + mBrowseService.getPackageName() + idHash(mBrowser)); in connectTo()
/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/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/Launcher3/src/com/android/launcher3/model/
DFirstScreenBroadcast.java108 folderItemInfoPackage = getPackageName(folderItemInfo); in sendBroadcastToInstaller()
116 String packageName = getPackageName(info); in sendBroadcastToInstaller()
146 private static String getPackageName(ItemInfo info) { in getPackageName() method in FirstScreenBroadcast
151 packageName = widgetInfo.providerName.getPackageName(); in getPackageName()
154 packageName = info.getTargetComponent().getPackageName(); in getPackageName()
/packages/services/Car/service/src/com/android/car/pm/
DActivityBlockingActivity.java160 .append(blocked.getPackageName()); in getDebugInfo()
168 if (!root.getPackageName().equals(blocked.getPackageName())) { in getDebugInfo()
169 debug.append("\nRoot activity package is ").append(root.getPackageName()); in getDebugInfo()
211 return getPackageManager().getApplicationIcon(componentName.getPackageName()); in findApplicationIcon()
233 componentName.getPackageName(), 0); in findHumanReadableLabel()
/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/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()

12345678910>>...33