HomeSort by relevance Sort by last modified time
    Searched refs:appId (Results 1 - 25 of 88) sorted by null

1 2 3 4

  /frameworks/base/core/java/android/os/
UserHandle.java 105 * @return whether the appId is the same for both uids
115 final int appId = getAppId(uid);
116 return appId >= Process.FIRST_ISOLATED_UID && appId <= Process.LAST_ISOLATED_UID;
125 final int appId = getAppId(uid);
126 return appId >= Process.FIRST_APPLICATION_UID && appId <= Process.LAST_APPLICATION_UID;
165 * Returns the uid that is composed from the userId and the appId.
168 public static int getUid(@UserIdInt int userId, @AppIdInt int appId) {
170 return userId * PER_USER_RANGE + (appId % PER_USER_RANGE)
    [all...]
  /system/core/libcutils/
multiuser.c 27 uid_t multiuser_get_uid(userid_t userId, appid_t appId) {
28 return userId * MULTIUSER_APP_PER_USER_RANGE + (appId % MULTIUSER_APP_PER_USER_RANGE);
  /frameworks/base/services/core/java/com/android/server/pm/
PackageSetting.java 30 int appId;
51 appId = orig.appId;
60 + " " + name + "/" + appId + "}";
  /system/core/include/cutils/
multiuser.h 37 extern uid_t multiuser_get_uid(userid_t userId, appid_t appId);
  /frameworks/base/core/java/android/print/
IPrintManager.aidl 40 List<PrintJobInfo> getPrintJobInfos(int appId, int userId);
41 PrintJobInfo getPrintJobInfo(in PrintJobId printJobId, int appId, int userId);
43 in PrintAttributes attributes, String packageName, int appId, int userId);
44 void cancelPrintJob(in PrintJobId printJobId, int appId, int userId);
45 void restartPrintJob(in PrintJobId printJobId, int appId, int userId);
48 int appId, int userId);
IPrintSpooler.aidl 40 int state, int appId, int sequence);
42 int appId, int sequence);
  /packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
