Lines Matching refs:VolumeMethod
32 enum class VolumeMethod { kFailed, kCrypt, kDefaultKey }; enum
34 static VolumeMethod lookup_volume_method() { in lookup_volume_method()
39 return first_api_level > __ANDROID_API_Q__ ? VolumeMethod::kDefaultKey in lookup_volume_method()
40 : VolumeMethod::kCrypt; in lookup_volume_method()
42 return VolumeMethod::kDefaultKey; in lookup_volume_method()
48 return VolumeMethod::kFailed; in lookup_volume_method()
50 return VolumeMethod::kCrypt; in lookup_volume_method()
53 return VolumeMethod::kFailed; in lookup_volume_method()
57 static VolumeMethod volume_method() { in volume_method()
58 static VolumeMethod method = lookup_volume_method(); in volume_method()
65 case VolumeMethod::kFailed: in generate_volume_key()
68 case VolumeMethod::kCrypt: in generate_volume_key()
71 case VolumeMethod::kDefaultKey: in generate_volume_key()
82 case VolumeMethod::kFailed: in setup_ext_volume()
85 case VolumeMethod::kCrypt: in setup_ext_volume()
88 case VolumeMethod::kDefaultKey: in setup_ext_volume()