Home
last modified time | relevance | path

Searched refs:appId (Results 1 – 25 of 31) sorted by relevance

12

/frameworks/base/core/java/android/os/
DUserHandle.java98 final int appId = getAppId(uid); in isIsolated() local
99 return appId >= Process.FIRST_ISOLATED_UID && appId <= Process.LAST_ISOLATED_UID; in isIsolated()
108 final int appId = getAppId(uid); in isApp() local
109 return appId >= Process.FIRST_APPLICATION_UID && appId <= Process.LAST_APPLICATION_UID; in isApp()
148 public static final int getUid(int userId, int appId) { in getUid() argument
150 return userId * PER_USER_RANGE + (appId % PER_USER_RANGE); in getUid()
152 return appId; in getUid()
186 final int appId = getAppId(gid) + Process.FIRST_APPLICATION_UID in getAppIdFromSharedAppGid() local
188 if (appId < 0 || appId >= Process.FIRST_SHARED_APPLICATION_GID) { in getAppIdFromSharedAppGid()
191 return appId; in getAppIdFromSharedAppGid()
[all …]
/frameworks/base/core/java/android/print/
DIPrintManager.aidl35 List<PrintJobInfo> getPrintJobInfos(int appId, int userId); in getPrintJobInfos() argument
36 PrintJobInfo getPrintJobInfo(in PrintJobId printJobId, int appId, int userId); in getPrintJobInfo() argument
38 in PrintAttributes attributes, String packageName, int appId, int userId); in print() argument
39 void cancelPrintJob(in PrintJobId printJobId, int appId, int userId); in cancelPrintJob() argument
40 void restartPrintJob(in PrintJobId printJobId, int appId, int userId); in restartPrintJob() argument
43 int appId, int userId); in addPrintJobStateChangeListener() argument
DIPrintSpooler.aidl38 int state, int appId, int sequence); in getPrintJobInfos() argument
40 int appId, int sequence); in getPrintJobInfo() argument
DPrintJobInfo.java346 public void setAppId(int appId) { in setAppId() argument
347 mAppId = appId; in setAppId()
DPrintManager.java185 public PrintManager(Context context, IPrintManager service, int userId, int appId) { in PrintManager() argument
189 mAppId = appId; in PrintManager()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageSetting.java28 int appId; field in PackageSetting
48 appId = orig.appId; in PackageSetting()
57 + " " + name + "/" + appId + "}"; in toString()
DSettings.java458 p.appId, p.versionCode, p.pkgFlags, p.pkgPrivateFlags); in enableSystemPackageLPw()
476 if (p.appId == uid) { in addPackageLPw()
486 p.appId = uid; in addPackageLPw()
614 p.appId = origPackage.appId; in getPackageLPw()
661 p.appId = sharedUser.userId; in getPackageLPw()
673 p.appId = dis.appId; in getPackageLPw()
688 addUserIdLPw(p.appId, p, name); in getPackageLPw()
691 p.appId = newUserIdLPw(p); in getPackageLPw()
695 if (p.appId < 0) { in getPackageLPw()
804 } else if (p.appId != sharedUser.userId) { in addPackageSettingLPw()
[all …]
DInstaller.java268 String dataAppName, int appId, String seinfo) { in copyCompleteApp() argument
279 builder.append(appId); in copyCompleteApp()
DPackageManagerService.java1298 ? UserHandle.getUid(packageUserId, ps.appId) in doHandleMessage()
3514 final int appId = UserHandle.getAppId(pkg.applicationInfo.uid); in grantRuntimePermission() local
3518 killUid(appId, userId, KILL_APP_REASON_GIDS_CHANGED); in grantRuntimePermission()
3562 final int appId; in revokeRuntimePermission() local
3610 appId = UserHandle.getAppId(pkg.applicationInfo.uid); in revokeRuntimePermission()
3613 killUid(appId, userId, KILL_APP_REASON_PERMISSIONS_REVOKED); in revokeRuntimePermission()
3902 private void killUid(int appId, int userId, String reason) { in killUid() argument
3908 am.killUid(appId, userId, reason); in killUid()
6743 pkg.applicationInfo.uid = pkgSetting.appId; in scanPackageDirtyLI()
8015 private void killApplication(String pkgName, int appId, String reason) { in killApplication() argument
[all …]
/frameworks/base/services/print/java/com/android/server/print/
DPrintManagerService.java119 PrintAttributes attributes, String packageName, int appId, int userId) { in print() argument
129 resolvedAppId = resolveCallingAppEnforcingPermissions(appId); in print()
143 public List<PrintJobInfo> getPrintJobInfos(int appId, int userId) { in getPrintJobInfos() argument
152 resolvedAppId = resolveCallingAppEnforcingPermissions(appId); in getPrintJobInfos()
164 public PrintJobInfo getPrintJobInfo(PrintJobId printJobId, int appId, int userId) { in getPrintJobInfo() argument
173 resolvedAppId = resolveCallingAppEnforcingPermissions(appId); in getPrintJobInfo()
185 public void cancelPrintJob(PrintJobId printJobId, int appId, int userId) { in cancelPrintJob() argument
194 resolvedAppId = resolveCallingAppEnforcingPermissions(appId); in cancelPrintJob()
206 public void restartPrintJob(PrintJobId printJobId, int appId, int userId) { in restartPrintJob() argument
215 resolvedAppId = resolveCallingAppEnforcingPermissions(appId); in restartPrintJob()
[all …]
DUserState.java170 PrintAttributes attributes, String packageName, int appId) { in print() argument
174 printJob.setAppId(appId); in print()
182 if (!mPrintJobForAppCache.onPrintJobCreated(adapter.asBinder(), appId, in print()
220 public List<PrintJobInfo> getPrintJobInfos(int appId) { in getPrintJobInfos() argument
221 List<PrintJobInfo> cachedPrintJobs = mPrintJobForAppCache.getPrintJobs(appId); in getPrintJobInfos()
244 PrintJobInfo.STATE_ANY, appId); in getPrintJobInfos()
260 public PrintJobInfo getPrintJobInfo(PrintJobId printJobId, int appId) { in getPrintJobInfo() argument
261 PrintJobInfo printJob = mPrintJobForAppCache.getPrintJob(printJobId, appId); in getPrintJobInfo()
263 printJob = mSpooler.getPrintJobInfo(printJobId, appId); in getPrintJobInfo()
274 public void cancelPrintJob(PrintJobId printJobId, int appId) { in cancelPrintJob() argument
[all …]
DRemotePrintSpooler.java108 int appId) { in getPrintJobInfos() argument
116 componentName, state, appId); in getPrintJobInfos()
182 public final PrintJobInfo getPrintJobInfo(PrintJobId printJobId, int appId) { in getPrintJobInfo() argument
190 printJobId, appId); in getPrintJobInfo()
477 ComponentName componentName, int state, int appId) in getPrintJobInfos() argument
480 target.getPrintJobInfos(mCallback, componentName, state, appId, sequence); in getPrintJobInfos()
499 int appId) throws RemoteException, TimeoutException { in getPrintJobInfo() argument
501 target.getPrintJobInfo(printJobId, mCallback, appId, sequence); in getPrintJobInfo()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DSmsUsageMonitor.java584 int appId = UserHandle.getAppId(uid); in checkCallerIsSystemOrPhoneOrSameApp() local
585 if (appId == Process.SYSTEM_UID || appId == Process.PHONE_UID || uid == 0) { in checkCallerIsSystemOrPhoneOrSameApp()
602 int appId = UserHandle.getAppId(uid); in checkCallerIsSystemOrPhoneApp() local
603 if (appId == Process.SYSTEM_UID || appId == Process.PHONE_UID || uid == 0) { in checkCallerIsSystemOrPhoneApp()
DCommandsInterface.java1311 void queryFacilityLockForApp(String facility, String password, int serviceClass, String appId, in queryFacilityLockForApp() argument
1335 int serviceClass, String appId, Message response); in setFacilityLockForApp() argument
/frameworks/base/core/java/android/security/
DIKeystoreService.aidl61 int getKeyCharacteristics(String alias, in KeymasterBlob clientId, in KeymasterBlob appId, in getKeyCharacteristics() argument
66 in KeymasterBlob appId); in exportKey() argument
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
DPrintSpoolerService.java258 int state, int appId) { in getPrintJobInfos() argument
268 final boolean sameAppId = appId == PrintManager.APP_ID_ANY in getPrintJobInfos()
269 || printJob.getAppId() == appId; in getPrintJobInfos()
295 public PrintJobInfo getPrintJobInfo(PrintJobId printJobId, int appId) { in getPrintJobInfo() argument
301 && (appId == PrintManager.APP_ID_ANY in getPrintJobInfo()
302 || appId == printJob.getAppId())) { in getPrintJobInfo()
1008 final int appId = Integer.parseInt(parser.getAttributeValue(null, ATTR_APP_ID)); in parsePrintJob() local
1009 printJob.setAppId(appId); in parsePrintJob()
1233 ComponentName componentName, int state, int appId, int sequence) in getPrintJobInfos() argument
1238 componentName, state, appId); in getPrintJobInfos()
[all …]
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java1419 final int appId = readIntAttribute(in, ATTR_APP_ID); in readPolicyLocked() local
1423 final int uid = UserHandle.getUid(UserHandle.USER_OWNER, appId); in readPolicyLocked()
2099 int appId = mPowerSaveTempWhitelistAppIds.keyAt(i); in updateRulesForDeviceIdleLocked() local
2100 int uid = UserHandle.getUid(user.id, appId); in updateRulesForDeviceIdleLocked()
2105 int appId = mPowerSaveWhitelistAppIds.keyAt(i); in updateRulesForDeviceIdleLocked() local
2106 int uid = UserHandle.getUid(user.id, appId); in updateRulesForDeviceIdleLocked()
2122 int appId = UserHandle.getAppId(uid); in updateRuleForDeviceIdleLocked() local
2123 if (mPowerSaveTempWhitelistAppIds.get(appId) || mPowerSaveWhitelistAppIds.get(appId) in updateRuleForDeviceIdleLocked()
2151 int appId = UserHandle.getAppId(uid); in updateRuleForAppIdleLocked() local
2152 if (!mPowerSaveTempWhitelistAppIds.get(appId) && isUidIdle(uid)) { in updateRuleForAppIdleLocked()
[all …]
/frameworks/base/keystore/java/android/security/
DKeyStore.java425 public int getKeyCharacteristics(String alias, KeymasterBlob clientId, KeymasterBlob appId, in getKeyCharacteristics() argument
428 return mBinder.getKeyCharacteristics(alias, clientId, appId, outCharacteristics); in getKeyCharacteristics()
452 KeymasterBlob appId) { in exportKey() argument
454 return mBinder.exportKey(alias, format, clientId, appId); in exportKey()
/frameworks/base/core/java/android/bluetooth/
DIBluetoothGatt.aidl47 void registerClient(in ParcelUuid appId, in IBluetoothGattCallback callback); in registerClient() argument
81 void registerServer(in ParcelUuid appId, in IBluetoothGattServerCallback callback); in registerServer() argument
/frameworks/base/services/core/java/com/android/server/
DDeviceIdleController.java797 public void addPowerSaveTempWhitelistAppDirect(int appId, long duration, boolean sync, in addPowerSaveTempWhitelistAppDirect() argument
799 addPowerSaveTempWhitelistAppDirectInternal(0, appId, duration, sync, reason); in addPowerSaveTempWhitelistAppDirect()
1048 int appId = UserHandle.getAppId(uid); in addPowerSaveTempWhitelistAppInternal() local
1049 addPowerSaveTempWhitelistAppDirectInternal(callingUid, appId, duration, sync, reason); in addPowerSaveTempWhitelistAppInternal()
1058 public void addPowerSaveTempWhitelistAppDirectInternal(int callingUid, int appId, in addPowerSaveTempWhitelistAppDirectInternal() argument
1071 Pair<MutableLong, String> entry = mTempWhitelistAppIdEndTimes.get(appId); in addPowerSaveTempWhitelistAppDirectInternal()
1076 mTempWhitelistAppIdEndTimes.put(appId, entry); in addPowerSaveTempWhitelistAppDirectInternal()
1080 Slog.d(TAG, "Adding AppId " + appId + " to temp whitelist"); in addPowerSaveTempWhitelistAppDirectInternal()
1086 reason, appId); in addPowerSaveTempWhitelistAppDirectInternal()
1089 postTempActiveTimeoutMessage(appId, duration); in addPowerSaveTempWhitelistAppDirectInternal()
/frameworks/base/services/core/java/com/android/server/am/
DProcessRecord.java574 int appId = UserHandle.getAppId(info.uid); in toShortString() local
575 if (appId >= Process.FIRST_APPLICATION_UID) { in toShortString()
577 sb.append(appId - Process.FIRST_APPLICATION_UID); in toShortString()
580 sb.append(appId); in toShortString()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/sip/
DSipCommandInterface.java359 int serviceClass, String appId, Message response) { in queryFacilityLockForApp() argument
369 String password, int serviceClass, String appId, Message response) { in setFacilityLockForApp() argument
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/
DImsPhoneCommandInterface.java358 int serviceClass, String appId, Message response) { in queryFacilityLockForApp() argument
368 String password, int serviceClass, String appId, Message response) { in setFacilityLockForApp() argument
/frameworks/base/core/java/android/app/
DActivityManager.java2620 final int appId = UserHandle.getAppId(uid); in checkComponentPermission() local
2621 if (appId == Process.ROOT_UID || appId == Process.SYSTEM_UID) { in checkComponentPermission()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/
DUsimDataDownloadCommands.java.broken457 String appId, Message response) {
467 int serviceClass, String appId, Message response) {

12