Lines Matching refs:vold

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