Home
last modified time | relevance | path

Searched refs:callingPackageName (Results 1 – 23 of 23) sorted by relevance

/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DAppSmsManager.java116 @NonNull String callingPackageName, in createAppSpecificSmsTokenWithPackageInfo() argument
119 Preconditions.checkStringNotEmpty(callingPackageName, in createAppSpecificSmsTokenWithPackageInfo()
124 appOps.checkPackage(Binder.getCallingUid(), callingPackageName); in createAppSpecificSmsTokenWithPackageInfo() local
127 String token = PackageBasedTokenUtil.generateToken(mContext, callingPackageName); in createAppSpecificSmsTokenWithPackageInfo()
131 if (mPackageMap.containsKey(callingPackageName)) { in createAppSpecificSmsTokenWithPackageInfo()
132 removeRequestLocked(mPackageMap.get(callingPackageName)); in createAppSpecificSmsTokenWithPackageInfo()
136 callingPackageName, intent, token, prefixes, subId, true); in createAppSpecificSmsTokenWithPackageInfo()
/frameworks/base/core/java/android/net/
DIConnectivityManager.aidl65 int userId, String callingPackageName); in getDefaultNetworkCapabilitiesForUser() argument
74 NetworkCapabilities getNetworkCapabilities(in Network network, String callingPackageName); in getNetworkCapabilities() argument
173 String callingPackageName); in requestNetwork() argument
176 in PendingIntent operation, String callingPackageName); in pendingRequestForNetwork() argument
181 in Messenger messenger, in IBinder binder, String callingPackageName); in listenForNetwork() argument
184 in PendingIntent operation, String callingPackageName); in pendingListenForNetwork() argument
228 in NetworkRequest request, String callingPackageName); in registerConnectivityDiagnosticsCallback() argument
DConnectivityManager.java3673 final String callingPackageName = mContext.getOpPackageName(); in sendRequestForNetwork() local
3686 need, messenger, binder, callingPackageName); in sendRequestForNetwork()
3689 need, messenger, timeoutMs, binder, legacyType, callingPackageName); in sendRequestForNetwork()
/frameworks/base/services/core/java/com/android/server/display/color/
DAppSaturationController.java65 public boolean setSaturationLevel(String callingPackageName, String affectedPackageName, in setSaturationLevel() argument
70 .setSaturationLevel(callingPackageName, saturationLevel); in setSaturationLevel()
160 private boolean setSaturationLevel(String callingPackageName, int saturationLevel) { in setSaturationLevel() argument
162 mSaturationLevels.remove(callingPackageName); in setSaturationLevel()
164 mSaturationLevels.put(callingPackageName, saturationLevel); in setSaturationLevel()
DColorDisplayService.java822 private boolean setAppSaturationLevelInternal(String callingPackageName, in setAppSaturationLevelInternal() argument
825 .setSaturationLevel(callingPackageName, affectedPackageName, mCurrentUser, in setAppSaturationLevelInternal()
1540 final String callingPackageName = LocalServices.getService(PackageManagerInternal.class) in setAppSaturationLevel() local
1544 return setAppSaturationLevelInternal(callingPackageName, packageName, level); in setAppSaturationLevel()
/frameworks/base/services/core/java/com/android/server/audio/
DMediaFocusControl.java822 IAudioFocusDispatcher fd, @NonNull String clientId, @NonNull String callingPackageName, in requestAudioFocus() argument
826 .set(MediaMetrics.Property.CALLING_PACKAGE, callingPackageName) in requestAudioFocus()
838 + " clientId=" + clientId + " callingPack=" + callingPackageName in requestAudioFocus()
850 callingPackageName) != AppOpsManager.MODE_ALLOWED) { in requestAudioFocus()
868 clientId, callingPackageName, focusChangeHint, 0 /*lossReceived*/, in requestAudioFocus()
937 clientId, afdh, callingPackageName, Binder.getCallingUid(), this, sdk); in requestAudioFocus()
998 String callingPackageName) { in abandonAudioFocus() argument
1001 .set(MediaMetrics.Property.CALLING_PACKAGE, callingPackageName) in abandonAudioFocus()
1018 clientId, callingPackageName, 0 /*gainRequest*/, 0 /*lossReceived*/, in abandonAudioFocus()
DAudioService.java6841 IAudioFocusDispatcher fd, String clientId, String callingPackageName, int flags, in requestAudioFocus() argument
6847 .set(MediaMetrics.Property.CALLING_PACKAGE, callingPackageName) in requestAudioFocus()
6885 if (callingPackageName == null || clientId == null || aa == null) { in requestAudioFocus()
6894 clientId, callingPackageName, flags, sdk, in requestAudioFocus()
6899 String callingPackageName) { in abandonAudioFocus() argument
6901 .set(MediaMetrics.Property.CALLING_PACKAGE, callingPackageName) in abandonAudioFocus()
6912 return mMediaFocusControl.abandonAudioFocus(fd, clientId, aa, callingPackageName); in abandonAudioFocus()
/frameworks/base/telecomm/java/android/telecom/
DVideoCallImpl.java212 VideoCallImpl(IVideoProvider videoProvider, String callingPackageName, int targetSdkVersion) in VideoCallImpl() argument
219 mCallingPackageName = callingPackageName; in VideoCallImpl()
DParcelableCall.java484 public VideoCallImpl getVideoCallImpl(String callingPackageName, int targetSdkVersion) { in getVideoCallImpl() argument
487 mVideoCall = new VideoCallImpl(mVideoCallProvider, callingPackageName, in getVideoCallImpl()
DConnection.java1497 public void setCamera(String cameraId, String callingPackageName, in setCamera() argument
1505 args.arg2 = callingPackageName; in setCamera()
1620 public void onSetCamera(String cameraId, String callingPackageName, int callingUid, in onSetCamera() argument
/frameworks/base/media/java/android/media/
DIAudioService.aidl170 IAudioFocusDispatcher fd, String clientId, String callingPackageName, int flags, in requestAudioFocus() argument
174 in String callingPackageName); in abandonAudioFocus() argument
/frameworks/base/services/core/java/com/android/server/media/
DMediaButtonReceiverHolder.java191 public boolean send(Context context, KeyEvent keyEvent, String callingPackageName, in send() argument
197 mediaButtonIntent.putExtra(Intent.EXTRA_PACKAGE_NAME, callingPackageName); in send()
DMediaSessionService.java2158 String callingPackageName = in dispatchMediaKeyEventLocked() local
2161 mContext, keyEvent, callingPackageName, in dispatchMediaKeyEventLocked()
/frameworks/base/telephony/common/com/android/internal/telephony/
DTelephonyPermissions.java392 @Nullable String callingPackageName) { in checkReadCallLog() argument
408 callingPackageName, null) == AppOpsManager.MODE_ALLOWED; in checkReadCallLog()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DBaseWifiService.java515 List<WifiNetworkSuggestion> networkSuggestions, String callingPackageName, in addNetworkSuggestions() argument
522 List<WifiNetworkSuggestion> networkSuggestions, String callingPackageName) { in removeNetworkSuggestions() argument
DWifiServiceImpl.java3838 List<WifiNetworkSuggestion> networkSuggestions, String callingPackageName,
3840 if (enforceChangePermission(callingPackageName) != MODE_ALLOWED) {
3849 networkSuggestions, callingUid, callingPackageName, callingFeatureId),
3867 List<WifiNetworkSuggestion> networkSuggestions, String callingPackageName) {
3868 if (enforceChangePermission(callingPackageName) != MODE_ALLOWED) {
3877 networkSuggestions, callingUid, callingPackageName),
3890 public List<WifiNetworkSuggestion> getNetworkSuggestions(String callingPackageName) {
3891 mAppOps.checkPackage(Binder.getCallingUid(), callingPackageName);
3897 mWifiNetworkSuggestionsManager.get(callingPackageName), Collections.emptyList());
/frameworks/base/services/core/java/com/android/server/
DConnectivityService.java1544 int userId, String callingPackageName) { in getDefaultNetworkCapabilitiesForUser() argument
1569 nc, Binder.getCallingUid(), callingPackageName)); in getDefaultNetworkCapabilitiesForUser()
1584 nc, Binder.getCallingUid(), callingPackageName)); in getDefaultNetworkCapabilitiesForUser()
1665 public NetworkCapabilities getNetworkCapabilities(Network network, String callingPackageName) { in getNetworkCapabilities() argument
1666 mAppOpsManager.checkPackage(Binder.getCallingUid(), callingPackageName); in getNetworkCapabilities() local
1670 Binder.getCallingUid(), callingPackageName); in getNetworkCapabilities()
5498 private boolean checkUnsupportedStartingFrom(int version, String callingPackageName) { in checkUnsupportedStartingFrom() argument
5503 callingPackageName, 0 /* flags */, userId).targetSdkVersion; in checkUnsupportedStartingFrom()
5512 @NonNull String callingPackageName) { in requestNetwork() argument
5514 if (checkUnsupportedStartingFrom(Build.VERSION_CODES.M, callingPackageName)) { in requestNetwork()
[all …]
/frameworks/base/apex/blobstore/service/java/com/android/server/blob/
DBlobStoreSession.java160 boolean hasAccess(int callingUid, String callingPackageName) { in hasAccess() argument
161 return mOwnerUid == callingUid && mOwnerPackageName.equals(callingPackageName); in hasAccess()
/frameworks/base/services/core/java/com/android/server/textclassifier/
DTextClassificationManagerService.java432 final String callingPackageName = in handleRequest() local
439 validateCallingPackage(callingPackageName); in handleRequest()
/frameworks/base/services/core/java/com/android/server/tv/
DTvInputManagerService.java915 String callingPackageName = getCallingPackageName(); in updateTvInputInfo() local
916 if (!TextUtils.equals(inputInfoPackageName, callingPackageName) in updateTvInputInfo()
921 throw new IllegalArgumentException("calling package " + callingPackageName in updateTvInputInfo()
2007 final String callingPackageName = getCallingPackageName(); in requestChannelBrowsable() local
2021 intent.putExtra(TvContract.EXTRA_PACKAGE_NAME, callingPackageName); in requestChannelBrowsable()
/frameworks/base/telephony/java/com/android/internal/telephony/
DITelephony.aidl480 void sendDialerSpecialCode(String callingPackageName, String inputCode); in sendDialerSpecialCode() argument
/frameworks/base/services/usage/java/com/android/server/usage/
DUsageStatsService.java1750 public ParceledListSlice<AppStandbyInfo> getAppStandbyBuckets(String callingPackageName, in getAppStandbyBuckets() argument
1760 if (!hasPermission(callingPackageName)) { in getAppStandbyBuckets()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiServiceImplTest.java3949 private void verifyCheckChangePermission(String callingPackageName) { in verifyCheckChangePermission() argument
3956 AppOpsManager.OPSTR_CHANGE_WIFI_STATE, Process.myUid(), callingPackageName); in verifyCheckChangePermission()