Home
last modified time | relevance | path

Searched refs:empty (Results 1 – 25 of 55) sorted by relevance

123

/bootable/recovery/bootloader_message/
Dmisctrl_main.cpp65 bool empty; in check_reserved_space() local
67 bool success = CheckReservedSystemSpaceEmpty(&empty, &err); in check_reserved_space()
72 LOG(INFO) << "System reserved space empty? " << empty; in check_reserved_space()
74 if (!err.empty()) { in check_reserved_space()
78 return empty ? 0 : 1; in check_reserved_space()
Dbootloader_message.cpp51 if (g_misc_device_for_test.has_value() && !g_misc_device_for_test->empty()) { in get_misc_blk_device()
144 if (misc_blk_device.empty()) return ""; in get_bootloader_message_blk_device()
157 if (misc_blk_device.empty()) { in read_bootloader_message()
171 if (misc_blk_device.empty()) { in write_bootloader_message()
245 if (misc_blk_device.empty()) { in read_wipe_package()
255 if (misc_blk_device.empty()) { in write_wipe_package()
282 if (misc_blk_device.empty()) { in ReadMiscPartitionSystemSpace()
295 if (misc_blk_device.empty()) { in WriteMiscPartitionSystemSpace()
342 bool CheckReservedSystemSpaceEmpty(bool* empty, std::string* err) { in CheckReservedSystemSpaceEmpty() argument
350 *empty = space[0] == 0 && 0 == memcmp(space, space + 1, kReservedSize - 1); in CheckReservedSystemSpaceEmpty()
[all …]
/bootable/deprecated-ota/updater/
Dupdate_simulator_main.cpp103 if (source_target_file.empty() || package_name.empty()) { in main()
114 if (!skip_function_file.empty()) { in main()
123 if (line.empty() || android::base::StartsWith(line, "#")) { in main()
140 if (work_dir.empty()) { in main()
150 if (!oem_settings.empty()) { in main()
Dinstall.cpp74 if (name.empty()) { in UpdateBlockDeviceNameForPartition()
128 !block_device_name.empty()) { in PackageExtractFileFn()
307 if (fs_type.empty()) { in MountFn()
310 if (partition_type.empty()) { in MountFn()
314 if (location.empty()) { in MountFn()
317 if (mount_point.empty()) { in MountFn()
344 if (mount_point.empty()) { in IsMountedFn()
366 if (mount_point.empty()) { in UnmountFn()
408 if (fs_type.empty()) { in FormatFn()
411 if (partition_type.empty()) { in FormatFn()
[all …]
Dupdater.cpp85 if (result_.empty() && state.cause_code != kNoCause) { in RunUpdate()
110 if (!line.empty()) { in UiPrint()
127 if (state->errmsg.empty()) { in ParseAndReportErrorCode()
136 if (!line.empty() && line[0] == 'E') { in ParseAndReportErrorCode()
Dupdater_runtime_dynamic_partitions.cpp107 CHECK(!tokens.empty()); in ExpectArgSize()
116 CHECK(!tokens.empty()); in op()
271 if (!partition_names.empty()) { in PerformOpRemoveGroup()
327 if (op_and_args.empty()) continue; in UpdateDynamicPartitions()
Dcommands.cpp294 if (hash_algorithm.empty() || salt_hex.empty() || root_hash.empty()) { in Parse()
398 if (!source.stashes_.empty()) { in operator <<()
439 if (line.empty()) continue; in Parse()
Ddynamic_partitions.cpp69 if (args.empty()) return StringValue(""); in UnmapPartitionFn()
79 if (args.empty()) return StringValue(""); in MapPartitionFn()
Dblockimg.cpp675 if (base.empty()) { in GetStashFileName()
679 if (id.empty() && postfix.empty()) { in GetStashFileName()
689 if (dirname.empty()) return; in EnumerateStash()
711 if (fn.empty()) return; in DeleteFile()
721 if (base.empty()) return; in DeleteStash()
811 if (base.empty()) { in WriteStash()
930 if (fn.empty()) return; in CreateStash()
952 if (base.empty() || id.empty()) { in FreeStash()
1203 if (!params.freestash.empty()) { in PerformCommandMove()
1431 if (!params.freestash.empty()) { in PerformCommandDiff()
[all …]
Dtarget_files.cpp60 if (line.empty() || line[0] == '#') continue; in ParsePropertyFile()
76 if (line.empty() || line[0] == '#') continue; in ParseFstab()
282 if (fstab_content.empty()) { in ParseFstabInfo()
/bootable/recovery/recovery_utils/
Droots.cpp93 CHECK(!args.empty()); in exec_cmd()
186 if (!v->metadata_key_dir.empty() && length == 0 && new_fstype.empty()) { in format_volume()
200 if ((v->fs_type == "ext4" && new_fstype.empty()) || new_fstype == "ext4") { in format_volume()
238 if (result == 0 && !directory.empty()) { in format_volume()
285 if (!directory.empty()) { in format_volume()
302 if (fstab.empty()) { in setup_install_mounts()
328 CHECK(!fstab.empty()); in HasCache()
/bootable/recovery/update_verifier/
Dupdate_verifier.cpp117 } else if (!android::base::GetProperty("ro.boot.avb_version", "").empty()) { in FindDmPartitions()
207 if (dm_block_devices.empty()) { in VerifyPartitions()
250 if (file_content.empty()) { in ParseCareMap()
262 if (partition.name().empty()) { in ParseCareMap()
266 if (partition.ranges().empty()) { in ParseCareMap()
277 if (partition.id().empty() || partition.id() == "unknown") { in ParseCareMap()
294 if (partition_map_.empty()) { in ParseCareMap()
343 if (verity_mode.empty()) { in update_verifier()
Dupdate_verifier_main.cpp29 if (s.empty()) { in main()
/bootable/deprecated-ota/tests/unit/
Dapplypatch_modes_test.cpp50 return "EMMC:"s + (display_name.empty() ? filename : display_name) + ":" + in GetEmmcTargetString()
58 ASSERT_FALSE(source.empty()); in SetUp()
62 ASSERT_FALSE(recovery.empty()); in SetUp()
66 ASSERT_FALSE(target.empty()); in SetUp()
91 ASSERT_FALSE(patched_emmc.empty()); in VerifyPatchedTarget()
/bootable/recovery/install/
Dinstall.cpp138 if (!source_build.empty()) { in ReadSourceTargetBuild()
143 if (!target_build.empty()) { in ReadSourceTargetBuild()
155 if (!pkg_pre_build.empty() && pkg_pre_build != device_pre_build) { in CheckAbSpecificMetadata()
163 if (!pkg_pre_build_fingerprint.empty() && in CheckAbSpecificMetadata()
177 if (pkg_post_timestamp_string.empty() || in CheckAbSpecificMetadata()
187 if (pkg_pre_build_fingerprint.empty()) { in CheckAbSpecificMetadata()
194 if (!build_fingerprint.empty()) { in CheckAbSpecificMetadata()
224 if (pkg_device.empty() || !isInStringList(device, pkg_device, FINGERPRING_SEPARATOR)) { in CheckPackageMetadata()
234 if (!pkg_serial_no.empty()) { in CheckPackageMetadata()
248 if (device_build_tag.empty()) { in CheckPackageMetadata()
[all …]
Dfuse_install.cpp114 if (!result.empty()) return result; in BrowseDirectory()
125 if (path.empty()) { in StartInstallPackageFuse()
216 if (path.empty()) { in ApplyFromSdcard()
Dwipe_device.cpp84 if (android::base::StartsWith(partition, "#") || partition.empty()) { in GetWipePartitionList()
196 if (partition_list.empty()) { in WipeAbDevice()
/bootable/recovery/minadbd/
Dminadbd_services.cpp228 if (prop.empty()) { in RescueGetpropHostService()
231 if (value.empty()) { in RescueGetpropHostService()
239 if (result.empty()) { in RescueGetpropHostService()
317 if (args.empty() || args == "bootloader" || args == "rescue" || args == "recovery" || in daemon_service_to_fd()
/bootable/recovery/recovery_ui/
Dethernet_ui.cpp25 if (!address_.empty()) { in SetTitle()
/bootable/deprecated-ota/edify/
Dexpr.cpp42 return !s.empty(); in BooleanString()
79 if (argv.empty()) { in ConcatFn()
105 if (!cond.empty()) { in IfElseFn()
116 if (!argv.empty() && Evaluate(state, argv[0], &msg)) { in AbortFn()
130 if (result.empty()) { in AssertFn()
/bootable/recovery/
Drecovery_main.cpp128 if (!tokens.empty() && tokens[0] == "recovery") { in get_args()
131 if (!it->empty() && (*it)[0] != '\0') args.push_back(std::move(*it)); in get_args()
149 if (!it->empty() && (*it)[0] != '\0') args.push_back(std::move(*it)); in get_args()
393 if (locale.empty()) { in main()
398 if (locale.empty()) { in main()
/bootable/recovery/tests/unit/
Dasn1_decoder_test.cpp26 uint8_t empty[] = {}; in TEST() local
27 asn1_context ctx(empty, sizeof(empty)); in TEST()
/bootable/deprecated-ota/applypatch/
Dapplypatch_modes.cpp81 if (!bonus_file.empty()) { in PatchMode()
175 if (!bonus.empty()) { in applypatch_modes()
/bootable/recovery/updater_sample/src/com/example/android/systemupdatersample/
DUpdateManager.java140 ? Optional.empty() in getOnStateChangeCallback()
160 ? Optional.empty() in getOnEngineStatusUpdateCallback()
180 ? Optional.empty() in getOnEngineCompleteCallback()
199 ? Optional.empty() in getOnProgressUpdateCallback()
/bootable/recovery/otautil/
Drangeset.cpp34 if (pairs.empty()) { in RangeSet()
107 if (ranges_.empty() || groups == 0) return {}; in Split()
147 if (ranges_.empty()) { in ToString()

123