/system/vold/model/ |
D | EmulatedVolume.cpp | 47 EmulatedVolume::EmulatedVolume(const std::string& rawPath, int userId) in EmulatedVolume() argument 49 setId(StringPrintf("emulated;%u", userId)); in EmulatedVolume() 58 int userId) in EmulatedVolume() argument 60 setId(StringPrintf("emulated:%u,%u;%u", major(device), minor(device), userId)); in EmulatedVolume() 119 int userId = getMountUserId(); in mountFuseBindMounts() local 137 androidSource = StringPrintf("/mnt/runtime/default/%s/%d/Android", label.c_str(), userId); in mountFuseBindMounts() 139 androidSource = StringPrintf("/%s/%d/Android", mRawPath.c_str(), userId); in mountFuseBindMounts() 147 StringPrintf("/mnt/user/%d/%s/%d/Android/data", userId, label.c_str(), userId)); in mountFuseBindMounts() 155 StringPrintf("/mnt/user/%d/%s/%d/Android/obb", userId, label.c_str(), userId)); in mountFuseBindMounts() 167 label.c_str(), userId)); in mountFuseBindMounts() [all …]
|
D | EmulatedVolume.h | 40 explicit EmulatedVolume(const std::string& rawPath, int userId); 41 EmulatedVolume(const std::string& rawPath, dev_t device, const std::string& fsUuid, int userId);
|
/system/core/gatekeeperd/binder/android/service/gatekeeper/ |
D | IGateKeeperService.aidl | 42 GateKeeperResponse enroll(int userId, in @nullable byte[] currentPasswordHandle, in enroll() argument 53 …GateKeeperResponse verify(int userId, in byte[] enrolledPasswordHandle, in byte[] providedPassword… in verify() argument 66 GateKeeperResponse verifyChallenge(int userId, long challenge, in byte[] enrolledPasswordHandle, in verifyChallenge() argument 74 long getSecureUserId(int userId); in getSecureUserId() argument 81 void clearSecureUserId(int userId); in clearSecureUserId() argument
|
/system/core/gatekeeperd/ |
D | gatekeeperd.cpp | 93 void store_sid(uint32_t userId, uint64_t sid) { in store_sid() argument 95 snprintf(filename, sizeof(filename), "%u", userId); in store_sid() 136 void maybe_store_sid(uint32_t userId, uint64_t sid) { in maybe_store_sid() argument 138 snprintf(filename, sizeof(filename), "%u", userId); in maybe_store_sid() 140 store_sid(userId, sid); in maybe_store_sid() 144 uint64_t read_sid(uint32_t userId) { in read_sid() argument 147 snprintf(filename, sizeof(filename), "%u", userId); in read_sid() 155 void clear_sid(uint32_t userId) { in clear_sid() argument 157 snprintf(filename, sizeof(filename), "%u", userId); in clear_sid() 160 store_sid(userId, 0); in clear_sid() [all …]
|
/system/vold/binder/android/os/ |
D | IVold.aidl | 33 void onUserAdded(int userId, int userSerial, int sharesStorageWithUserId); in onUserAdded() argument 34 void onUserRemoved(int userId); in onUserRemoved() argument 35 void onUserStarted(int userId); in onUserStarted() argument 36 void onUserStopped(int userId); in onUserStopped() argument 88 void createUserKey(int userId, int userSerial, boolean ephemeral); in createUserKey() argument 89 void destroyUserKey(int userId); in destroyUserKey() argument 91 void setUserKeyProtection(int userId, @utf8InCpp String secret); in setUserKeyProtection() argument 94 void unlockUserKey(int userId, int userSerial, @utf8InCpp String secret); in unlockUserKey() argument 95 void lockUserKey(int userId); in lockUserKey() argument 97 void prepareUserStorage(@nullable @utf8InCpp String uuid, int userId, int userSerial, in prepareUserStorage() argument [all …]
|
/system/security/keystore2/aidl/android/security/maintenance/ |
D | IKeystoreMaintenance.aidl | 40 void onUserAdded(in int userId); in onUserAdded() argument 52 void onUserRemoved(in int userId); in onUserRemoved() argument 67 void onUserPasswordChanged(in int userId, in @nullable byte[] password); in onUserPasswordChanged() argument 90 UserState getState(in int userId); in getState() argument
|
/system/security/keystore/ |
D | user_state.cpp | 38 UserState::UserState(uid_t userId) in UserState() argument 39 : mMasterKeyEntry(".masterkey", "user_" + std::to_string(userId), userId, /* masterkey */ true), in UserState() 40 mUserId(userId), mState(STATE_UNINITIALIZED) {} in UserState() 46 bool UserState::operator<(uid_t userId) const { in operator <() 47 return getUserId() < userId; in operator <() 50 bool operator<(uid_t userId, const UserState& rhs) { in operator <() argument 51 return userId < rhs.getUserId(); in operator <() 279 LockedUserState<UserState> UserStateDB::getUserState(uid_t userId) { in getUserState() argument 283 std::tie(it, inserted) = mMasterKeys.emplace(userId, userId); in getUserState() 290 ALOGE("User initialization failed for %u; subsequent operations will fail", userId); in getUserState() [all …]
|
D | keystore_keymaster_enforcement.h | 88 bool is_device_locked(int32_t userId) const override { in is_device_locked() argument 91 if (mIsDeviceLockedForUser.count(userId) == 0) return true; in is_device_locked() 92 return mIsDeviceLockedForUser.find(userId)->second; in is_device_locked() 95 void set_device_locked(bool isLocked, int32_t userId) { in set_device_locked() argument 97 mIsDeviceLockedForUser[userId] = isLocked; in set_device_locked()
|
D | user_state.h | 46 explicit UserState(uid_t userId); 73 bool operator<(uid_t userId) const; 99 bool operator<(uid_t userId, const UserState& rhs); 103 LockedUserState<UserState> getUserState(uid_t userId); 105 LockedUserState<const UserState> getUserState(uid_t userId) const;
|
/system/vold/ |
D | VolumeManager.cpp | 372 void VolumeManager::destroyEmulatedVolumesForUser(userid_t userId) { in destroyEmulatedVolumesForUser() argument 377 if (vol->getMountUserId() == userId) { in destroyEmulatedVolumesForUser() 393 if (vol->getMountUserId() == userId) { in destroyEmulatedVolumesForUser() 405 void VolumeManager::createEmulatedVolumesForUser(userid_t userId) { in createEmulatedVolumesForUser() argument 408 new android::vold::EmulatedVolume("/data/media", userId)); in createEmulatedVolumesForUser() 409 vol->setMountUserId(userId); in createEmulatedVolumesForUser() 422 userId)); in createEmulatedVolumesForUser() 423 evol->setMountUserId(userId); in createEmulatedVolumesForUser() 430 userid_t VolumeManager::getSharedStorageUser(userid_t userId) { in getSharedStorageUser() argument 431 if (mSharedStorageUser.find(userId) == mSharedStorageUser.end()) { in getSharedStorageUser() [all …]
|
D | VoldNativeService.h | 41 binder::Status onUserAdded(int32_t userId, int32_t userSerial, int32_t sharesStorageWithUserId); 42 binder::Status onUserRemoved(int32_t userId); 43 binder::Status onUserStarted(int32_t userId); 44 binder::Status onUserStopped(int32_t userId); 115 binder::Status createUserKey(int32_t userId, int32_t userSerial, bool ephemeral); 116 binder::Status destroyUserKey(int32_t userId); 118 binder::Status setUserKeyProtection(int32_t userId, const std::string& secret); 121 binder::Status unlockUserKey(int32_t userId, int32_t userSerial, const std::string& secret); 122 binder::Status lockUserKey(int32_t userId); 124 binder::Status prepareUserStorage(const std::optional<std::string>& uuid, int32_t userId, [all …]
|
D | VolumeManager.h | 107 userid_t getSharedStorageUser(userid_t userId); 111 int onUserAdded(userid_t userId, int userSerialNumber, userid_t cloneParentUserId); 112 int onUserRemoved(userid_t userId); 113 int onUserStarted(userid_t userId); 114 int onUserStopped(userid_t userId); 207 int linkPrimary(userid_t userId); 209 void createEmulatedVolumesForUser(userid_t userId); 210 void destroyEmulatedVolumesForUser(userid_t userId);
|
D | VoldNativeService.cpp | 185 binder::Status VoldNativeService::onUserAdded(int32_t userId, int32_t userSerial, in onUserAdded() argument 191 VolumeManager::Instance()->onUserAdded(userId, userSerial, sharesStorageWithUserId)); in onUserAdded() 194 binder::Status VoldNativeService::onUserRemoved(int32_t userId) { in onUserRemoved() argument 198 return translate(VolumeManager::Instance()->onUserRemoved(userId)); in onUserRemoved() 201 binder::Status VoldNativeService::onUserStarted(int32_t userId) { in onUserStarted() argument 205 return translate(VolumeManager::Instance()->onUserStarted(userId)); in onUserStarted() 208 binder::Status VoldNativeService::onUserStopped(int32_t userId) { in onUserStopped() argument 212 return translate(VolumeManager::Instance()->onUserStopped(userId)); in onUserStopped() 600 binder::Status VoldNativeService::createUserKey(int32_t userId, int32_t userSerial, in createUserKey() argument 605 return translateBool(fscrypt_vold_create_user_key(userId, userSerial, ephemeral)); in createUserKey() [all …]
|
D | Utils.cpp | 1107 std::string BuildDataSystemLegacyPath(userid_t userId) { in BuildDataSystemLegacyPath() argument 1108 return StringPrintf("%s/system/users/%u", BuildDataPath("").c_str(), userId); in BuildDataSystemLegacyPath() 1111 std::string BuildDataSystemCePath(userid_t userId) { in BuildDataSystemCePath() argument 1112 return StringPrintf("%s/system_ce/%u", BuildDataPath("").c_str(), userId); in BuildDataSystemCePath() 1115 std::string BuildDataSystemDePath(userid_t userId) { in BuildDataSystemDePath() argument 1116 return StringPrintf("%s/system_de/%u", BuildDataPath("").c_str(), userId); in BuildDataSystemDePath() 1119 std::string BuildDataMiscLegacyPath(userid_t userId) { in BuildDataMiscLegacyPath() argument 1120 return StringPrintf("%s/misc/user/%u", BuildDataPath("").c_str(), userId); in BuildDataMiscLegacyPath() 1124 std::string BuildDataProfilesDePath(userid_t userId) { in BuildDataProfilesDePath() argument 1125 return StringPrintf("%s/misc/profiles/cur/%u", BuildDataPath("").c_str(), userId); in BuildDataProfilesDePath() [all …]
|
/system/core/run-as/ |
D | run-as.cpp | 186 int userId = 0; in main() local 188 userId = atoi(argv[3]); in main() 189 if (userId < 0) error(1, 0, "negative user id: %d", userId); in main() 204 if (userId > 0) { in main() 206 if (asprintf(&info.data_dir, "/data/user/%d/%s", userId, pkgname) == -1) { in main() 217 if ((UID_MAX - info.uid) / AID_USER_OFFSET < (uid_t)userId) { in main() 218 error(1, 0, "user id too big: %d", userId); in main() 222 uid_t userAppId = (AID_USER_OFFSET * userId) + info.uid; in main()
|
/system/core/storaged/binder/android/os/ |
D | IStoraged.aidl | 21 void onUserStarted(int userId); in onUserStarted() argument 22 void onUserStopped(int userId); in onUserStopped() argument
|
/system/core/storaged/include/ |
D | storaged_service.h | 40 binder::Status onUserStarted(int32_t userId); 41 binder::Status onUserStopped(int32_t userId);
|
/system/security/keystore/include/keystore/ |
D | keystore_hidl_support.h | 92 static_assert(1 /* version size */ + sizeof(token.challenge) + sizeof(token.userId) + in authToken2HidlVec() 103 pos = copy_bytes_to_iterator(token.userId, pos); in authToken2HidlVec() 124 static_assert(1 /* version size */ + sizeof(token.challenge) + sizeof(token.userId) + in hidlVec2Km3AuthToken() 135 pos = copy_bytes_from_iterator(&token.userId, pos); in hidlVec2Km3AuthToken()
|
/system/hardware/interfaces/media/aidl/android/media/soundtrigger/ |
D | ConfidenceLevel.aidl | 28 int userId;
|
/system/hardware/interfaces/media/aidl_api/android.media.soundtrigger.types/1/android/media/soundtrigger/ |
D | ConfidenceLevel.aidl | 38 int userId;
|
/system/hardware/interfaces/media/aidl_api/android.media.soundtrigger.types/current/android/media/soundtrigger/ |
D | ConfidenceLevel.aidl | 38 int userId;
|
/system/core/storaged/ |
D | storaged_service.cpp | 167 binder::Status StoragedService::onUserStarted(int32_t userId) { in onUserStarted() argument 168 storaged_sp->add_user_ce(userId); in onUserStarted() 172 binder::Status StoragedService::onUserStopped(int32_t userId) { in onUserStopped() argument 173 storaged_sp->remove_user_ce(userId); in onUserStopped()
|
/system/security/keystore2/aidl/android/security/authorization/ |
D | IKeystoreAuthorization.aidl | 76 void onLockScreenEvent(in LockScreenEvent lockScreenEvent, in int userId, in onLockScreenEvent() argument
|
/system/sepolicy/prebuilts/api/34.0/private/ |
D | vold.te | 71 # Allow vold to create and delete per-user directories like /data/user/$userId. 83 # /data/user/$userId. This is very important, as these directories need to be
|
/system/keymaster/ng/include/ |
D | keystore_hidl_support.h | 105 static_assert(1 /* version size */ + sizeof(token.challenge) + sizeof(token.userId) + in authToken2HidlVec() 116 pos = copy_bytes_to_iterator(token.userId, pos); in authToken2HidlVec()
|