Lines Matching refs:vold

56 using android::vold::kEmptyAuthentication;
67 const std::string user_key_dir = std::string() + DATA_MNT_POINT + "/misc/vold/user_keys";
240 android::vold::destroyKey(other_path);
253 const android::vold::KeyAuthentication& auth,
259 if (android::vold::retrieveKey(ce_key_path, auth, ce_key)) {
270 const android::vold::KeyAuthentication& auth) {
301 if (android::vold::ReadRandomBytes(EXT4_AES_256_XTS_KEY_SIZE, *key) != 0) {
316 const android::vold::KeyAuthentication& auth, const std::string& key) {
322 android::vold::destroyKey(tmp_path); // May be partially created so ignore errors
324 if (!android::vold::storeKey(tmp_path, auth, key)) return false;
415 if (!android::vold::retrieveKey(key_path, kEmptyAuthentication, &key)) return false;
437 if (!android::vold::retrieveKey(device_key_path,
543 success &= android::vold::destroyKey(path);
545 success &= android::vold::destroyKey(get_de_key_path(user_id));
585 if (android::vold::HexToStr(hex, *result) != 0) {
602 : android::vold::KeyAuthentication(token, secret);
643 android::vold::KeyAuthentication auth(token, secret);
652 if (!emulated_unlock(android::vold::BuildDataSystemCePath(user_id), 0771) ||
653 !emulated_unlock(android::vold::BuildDataMiscCePath(user_id), 01771) ||
654 !emulated_unlock(android::vold::BuildDataMediaCePath(nullptr, user_id), 0770) ||
655 !emulated_unlock(android::vold::BuildDataUserCePath(nullptr, user_id), 0771)) {
669 if (!emulated_lock(android::vold::BuildDataSystemCePath(user_id)) ||
670 !emulated_lock(android::vold::BuildDataMiscCePath(user_id)) ||
671 !emulated_lock(android::vold::BuildDataMediaCePath(nullptr, user_id)) ||
672 !emulated_lock(android::vold::BuildDataUserCePath(nullptr, user_id))) {
688 auto system_legacy_path = android::vold::BuildDataSystemLegacyPath(user_id);
689 auto misc_legacy_path = android::vold::BuildDataMiscLegacyPath(user_id);
690 auto profiles_de_path = android::vold::BuildDataProfilesDePath(user_id);
691 auto foreign_de_path = android::vold::BuildDataProfilesForeignDexDePath(user_id);
694 auto system_de_path = android::vold::BuildDataSystemDePath(user_id);
695 auto misc_de_path = android::vold::BuildDataMiscDePath(user_id);
696 auto user_de_path = android::vold::BuildDataUserDePath(volume_uuid, user_id);
722 auto system_ce_path = android::vold::BuildDataSystemCePath(user_id);
723 auto misc_ce_path = android::vold::BuildDataMiscCePath(user_id);
724 auto media_ce_path = android::vold::BuildDataMediaCePath(volume_uuid, user_id);
725 auto user_ce_path = android::vold::BuildDataUserCePath(volume_uuid, user_id);
753 auto system_legacy_path = android::vold::BuildDataSystemLegacyPath(user_id);
754 auto misc_legacy_path = android::vold::BuildDataMiscLegacyPath(user_id);
755 auto profiles_de_path = android::vold::BuildDataProfilesDePath(user_id);
756 auto foreign_de_path = android::vold::BuildDataProfilesForeignDexDePath(user_id);
759 auto system_de_path = android::vold::BuildDataSystemDePath(user_id);
760 auto misc_de_path = android::vold::BuildDataMiscDePath(user_id);
761 auto user_de_path = android::vold::BuildDataUserDePath(volume_uuid, user_id);
778 auto system_ce_path = android::vold::BuildDataSystemCePath(user_id);
779 auto misc_ce_path = android::vold::BuildDataMiscCePath(user_id);
780 auto media_ce_path = android::vold::BuildDataMediaCePath(volume_uuid, user_id);
781 auto user_ce_path = android::vold::BuildDataUserCePath(volume_uuid, user_id);