/bootable/recovery/updater/ |
D | build_info.cpp | 84 std::string BuildInfo::GetProperty(const std::string_view key, in GetProperty() argument 97 if (ro_product_props.find(key) != ro_product_props.end()) { in GetProperty() 98 std::string_view key_suffix(key); in GetProperty() 106 LOG(WARNING) << "Failed to find property: " << key; in GetProperty() 108 } else if (key == "ro.build.fingerprint") { in GetProperty() 122 auto entry = build_props_.find(key); in GetProperty() 124 LOG(WARNING) << "Failed to find property: " << key; in GetProperty()
|
D | target_files.cpp | 63 std::string key = line.substr(0, pos); in ParsePropertyFile() local 65 LOG(INFO) << key << ": " << value; in ParsePropertyFile() 66 props_map->emplace(key, value); in ParsePropertyFile() 220 for (const auto& [key, value] : props) { in GetBuildProps() 221 if (auto it = props_map->find(key); it != props_map->end() && it->second != value) { in GetBuildProps() 222 LOG(WARNING) << "Property " << key << " has different values in property files, we got " in GetBuildProps() 225 props_map->emplace(key, value); in GetBuildProps()
|
D | simulator_runtime.cpp | 38 std::string SimulatorRuntime::GetProperty(const std::string_view key, in GetProperty() argument 40 return source_->GetProperty(key, default_value); in GetProperty()
|
D | updater_runtime.cpp | 38 std::string UpdaterRuntime::GetProperty(const std::string_view key, in GetProperty() argument 40 return android::base::GetProperty(std::string(key), std::string(default_value)); in GetProperty()
|
D | install.cpp | 534 std::string key; in GetPropFn() local 535 if (!Evaluate(state, argv[0], &key)) { in GetPropFn() 540 std::string value = updater_runtime->GetProperty(key, ""); in GetPropFn() 562 const std::string& key = args[1]; in FileGetPropFn() local 588 if (key != str) continue; in FileGetPropFn()
|
/bootable/recovery/recovery_ui/ |
D | stub_ui.cpp | 28 int key = WaitKey(); in ShowMenu() local 30 if (key == static_cast<int>(KeyError::INTERRUPTED) || in ShowMenu() 31 key == static_cast<int>(KeyError::TIMED_OUT)) { in ShowMenu() 32 return static_cast<size_t>(key); in ShowMenu()
|
D | ui.cpp | 484 int key = static_cast<int>(KeyError::TIMED_OUT); in WaitKey() local 486 key = key_queue[0]; in WaitKey() 489 return key; in WaitKey() 516 bool RecoveryUI::IsKeyPressed(int key) { in IsKeyPressed() argument 518 int pressed = key_pressed[key]; in IsKeyPressed() 545 RecoveryUI::KeyAction RecoveryUI::CheckKey(int key, bool is_long_press) { in CheckKey() argument 553 if ((key == KEY_VOLUMEUP || key == KEY_UP) && IsKeyPressed(KEY_POWER)) { in CheckKey() 571 if (key == KEY_POWER) { in CheckKey()
|
D | screen_ui.cpp | 587 int key = WaitKey(); in CheckBackgroundTextImages() local 588 if (key == static_cast<int>(KeyError::INTERRUPTED)) break; in CheckBackgroundTextImages() 589 if (key == KEY_POWER || key == KEY_ENTER) { in CheckBackgroundTextImages() 591 } else if (key == KEY_UP || key == KEY_VOLUMEUP) { in CheckBackgroundTextImages() 594 } else if (key == KEY_DOWN || key == KEY_VOLUMEDOWN) { in CheckBackgroundTextImages() 1122 int key = WaitKey(); in ShowFile() local 1123 if (key == static_cast<int>(KeyError::INTERRUPTED)) return; in ShowFile() 1124 if (key == KEY_POWER || key == KEY_ENTER) { in ShowFile() 1126 } else if (key == KEY_UP || key == KEY_VOLUMEUP) { in ShowFile() 1240 int key = WaitKey(); in ShowMenu() local [all …]
|
D | device.cpp | 75 int Device::HandleMenuKey(int key, bool visible) { in HandleMenuKey() argument 80 switch (key) { in HandleMenuKey()
|
/bootable/recovery/install/ |
D | verifier.cpp | 199 for (const auto& key : keys) { in verify_file() local 200 switch (key.hash_len) { in verify_file() 261 for (const auto& key : keys) { in verify_file() local 264 switch (key.hash_len) { in verify_file() 279 if (key.key_type == Certificate::KEY_TYPE_RSA) { in verify_file() 280 if (!RSA_verify(hash_nid, hash, key.hash_len, sig_der.data(), sig_der.size(), in verify_file() 281 key.rsa.get())) { in verify_file() 288 } else if (key.key_type == Certificate::KEY_TYPE_EC && key.hash_len == SHA256_DIGEST_LENGTH) { in verify_file() 289 if (!ECDSA_verify(0, hash, key.hash_len, sig_der.data(), sig_der.size(), key.ec.get())) { in verify_file() 297 LOG(INFO) << "Unknown key type " << key.key_type; in verify_file()
|
D | install.cpp | 109 const std::string& key) { in get_value() argument 110 const auto& it = metadata.find(key); in get_value()
|
/bootable/recovery/minadbd/ |
D | minadbd_services.cpp | 180 auto query_prop = [](const std::string& key) { in RescueGetpropHostService() argument 181 if (key == kRescueBatteryLevelProp) { in RescueGetpropHostService() 185 return android::base::GetProperty(key, ""); in RescueGetpropHostService() 190 for (const auto& key : kGetpropAllowedProps) { in RescueGetpropHostService() local 191 auto value = query_prop(key); in RescueGetpropHostService() 195 result += "[" + key + "]: [" + value + "]\n"; in RescueGetpropHostService()
|
/bootable/recovery/recovery_ui/include/recovery_ui/ |
D | ui.h | 116 virtual bool IsKeyPressed(int key); 135 virtual KeyAction CheckKey(int key, bool is_long_press); 140 virtual void KeyLongPress(int key);
|
D | device.h | 113 virtual int HandleMenuKey(int key, bool visible);
|
/bootable/recovery/minui/ |
D | resources.cpp | 236 if (text[i].key && strcmp(text[i].key, "Frames") == 0 && text[i].text) { in res_create_multi_display_surface() 238 } else if (text[i].key && strcmp(text[i].key, "FPS") == 0 && text[i].text) { in res_create_multi_display_surface()
|
/bootable/recovery/ |
D | README.md | 127 key. The public key, defined via `PRODUCT_ADB_KEYS`, will be copied to `/adb_keys`. When starting 128 the host-side `adbd`, make sure the filename (or the directory) of the matching private key has been 131 $ export ADB_VENDOR_KEYS=/path/to/adb/private/key
|
D | recovery.cpp | 528 static void print_property(const char* key, const char* name, void* /* cookie */) { in print_property() argument 529 printf("%s=%s\n", key, name); in print_property()
|
/bootable/recovery/updater/include/updater/ |
D | build_info.h | 49 std::string GetProperty(const std::string_view key, const std::string_view default_value) const;
|
D | updater_runtime.h | 38 std::string GetProperty(const std::string_view key,
|
D | simulator_runtime.h | 37 std::string GetProperty(const std::string_view key,
|
/bootable/recovery/edify/include/edify/ |
D | updater_runtime_interface.h | 36 virtual std::string GetProperty(const std::string_view key,
|
/bootable/recovery/tests/unit/host/ |
D | update_simulator_test.cpp | 232 for (const auto& [key, value] : expected_result) { in TEST_F() 233 ASSERT_EQ(value, build_info.GetProperty(key, "")); in TEST_F()
|
/bootable/recovery/tests/unit/ |
D | screen_ui_test.cpp | 308 int KeyHandler(int key, bool visible) const; 326 int TestableScreenRecoveryUI::KeyHandler(int key, bool) const { in KeyHandler() argument 327 KeyCode key_code = static_cast<KeyCode>(key); in KeyHandler()
|
/bootable/recovery/tests/testdata/ |
D | recovery_body | 6037 …@+keycreate…
|