Home
last modified time | relevance | path

Searched refs:userId (Results 1 – 25 of 34) sorted by relevance

12

/system/vold/model/
DEmulatedVolume.cpp46 EmulatedVolume::EmulatedVolume(const std::string& rawPath, int userId) in EmulatedVolume() argument
48 setId(StringPrintf("emulated;%u", userId)); in EmulatedVolume()
57 int userId) in EmulatedVolume() argument
59 setId(StringPrintf("emulated:%u,%u;%u", major(device), minor(device), userId)); in EmulatedVolume()
95 int userId = getMountUserId(); in mountFuseBindMounts() local
113 androidSource = StringPrintf("/mnt/runtime/default/%s/%d/Android", label.c_str(), userId); in mountFuseBindMounts()
115 androidSource = StringPrintf("/%s/%d/Android", mRawPath.c_str(), userId); in mountFuseBindMounts()
123 StringPrintf("/mnt/user/%d/%s/%d/Android/data", userId, label.c_str(), userId)); in mountFuseBindMounts()
131 StringPrintf("/mnt/user/%d/%s/%d/Android/obb", userId, label.c_str(), userId)); in mountFuseBindMounts()
143 label.c_str(), userId)); in mountFuseBindMounts()
[all …]
DEmulatedVolume.h40 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/
DIGateKeeperService.aidl42 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/
Dgatekeeperd.cpp79 void store_sid(uint32_t userId, uint64_t sid) { in store_sid() argument
81 snprintf(filename, sizeof(filename), "%u", userId); in store_sid()
120 void maybe_store_sid(uint32_t userId, uint64_t sid) { in maybe_store_sid() argument
122 snprintf(filename, sizeof(filename), "%u", userId); in maybe_store_sid()
124 store_sid(userId, sid); in maybe_store_sid()
128 uint64_t read_sid(uint32_t userId) { in read_sid() argument
131 snprintf(filename, sizeof(filename), "%u", userId); in read_sid()
139 void clear_sid(uint32_t userId) { in clear_sid() argument
141 snprintf(filename, sizeof(filename), "%u", userId); in clear_sid()
144 store_sid(userId, 0); in clear_sid()
[all …]
/system/vold/binder/android/os/
DIVold.aidl33 void onUserAdded(int userId, int userSerial); 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
96 void createUserKey(int userId, int userSerial, boolean ephemeral); in createUserKey() argument
97 void destroyUserKey(int userId); in destroyUserKey() argument
99 void addUserKeyAuth(int userId, int userSerial, @utf8InCpp String token, in addUserKeyAuth() argument
101 void clearUserKeyAuth(int userId, int userSerial, @utf8InCpp String token, in clearUserKeyAuth() argument
103 void fixateNewestUserKeyAuth(int userId); in fixateNewestUserKeyAuth() argument
106 void unlockUserKey(int userId, int userSerial, @utf8InCpp String token, in unlockUserKey() argument
[all …]
DIVoldListener.aidl28 int type, @utf8InCpp String diskId, @utf8InCpp String partGuid, int userId); in onVolumeCreated() argument
/system/security/keystore2/aidl/android/security/maintenance/
DIKeystoreMaintenance.aidl40 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/
Dkeystore_keymaster_enforcement.h88 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()
Duser_state.cpp38 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 …]
Duser_state.h46 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/core/run-as/
Drun-as.cpp186 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/vold/
DVolumeManager.cpp372 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 int VolumeManager::onUserAdded(userid_t userId, int userSerialNumber) { in onUserAdded() argument
431 LOG(INFO) << "onUserAdded: " << userId; in onUserAdded()
[all …]
DVoldNativeService.h41 binder::Status onUserAdded(int32_t userId, int32_t userSerial);
42 binder::Status onUserRemoved(int32_t userId);
43 binder::Status onUserStarted(int32_t userId);
44 binder::Status onUserStopped(int32_t userId);
121 binder::Status createUserKey(int32_t userId, int32_t userSerial, bool ephemeral);
122 binder::Status destroyUserKey(int32_t userId);
124 binder::Status addUserKeyAuth(int32_t userId, int32_t userSerial, const std::string& token,
126 binder::Status clearUserKeyAuth(int32_t userId, int32_t userSerial, const std::string& token,
128 binder::Status fixateNewestUserKeyAuth(int32_t userId);
131 binder::Status unlockUserKey(int32_t userId, int32_t userSerial, const std::string& token,
[all …]
DVoldNativeService.cpp190 binder::Status VoldNativeService::onUserAdded(int32_t userId, int32_t userSerial) { in onUserAdded() argument
194 return translate(VolumeManager::Instance()->onUserAdded(userId, userSerial)); in onUserAdded()
197 binder::Status VoldNativeService::onUserRemoved(int32_t userId) { in onUserRemoved() argument
201 return translate(VolumeManager::Instance()->onUserRemoved(userId)); in onUserRemoved()
204 binder::Status VoldNativeService::onUserStarted(int32_t userId) { in onUserStarted() argument
208 return translate(VolumeManager::Instance()->onUserStarted(userId)); in onUserStarted()
211 binder::Status VoldNativeService::onUserStopped(int32_t userId) { in onUserStopped() argument
215 return translate(VolumeManager::Instance()->onUserStopped(userId)); in onUserStopped()
714 binder::Status VoldNativeService::createUserKey(int32_t userId, int32_t userSerial, in createUserKey() argument
719 return translateBool(fscrypt_vold_create_user_key(userId, userSerial, ephemeral)); in createUserKey()
[all …]
DVolumeManager.h109 int onUserAdded(userid_t userId, int userSerialNumber);
110 int onUserRemoved(userid_t userId);
111 int onUserStarted(userid_t userId);
112 int onUserStopped(userid_t userId);
206 int linkPrimary(userid_t userId);
208 void createEmulatedVolumesForUser(userid_t userId);
209 void destroyEmulatedVolumesForUser(userid_t userId);
DUtils.cpp1055 std::string BuildDataSystemLegacyPath(userid_t userId) { in BuildDataSystemLegacyPath() argument
1056 return StringPrintf("%s/system/users/%u", BuildDataPath("").c_str(), userId); in BuildDataSystemLegacyPath()
1059 std::string BuildDataSystemCePath(userid_t userId) { in BuildDataSystemCePath() argument
1060 return StringPrintf("%s/system_ce/%u", BuildDataPath("").c_str(), userId); in BuildDataSystemCePath()
1063 std::string BuildDataSystemDePath(userid_t userId) { in BuildDataSystemDePath() argument
1064 return StringPrintf("%s/system_de/%u", BuildDataPath("").c_str(), userId); in BuildDataSystemDePath()
1067 std::string BuildDataMiscLegacyPath(userid_t userId) { in BuildDataMiscLegacyPath() argument
1068 return StringPrintf("%s/misc/user/%u", BuildDataPath("").c_str(), userId); in BuildDataMiscLegacyPath()
1071 std::string BuildDataMiscCePath(userid_t userId) { in BuildDataMiscCePath() argument
1072 return StringPrintf("%s/misc_ce/%u", BuildDataPath("").c_str(), userId); in BuildDataMiscCePath()
[all …]
/system/core/storaged/binder/android/os/
DIStoraged.aidl21 void onUserStarted(int userId); in onUserStarted() argument
22 void onUserStopped(int userId); in onUserStopped() argument
/system/core/storaged/include/
Dstoraged_service.h40 binder::Status onUserStarted(int32_t userId);
41 binder::Status onUserStopped(int32_t userId);
/system/security/keystore/include/keystore/
Dkeystore_hidl_support.h92 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/core/storaged/
Dstoraged_service.cpp167 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/
DIKeystoreAuthorization.aidl81 void onLockScreenEvent(in LockScreenEvent lockScreenEvent, in int userId, in onLockScreenEvent() argument
/system/keymaster/ng/
DKeyMintAidlUtils.cpp28 static_assert(1 /* version size */ + sizeof(token.challenge) + sizeof(token.userId) + in authToken2AidlVec()
42 pos = copy_bytes_to_iterator(token.userId, pos); in authToken2AidlVec()
/system/keymaster/ng/include/
Dkeystore_hidl_support.h105 static_assert(1 /* version size */ + sizeof(token.challenge) + sizeof(token.userId) + in authToken2HidlVec()
116 pos = copy_bytes_to_iterator(token.userId, pos); in authToken2HidlVec()
/system/security/keystore/tests/
Dauth_token_table_test.cpp68 token.userId = rsid; in make_token()
105 EXPECT_EQ(1U, found.userId); in TEST()
111 EXPECT_EQ(1U, found.userId); in TEST()
117 EXPECT_EQ(3U, found.userId); in TEST()
123 EXPECT_EQ(3U, found.userId); in TEST()
/system/security/keystore2/src/database/
Dperboot.rs38 user_id: tok.userId, in from_auth_token()

12