Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 77be8965 authored by Jeff Sharkey's avatar Jeff Sharkey
Browse files

More robust fixes for constant used by test.

Use the real definitions from .aidl instead of copy/pasting
the constants again.

Bug: 111854851
Change-Id: Ib228ef00cfffc616e68825d896b9e311b3578a76
parent 9ab9711e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -40,8 +40,8 @@ constexpr int64_t kMbInBytes = 1024 * kKbInBytes;
constexpr int64_t kGbInBytes = 1024 * kMbInBytes;
constexpr int64_t kTbInBytes = 1024 * kGbInBytes;

static constexpr int FLAG_FREE_CACHE_V2 = 1 << 13;
static constexpr int FLAG_FREE_CACHE_V2_DEFY_QUOTA = 1 << 14;
#define FLAG_FREE_CACHE_V2 InstalldNativeService::FLAG_FREE_CACHE_V2
#define FLAG_FREE_CACHE_V2_DEFY_QUOTA InstalldNativeService::FLAG_FREE_CACHE_V2_DEFY_QUOTA

int get_property(const char *key, char *value, const char *default_value) {
    return property_get(key, value, default_value);
+1 −1
Original line number Diff line number Diff line
@@ -37,7 +37,7 @@ namespace installd {

constexpr const char* kTestUuid = "TEST";

static constexpr int FLAG_FORCE = 0x2000;
#define FLAG_FORCE InstalldNativeService::FLAG_FORCE

int get_property(const char *key, char *value, const char *default_value) {
    return property_get(key, value, default_value);