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

Commit 274b7bbf authored by Jooyung Han's avatar Jooyung Han
Browse files

Make OverlayablePolicy as enum type

It's been used as a container of constants. "enum" suits better.

Fixes: 179836191
Test: m
Change-Id: Icbcda5707c0d2528dcbfad7e5add8d50bc4ec5b9
parent 13e89b75
Loading
Loading
Loading
Loading
+12 −10
Original line number Diff line number Diff line
@@ -20,14 +20,16 @@ package android.os;
 * @see ResourcesTypes.h ResTable_overlayable_policy_header::PolicyFlags
 * @hide
 */
interface OverlayablePolicy {
  const int PUBLIC = 0x00000001;
  const int SYSTEM_PARTITION = 0x00000002;
  const int VENDOR_PARTITION = 0x00000004;
  const int PRODUCT_PARTITION = 0x00000008;
  const int SIGNATURE = 0x00000010;
  const int ODM_PARTITION = 0x00000020;
  const int OEM_PARTITION = 0x00000040;
  const int ACTOR_SIGNATURE = 0x00000080;
  const int CONFIG_SIGNATURE = 0x0000100;
@Backing(type="int")
enum OverlayablePolicy {
  NONE = 0x00000000,
  PUBLIC = 0x00000001,
  SYSTEM_PARTITION = 0x00000002,
  VENDOR_PARTITION = 0x00000004,
  PRODUCT_PARTITION = 0x00000008,
  SIGNATURE = 0x00000010,
  ODM_PARTITION = 0x00000020,
  OEM_PARTITION = 0x00000040,
  ACTOR_SIGNATURE = 0x00000080,
  CONFIG_SIGNATURE = 0x0000100,
}