Home
last modified time | relevance | path

Searched refs:slot_suffix (Results 1 – 23 of 23) sorted by relevance

/system/core/fs_mgr/libsnapshot/include_test/libsnapshot/
Dtest_helpers.h76 TestDeviceInfo(const std::string& fake_super, const std::string& slot_suffix) in TestDeviceInfo() argument
78 set_slot_suffix(slot_suffix); in TestDeviceInfo()
118 SnapshotTestPropertyFetcher(const std::string& slot_suffix) { in SnapshotTestPropertyFetcher() argument
120 ON_CALL(*this, GetProperty("ro.boot.slot_suffix", _)).WillByDefault(Return(slot_suffix)); in SnapshotTestPropertyFetcher()
128 static void SetUp(const std::string& slot_suffix = "_a") { Reset(slot_suffix); }
133 static void Reset(const std::string& slot_suffix) { in Reset() argument
135 std::make_unique<NiceMock<SnapshotTestPropertyFetcher>>(slot_suffix)); in Reset()
/system/core/fs_mgr/
Dfs_mgr_slotselect.cpp30 static std::string other_suffix(const std::string& slot_suffix) { in other_suffix() argument
31 if (slot_suffix == "_a") { in other_suffix()
34 if (slot_suffix == "_b") { in other_suffix()
/system/core/fastboot/device/
Dutility.cpp54 std::string slot_suffix = GetSuperSlotSuffix(device, partition_name); in OpenLogicalPartition() local
55 uint32_t slot_number = SlotNumberForSlotSuffix(slot_suffix); in OpenLogicalPartition()
124 std::string slot_suffix = GetSuperSlotSuffix(device, name); in LogicalPartitionExists() local
125 uint32_t slot_number = SlotNumberForSlotSuffix(slot_suffix); in LogicalPartitionExists()
238 std::string slot_suffix = GetPartitionSlotSuffix(partition_name); in GetSuperSlotSuffix() local
239 if (!slot_suffix.empty()) { in GetSuperSlotSuffix()
240 return slot_suffix; in GetSuperSlotSuffix()
Dflashing.cpp190 std::string slot_suffix = device->GetCurrentSlot(); in UpdateSuper() local
191 uint32_t slot_number = SlotNumberForSlotSuffix(slot_suffix); in UpdateSuper()
206 if (!slot_suffix.empty() && GetPartitionSlotSuffix(partition_name) == slot_suffix) { in UpdateSuper()
Dvariables.cpp283 std::string slot_suffix = device->GetCurrentSlot(); in GetHasSlot() local
284 if (slot_suffix.empty()) { in GetHasSlot()
288 std::string partition_name = args[0] + slot_suffix; in GetHasSlot()
408 std::string slot_suffix = device->GetCurrentSlot(); in GetAllPartitionArgsNoSlot() local
409 if (!slot_suffix.empty()) { in GetAllPartitionArgsNoSlot()
Dcommands.cpp391 std::string slot_suffix = GetSuperSlotSuffix(device, partition_name); in PartitionBuilder() local
392 slot_number_ = android::fs_mgr::SlotNumberForSlotSuffix(slot_suffix); in PartitionBuilder()
/system/core/fs_mgr/liblp/
Dutility.cpp234 std::string slot_suffix = GetPartitionSlotSuffix(group_name); in UpdateMetadataForInPlaceSnapshot() local
236 if (slot_suffix == target_slot_suffix) continue; in UpdateMetadataForInPlaceSnapshot()
238 if (slot_suffix == source_slot_suffix) { in UpdateMetadataForInPlaceSnapshot()
239 std::string new_name = group_name.substr(0, group_name.size() - slot_suffix.size()) + in UpdateMetadataForInPlaceSnapshot()
252 std::string slot_suffix = GetPartitionSlotSuffix(partition_name); in UpdateMetadataForInPlaceSnapshot() local
254 if (slot_suffix == target_slot_suffix) continue; in UpdateMetadataForInPlaceSnapshot()
256 if (slot_suffix == source_slot_suffix) { in UpdateMetadataForInPlaceSnapshot()
258 partition_name.substr(0, partition_name.size() - slot_suffix.size()) + in UpdateMetadataForInPlaceSnapshot()
Dwriter.cpp87 const LpMetadata& metadata, const std::string& slot_suffix, in ValidateAndSerializeMetadata() argument
119 if (slot_suffix.empty()) { in ValidateAndSerializeMetadata()
124 partition_name += slot_suffix; in ValidateAndSerializeMetadata()
259 std::string slot_suffix = GetPartitionSlotSuffix(super_partition); in FlashPartitionTable() local
265 if (!ValidateAndSerializeMetadata(opener, metadata, slot_suffix, &metadata_blob)) { in FlashPartitionTable()
332 std::string slot_suffix = SlotSuffixForSlotNumber(slot_number); in UpdatePartitionTable() local
338 if (!ValidateAndSerializeMetadata(opener, metadata, slot_suffix, &blob)) { in UpdatePartitionTable()
370 if (!ValidateAndSerializeMetadata(opener, *primary.get(), slot_suffix, &old_blob)) { in UpdatePartitionTable()
382 if (!ValidateAndSerializeMetadata(opener, *backup.get(), slot_suffix, &old_blob)) { in UpdatePartitionTable()
Ddevice_test.cpp57 auto slot_suffix = fs_mgr_get_slot_suffix(); in TEST_F() local
58 auto slot_number = SlotNumberForSlotSuffix(slot_suffix); in TEST_F()
Dreader.cpp399 std::string slot_suffix = SlotSuffixForSlotNumber(slot_number); in AdjustMetadataForSlot() local
404 std::string partition_name = GetPartitionName(partition) + slot_suffix; in AdjustMetadataForSlot()
416 std::string partition_name = GetBlockDevicePartitionName(block_device) + slot_suffix; in AdjustMetadataForSlot()
427 std::string group_name = GetPartitionGroupName(group) + slot_suffix; in AdjustMetadataForSlot()
Dbuilder.cpp277 std::string slot_suffix = GetPartitionSlotSuffix(partition_name); in UpdateMetadataForOtherSuper() local
278 if (slot_suffix.empty() || slot_suffix != source_slot_suffix) { in UpdateMetadataForOtherSuper()
286 partition_name.substr(0, partition_name.size() - slot_suffix.size()) + in UpdateMetadataForOtherSuper()
/system/extras/partition_tools/
Dlpdump.cc142 std::string slot_suffix = GetSlotSuffix(); in MergeMetadata() local
147 if (!base::EndsWith(group_name, slot_suffix)) continue; in MergeMetadata()
149 group_proto->set_name(RemoveSuffix(group_name, slot_suffix)); in MergeMetadata()
154 if (!base::EndsWith(partition_name, slot_suffix)) continue; in MergeMetadata()
156 partition_proto->set_name(RemoveSuffix(partition_name, slot_suffix)); in MergeMetadata()
157 partition_proto->set_group_name(RemoveSuffix(group_name, slot_suffix)); in MergeMetadata()
170 block_device_proto->set_name(RemoveSuffix(name, slot_suffix)); in MergeMetadata()
Dlpdumpd.rc29 …file /dev/block/by-name/${ro.boot.super_partition:-NO_SUCH_DEVICE}${ro.boot.slot_suffix:-_NO_SUCH_…
/system/update_engine/
Dupdate_engine.rc8 on property:ro.boot.slot_suffix=*
/system/libufdt/tests/
DverifyDTBO.sh18 boot_suffix=$(adb wait-for-device shell getprop ro.boot.slot_suffix)
/system/core/fastboot/fuzzy_fastboot/
Dmain.cpp211 std::string slot_suffix = "_" + current_slot; in TEST_F() local
212 is_logical_cmd_system += slot_suffix; in TEST_F()
213 is_logical_cmd_vendor += slot_suffix; in TEST_F()
214 is_logical_cmd_boot += slot_suffix; in TEST_F()
249 std::string slot_suffix = "_" + current_slot; in TEST_F() local
250 test_partition_name += slot_suffix; in TEST_F()
/system/core/fs_mgr/libsnapshot/
Dsnapshot_test.cpp1692 AssertionResult InitiateMerge(const std::string& slot_suffix) { in InitiateMerge() argument
1693 auto sm = SnapshotManager::New(new TestDeviceInfo(fake_super, slot_suffix)); in InitiateMerge()
Dsnapshot.cpp2737 auto slot_suffix = device_->GetOtherSlotSuffix(); in RecoveryCreateSnapshotDevices() local
2738 auto slot_number = SlotNumberForSlotSuffix(slot_suffix); in RecoveryCreateSnapshotDevices()
/system/core/fs_mgr/tests/
Dadb-remount-test.sh556 get_property ro.boot.slot_suffix | tr -d _
/system/sepolicy/prebuilts/api/28.0/public/
Dproperty_contexts231 ro.boot.slot_suffix u:object_r:exported_default_prop:s0 exact string
/system/sepolicy/prebuilts/api/29.0/public/
Dproperty_contexts289 ro.boot.slot_suffix u:object_r:exported_default_prop:s0 exact string
/system/sepolicy/prebuilts/api/30.0/public/
Dproperty_contexts320 ro.boot.slot_suffix u:object_r:exported_default_prop:s0 exact string
/system/sepolicy/private/
Dproperty_contexts686 ro.boot.slot_suffix u:object_r:exported_default_prop:s0 exact string