summaryrefslogtreecommitdiff
path: root/common/dynamic_partition_control_interface.h
diff options
context:
space:
mode:
authorTianjie <xunchang@google.com>2021-02-16 19:44:32 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-02-16 19:44:32 +0000
commit0571324ffc1fe8cc27c32e592c16c85a665a99e1 (patch)
treead781ef0fce3e589113f81ce3eb45c95b4f6f3d8 /common/dynamic_partition_control_interface.h
parent2a47c76e28aa539ef3e29110463f7782d8da9305 (diff)
parentc816863ed17ccb81b13203d3bcb975a4189f5dfb (diff)
Don't list dynamic if a slot doesn't support DAP am: 3a55fc2e5f am: bfce537f90 am: c816863ed1
Original change: https://android-review.googlesource.com/c/platform/system/update_engine/+/1588372 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Ic2b664c46026814569bc3a4e4725365b72b9d9f0
Diffstat (limited to 'common/dynamic_partition_control_interface.h')
-rw-r--r--common/dynamic_partition_control_interface.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/common/dynamic_partition_control_interface.h b/common/dynamic_partition_control_interface.h
index 8368eeb0..61127d4e 100644
--- a/common/dynamic_partition_control_interface.h
+++ b/common/dynamic_partition_control_interface.h
@@ -134,11 +134,13 @@ class DynamicPartitionControlInterface {
// allocated space for snapshot updates.
virtual bool ResetUpdate(PrefsInterface* prefs) = 0;
- // Reads the dynamic partitions metadata from the current slot, and puts the
+ // Reads the dynamic partitions metadata from the given slot, and puts the
// name of the dynamic partitions with the current suffix to |partitions|.
// Returns true on success.
virtual bool ListDynamicPartitionsForSlot(
- uint32_t current_slot, std::vector<std::string>* partitions) = 0;
+ uint32_t slot,
+ uint32_t current_slot,
+ std::vector<std::string>* partitions) = 0;
// Finds a possible location that list all block devices by name; and puts
// the result in |path|. Returns true on success.