Home
last modified time | relevance | path

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

/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/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()
124 SnapshotTestPropertyFetcher(const std::string& slot_suffix) { in SnapshotTestPropertyFetcher() argument
126 ON_CALL(*this, GetProperty("ro.boot.slot_suffix", _)).WillByDefault(Return(slot_suffix)); in SnapshotTestPropertyFetcher()
134 static void SetUp(const std::string& slot_suffix = "_a") { Reset(slot_suffix); }
139 static void Reset(const std::string& slot_suffix) { in Reset() argument
141 std::make_unique<NiceMock<SnapshotTestPropertyFetcher>>(slot_suffix)); in Reset()
/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()
127 std::string slot_suffix = GetSuperSlotSuffix(device, name); in LogicalPartitionExists() local
128 uint32_t slot_number = SlotNumberForSlotSuffix(slot_suffix); in LogicalPartitionExists()
236 std::string slot_suffix = GetPartitionSlotSuffix(partition_name); in GetSuperSlotSuffix() local
237 if (!slot_suffix.empty()) { in GetSuperSlotSuffix()
238 return slot_suffix; in GetSuperSlotSuffix()
Dflashing.cpp193 std::string slot_suffix = device->GetCurrentSlot(); in UpdateSuper() local
194 uint32_t slot_number = SlotNumberForSlotSuffix(slot_suffix); in UpdateSuper()
209 if (!slot_suffix.empty() && GetPartitionSlotSuffix(partition_name) == slot_suffix) { in UpdateSuper()
Dvariables.cpp289 std::string slot_suffix = device->GetCurrentSlot(); in GetHasSlot() local
290 if (slot_suffix.empty()) { in GetHasSlot()
294 std::string partition_name = args[0] + slot_suffix; in GetHasSlot()
414 std::string slot_suffix = device->GetCurrentSlot(); in GetAllPartitionArgsNoSlot() local
415 if (!slot_suffix.empty()) { in GetAllPartitionArgsNoSlot()
Dcommands.cpp441 std::string slot_suffix = GetSuperSlotSuffix(device, partition_name); in PartitionBuilder() local
442 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.cpp213 std::string slot_suffix = "_" + current_slot; in TEST_F() local
214 is_logical_cmd_system += slot_suffix; in TEST_F()
215 is_logical_cmd_vendor += slot_suffix; in TEST_F()
216 is_logical_cmd_boot += slot_suffix; in TEST_F()
251 std::string slot_suffix = "_" + current_slot; in TEST_F() local
252 test_partition_name += slot_suffix; in TEST_F()
/system/core/fs_mgr/libsnapshot/
Dsnapshot.cpp565 auto slot_suffix = device_->GetSlotSuffix(); in MapSourceDevice() local
566 auto slot = SlotNumberForSlotSuffix(slot_suffix); in MapSourceDevice()
2323 auto slot_suffix = device_->GetOtherSlotSuffix(); in MapAllSnapshots() local
2324 auto slot_number = SlotNumberForSlotSuffix(slot_suffix); in MapAllSnapshots()
3562 auto slot_suffix = device_->GetOtherSlotSuffix(); in RecoveryCreateSnapshotDevices() local
3563 auto slot_number = SlotNumberForSlotSuffix(slot_suffix); in RecoveryCreateSnapshotDevices()
Dsnapshot_test.cpp400 const std::string& slot_suffix = "_a") { in NewManagerForFirstStageMount() argument
401 auto info = new TestDeviceInfo(fake_super, slot_suffix); in NewManagerForFirstStageMount()
2134 AssertionResult InitiateMerge(const std::string& slot_suffix) { in InitiateMerge() argument
2135 auto sm = SnapshotManager::New(new TestDeviceInfo(fake_super, slot_suffix)); in InitiateMerge()
/system/core/fs_mgr/tests/
Dadb-remount-test.sh563 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_contexts291 ro.boot.slot_suffix u:object_r:exported_default_prop:s0 exact string
/system/sepolicy/prebuilts/api/30.0/public/
Dproperty_contexts322 ro.boot.slot_suffix u:object_r:exported_default_prop:s0 exact string
/system/sepolicy/private/
Dproperty_contexts937 ro.boot.slot_suffix u:object_r:exported_default_prop:s0 exact string
/system/sepolicy/prebuilts/api/31.0/private/
Dproperty_contexts937 ro.boot.slot_suffix u:object_r:exported_default_prop:s0 exact string