ContextMap.java 50 int appId;
53 Connection(int connId, String address,int appId) {
56 this.appId = appId;
234 void removeConnectionsByAppId(int appId) {
238 if (connection.appId == appId) {
322 return getById(connection.appId);
338 if (connection.address.equals(address) && connection.appId == id)
356 List<Connection> getConnectionByApp(int appId) {
    [all...]
  /system/vold/
KeyStorage.cpp 100 const std::string& appId, std::string* key) {
106 addStringParam(&paramBuilder, keymaster::TAG_APPLICATION_ID, appId);
126 const std::string& appId) {
131 addStringParam(&paramBuilder, keymaster::TAG_APPLICATION_ID, appId);
140 const KeyAuthentication& auth, const std::string& appId,
142 auto params = beginParams(auth, appId).build();
165 const KeyAuthentication& auth, const std::string& appId,
169 auto params = addStringParam(beginParams(auth, appId), keymaster::TAG_NONCE, nonce).build();
239 std::string* appId) {
242 *appId = hashSecdiscardable(secdiscardable) + stretched
    [all...]
  /device/google/contexthub/util/nanotool/
apptohostevent.h 27 uint64_t appId;
55 // The u64 appId used in nanohub is 40 bits vendor ID + 24 bits app ID (see seos.h)
56 constexpr uint64_t MakeAppId(uint64_t vendorId, uint32_t appId) {
57 return (vendorId << 24) | (appId & 0x00FFFFFF);
  /frameworks/base/core/java/android/hardware/location/
NanoAppFilter.java 33 // The appId, can be set to APP_ID_ANY
104 * @param appId application id
109 public NanoAppFilter(long appId, int appVersion, int versionMask, long vendorMask) {
110 mAppId = appId;
NanoApp.java 81 public NanoApp(int appId, byte[] appBinary) {
85 mAppId = appId;
119 * @param appId add identifier
121 public void setAppId(int appId) {
122 mAppId = appId;
311 throw new IllegalStateException("Must set AppId for nanoapp " + mName);
ContextHubService.java 196 long appId = app.getAppId();
199 if ((appId >> 32) != 0) {
204 appId = parseAppId(app);
207 msgHeader[HEADER_FIELD_LOAD_APP_ID_LO] = (int)(appId & 0xFFFFFFFF);
208 msgHeader[HEADER_FIELD_LOAD_APP_ID_HI] = (int)((appId >> 32) & 0xFFFFFFFF);
352 private int addAppInstance(int hubHandle, int appInstanceHandle, long appId, int appVersion) {
356 appInfo.setAppId(appId);
375 + appId + " version " + appVersion);
  /device/google/contexthub/firmware/inc/
seos.h 92 #define APP_ID_GET_VENDOR(appid) ((appid) >> 24)
93 #define APP_ID_GET_SEQ_ID(appid) ((appid) & 0xFFFFFF)
172 bool osTidById(uint64_t appId, uint32_t *tid);
173 bool osAppInfoById(uint64_t appId, uint32_t *appIdx, uint32_t *appVer, uint32_t *appSize);
174 bool osAppInfoByIndex(uint32_t appIdx, uint64_t *appId, uint32_t *appVer, uint32_t *appSize);
263 uint32_t osExtAppStopApps(uint64_t appId);
264 uint32_t osExtAppEraseApps(uint64_t appId);
265 uint32_t osExtAppStartApps(uint64_t appId);
    [all...]
nanohubPacket.h 111 __le64 appId;
131 __le64 appId;
283 uint64_t appId;
315 __le64 appId;
339 __le64 appId;
eventnums.h 49 uint64_t appId;
  /device/google/contexthub/firmware/src/
seos.c 420 static struct Task* osTaskFindByAppID(uint64_t appID)
425 if (task->app && task->app->hdr.appId == appID)
670 osLog(LOG_WARN, "External app id %016" PRIX64 " @ %p cannot be used as too many apps already exist.\n", app->hdr.appId, app);
679 osLog(LOG_WARN, "App @ %p ID %016" PRIX64 " failed to load\n", app, app->hdr.appId);
707 task->app->hdr.appId, (uintptr_t) task->app, (uintptr_t) task->platInfo.data, task->tid);
712 osLog(LOG_WARN, "App @ %p ID %016" PRIX64 "failed to init\n", task->app, task->app->hdr.appId);
741 static bool osExtAppFind(struct SegmentIterator *it, uint64_t appId)
743 uint64_t vendor = APP_ID_GET_VENDOR(appId);
744 uint64_t seqId = APP_ID_GET_SEQ_ID(appId);
    [all...]
nanohubCommand.c 130 if (osAppInfoById(le64toh(req->appId), &appIdx, &appVer, &appSize)) {
142 uint64_t appId;
145 if (osAppInfoByIndex(le32toh(req->appIdx), &appId, &appVer, &appSize)) {
146 resp->appId = htole64(appId);
330 uint64_t keyId = KEY_ID_MAKE(APP_ID_GET_VENDOR(app->hdr.appId), ki->id);
867 if (rx_len >= sizeof(req->evtType) + sizeof(struct HostHubRawPacket) && rx_len == sizeof(req->evtType) + sizeof(struct HostHubRawPacket) + rawPacket->dataLen && osTidById(rawPacket->appId, &tid)) {
979 .appId = APP_ID_MAKE(APP_ID_VENDOR_GOOGLE, 0),
992 halSendMgmtResponse(NANOHUB_HAL_EXT_APPS_ON, osExtAppStartApps(le64toh(req->appId)));
999 halSendMgmtResponse(NANOHUB_HAL_EXT_APPS_OFF, osExtAppStopApps(le64toh(req->appId)));
    [all...]
  /frameworks/base/services/print/java/com/android/server/print/
PrintManagerService.java 118 PrintAttributes attributes, String packageName, int appId, int userId) {
132 resolvedAppId = resolveCallingAppEnforcingPermissions(appId);
146 public List<PrintJobInfo> getPrintJobInfos(int appId, int userId) {
155 resolvedAppId = resolveCallingAppEnforcingPermissions(appId);
167 public PrintJobInfo getPrintJobInfo(PrintJobId printJobId, int appId, int userId) {
180 resolvedAppId = resolveCallingAppEnforcingPermissions(appId);
213 public void cancelPrintJob(PrintJobId printJobId, int appId, int userId) {
226 resolvedAppId = resolveCallingAppEnforcingPermissions(appId);
238 public void restartPrintJob(PrintJobId printJobId, int appId, int userId) {
251 resolvedAppId = resolveCallingAppEnforcingPermissions(appId);
    [all...]
UserState.java 205 @Nullable PrintAttributes attributes, @NonNull String packageName, int appId) {
209 printJob.setAppId(appId);
217 if (!mPrintJobForAppCache.onPrintJobCreated(adapter.asBinder(), appId,
255 public List<PrintJobInfo> getPrintJobInfos(int appId) {
256 List<PrintJobInfo> cachedPrintJobs = mPrintJobForAppCache.getPrintJobs(appId);
279 PrintJobInfo.STATE_ANY, appId);
295 public PrintJobInfo getPrintJobInfo(@NonNull PrintJobId printJobId, int appId) {
296 PrintJobInfo printJob = mPrintJobForAppCache.getPrintJob(printJobId, appId);
298 printJob = mSpooler.getPrintJobInfo(printJobId, appId);
331 public void cancelPrintJob(@NonNull PrintJobId printJobId, int appId) {
    [all...]
  /packages/apps/Bluetooth/src/com/android/bluetooth/hdp/
HealthService.java 166 int appId = registerHealthAppNative(appConfig.getDataType(), halRole,
168 if (appId == -1) {
182 appInfo.mAppId = appId;
192 int appId = (mApps.get(appConfig)).mAppId;
193 if (!unregisterHealthAppNative(appId)) {
194 Log.e(TAG, "Failed to unregister application: id: " + appId);
204 int appId = (mApps.get(chan.mConfig)).mAppId;
205 chan.mChannelId = connectChannelNative(devAddr, appId);
487 private void onAppRegistrationState(int appId, int state) {
489 msg.arg1 = appId;
    [all...]
  /device/google/contexthub/contexthubhal/
nanohubhal.cpp 49 inline std::ostream &operator << (std::ostream &os, const hub_app_name_t &appId)
52 __be64 beAppId = htobe64(appId.id);
53 uint32_t seqId = appId.id & NANOAPP_VENDOR_ALL_APPS;
61 os << "#" << std::hex << appId.id;
67 void dumpBuffer(const char *pfx, const hub_app_name_t &appId, uint32_t evtId, const void *data, size_t len, int status)
71 os << pfx << ": [ID=" << appId << "; SZ=" << std::dec << len;
  /device/google/contexthub/firmware/app/test0.app/
test_app0.c 61 extMsg->hdr.appId = APP_ID_MAKE(APP_ID_VENDOR_GOOGLE, 0x548000);
  /frameworks/base/core/java/android/security/
IKeystoreService.aidl 62 int getKeyCharacteristics(String alias, in KeymasterBlob clientId, in KeymasterBlob appId,
67 in KeymasterBlob appId, int uid);
  /device/google/contexthub/util/nanoapp_cmd/
nanoapp_cmd.c 202 struct AppInfo *findApp(uint64_t appId)
207 if (apps[i].id == appId) {
231 uint64_t appId;
235 sscanf(line, "%32s %" PRIx64 " %" PRIx32 "\n", appsToInstall[installCnt], &appId, &appVersion);
237 installedApp = findApp(appId);
  /device/google/contexthub/util/nanoapp_postprocess/
postprocess.c 227 static int finalizeAndWrite(uint8_t *buf, uint32_t bufUsed, uint32_t bufSz, FILE *out, uint32_t layoutFlags, uint64_t appId)
237 .app_id = appId,
287 static int handleApp(uint8_t **pbuf, uint32_t bufUsed, FILE *out, uint32_t layoutFlags, uint64_t appId, bool verbose)
530 ret = finalizeAndWrite(buf, bufUsed, bufSz, out, layoutFlags, appId);
787 static int handleAppStatic(const char *fileName, FILE *out, uint32_t layoutFlags, uint64_t appId, bool verbose)
823 return finalizeAndWrite(buf, offset, bufSize, out, layoutFlags, appId);
828 static int handleKey(uint8_t **pbuf, uint32_t bufUsed, FILE *out, uint32_t layoutFlags, uint64_t appId, uint64_t keyId)
    [all...]

Completed in 2809 milliseconds

1 2 3 4