Lines Matching refs:message
54 std::string* message) { in GetVersion() argument
55 *message = kFastbootProtocolVersion; in GetVersion()
60 std::string* message) { in GetBootloaderVersion() argument
61 *message = android::base::GetProperty("ro.bootloader", ""); in GetBootloaderVersion()
66 std::string* message) { in GetBasebandVersion() argument
67 *message = android::base::GetProperty("ro.build.expect.baseband", ""); in GetBasebandVersion()
72 std::string* message) { in GetOsVersion() argument
73 *message = android::base::GetProperty("ro.build.version.release", ""); in GetOsVersion()
78 std::string* message) { in GetVndkVersion() argument
79 *message = android::base::GetProperty("ro.vndk.version", ""); in GetVndkVersion()
84 std::string* message) { in GetProduct() argument
85 *message = android::base::GetProperty("ro.product.device", ""); in GetProduct()
90 std::string* message) { in GetSerial() argument
91 *message = android::base::GetProperty("ro.serialno", ""); in GetSerial()
96 std::string* message) { in GetSecure() argument
97 *message = android::base::GetBoolProperty("ro.secure", "") ? "yes" : "no"; in GetSecure()
102 std::string* message) { in GetVariant() argument
105 *message = "Fastboot HAL not found"; in GetVariant()
111 *message = device_variant; in GetVariant()
115 *message = "Unable to get device variant"; in GetVariant()
144 std::string* message) { in GetBatterySoCOk() argument
147 *message = "Unable to read battery voltage"; in GetBatterySoCOk()
153 *message = "Fastboot HAL not found"; in GetBatterySoCOk()
160 *message = battery_voltage >= voltage_threshold ? "yes" : "no"; in GetBatterySoCOk()
165 *message = "Unable to get battery voltage flashing threshold"; in GetBatterySoCOk()
173 std::string* message) { in GetOffModeChargeState() argument
176 *message = "Fastboot HAL not found"; in GetOffModeChargeState()
183 *message = off_mode_charging_state ? "1" : "0"; in GetOffModeChargeState()
187 *message = "Unable to get off mode charge state"; in GetOffModeChargeState()
195 std::string* message) { in GetBatteryVoltage() argument
198 *message = std::to_string(battery_voltage); in GetBatteryVoltage()
201 *message = "Unable to get battery voltage"; in GetBatteryVoltage()
206 std::string* message) { in GetCurrentSlot() argument
208 *message = suffix.size() == 2 ? suffix.substr(1) : suffix; in GetCurrentSlot()
213 std::string* message) { in GetSlotCount() argument
216 *message = "0"; in GetSlotCount()
218 *message = std::to_string(boot_control_hal->getNumberSlots()); in GetSlotCount()
224 std::string* message) { in GetSlotSuccessful() argument
226 *message = "Missing argument"; in GetSlotSuccessful()
231 *message = "Invalid slot"; in GetSlotSuccessful()
236 *message = "Device has no slots"; in GetSlotSuccessful()
240 *message = "no"; in GetSlotSuccessful()
242 *message = "yes"; in GetSlotSuccessful()
248 std::string* message) { in GetSlotUnbootable() argument
250 *message = "Missing argument"; in GetSlotUnbootable()
255 *message = "Invalid slot"; in GetSlotUnbootable()
260 *message = "Device has no slots"; in GetSlotUnbootable()
264 *message = "yes"; in GetSlotUnbootable()
266 *message = "no"; in GetSlotUnbootable()
272 std::string* message) { in GetMaxDownloadSize() argument
273 *message = android::base::StringPrintf("0x%X", kMaxDownloadSizeDefault); in GetMaxDownloadSize()
278 std::string* message) { in GetUnlocked() argument
279 *message = GetDeviceLockStatus() ? "no" : "yes"; in GetUnlocked()
284 std::string* message) { in GetHasSlot() argument
286 *message = "Missing argument"; in GetHasSlot()
291 *message = "no"; in GetHasSlot()
296 *message = "yes"; in GetHasSlot()
298 *message = "no"; in GetHasSlot()
304 std::string* message) { in GetPartitionSize() argument
306 *message = "Missing argument"; in GetPartitionSize()
313 *message = "0x0"; in GetPartitionSize()
319 *message = "Could not open partition"; in GetPartitionSize()
323 *message = android::base::StringPrintf("0x%" PRIX64, size); in GetPartitionSize()
328 std::string* message) { in GetPartitionType() argument
330 *message = "Missing argument"; in GetPartitionType()
336 *message = "Invalid partition"; in GetPartitionType()
342 *message = "Fastboot HAL not found"; in GetPartitionType()
354 *message = "Unable to retrieve partition type"; in GetPartitionType()
358 *message = "raw"; in GetPartitionType()
361 *message = "ext4"; in GetPartitionType()
364 *message = "f2fs"; in GetPartitionType()
367 *message = "Unknown file system type"; in GetPartitionType()
375 std::string* message) { in GetPartitionIsLogical() argument
377 *message = "Missing argument"; in GetPartitionIsLogical()
385 *message = "yes"; in GetPartitionIsLogical()
389 *message = "no"; in GetPartitionIsLogical()
392 *message = "Partition not found"; in GetPartitionIsLogical()
397 std::string* message) { in GetIsUserspace() argument
398 *message = "yes"; in GetIsUserspace()
437 std::string* message) { in GetHardwareRevision() argument
438 *message = android::base::GetProperty("ro.revision", ""); in GetHardwareRevision()
443 std::string* message) { in GetSuperPartitionName() argument
445 *message = fs_mgr_get_super_partition_name(slot_number); in GetSuperPartitionName()
450 std::string* message) { in GetSnapshotUpdateStatus() argument
455 *message = "not supported"; in GetSnapshotUpdateStatus()
462 *message = "snapshotted"; in GetSnapshotUpdateStatus()
465 *message = "merging"; in GetSnapshotUpdateStatus()
468 *message = "none"; in GetSnapshotUpdateStatus()
475 std::string* message) { in GetCpuAbi() argument
476 *message = android::base::GetProperty("ro.product.cpu.abi", ""); in GetCpuAbi()
481 std::string* message) { in GetSystemFingerprint() argument
482 *message = android::base::GetProperty("ro.system.build.fingerprint", ""); in GetSystemFingerprint()
483 if (message->empty()) { in GetSystemFingerprint()
484 *message = android::base::GetProperty("ro.build.fingerprint", ""); in GetSystemFingerprint()
490 std::string* message) { in GetVendorFingerprint() argument
491 *message = android::base::GetProperty("ro.vendor.build.fingerprint", ""); in GetVendorFingerprint()
496 std::string* message) { in GetDynamicPartition() argument
497 *message = android::base::GetProperty("ro.boot.dynamic_partitions", ""); in GetDynamicPartition()
502 std::string* message) { in GetFirstApiLevel() argument
503 *message = android::base::GetProperty("ro.product.first_api_level", ""); in GetFirstApiLevel()
508 std::string* message) { in GetSecurityPatchLevel() argument
509 *message = android::base::GetProperty("ro.build.version.security_patch", ""); in GetSecurityPatchLevel()
514 std::string* message) { in GetTrebleEnabled() argument
515 *message = android::base::GetProperty("ro.treble.enabled", ""); in GetTrebleEnabled()
520 std::string* message) { in GetMaxFetchSize() argument
522 *message = "fetch not supported on user builds"; in GetMaxFetchSize()
525 *message = android::base::StringPrintf("0x%X", kMaxFetchSizeDefault); in GetMaxFetchSize()