From 699c77102407c3b4eb5feceadd72c4be83724fea Mon Sep 17 00:00:00 2001 From: Chad Brubaker Date: Fri, 20 Jan 2017 13:53:42 -0800 Subject: [PATCH] Rename visibleToEphemeral to visibleToInstantApps Test: builds Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.EphemeralTest Change-Id: Ia173af181ec6206dfa8d1956eb2c4894c43c059e --- api/current.txt | 2 +- api/system-current.txt | 2 +- api/test-current.txt | 2 +- core/java/android/content/pm/PackageParser.java | 14 +++++++------- core/res/res/values/attrs_manifest.xml | 10 +++++----- core/res/res/values/public.xml | 2 +- 6 files changed, 16 insertions(+), 16 deletions(-) diff --git a/api/current.txt b/api/current.txt index 1b9ba877c76ad..d2c620ae21fc5 100644 --- a/api/current.txt +++ b/api/current.txt @@ -1437,7 +1437,7 @@ package android { field public static final int viewportWidth = 16843778; // 0x1010402 field public static final int visibility = 16842972; // 0x10100dc field public static final int visible = 16843156; // 0x1010194 - field public static final int visibleToEphemeral = 16844095; // 0x101053f + field public static final int visibleToInstantApps = 16844095; // 0x101053f field public static final int vmSafeMode = 16843448; // 0x10102b8 field public static final int voiceIcon = 16843908; // 0x1010484 field public static final int voiceLanguage = 16843349; // 0x1010255 diff --git a/api/system-current.txt b/api/system-current.txt index c39c70a46bfdc..6aff44c9125b3 100644 --- a/api/system-current.txt +++ b/api/system-current.txt @@ -1550,7 +1550,7 @@ package android { field public static final int viewportWidth = 16843778; // 0x1010402 field public static final int visibility = 16842972; // 0x10100dc field public static final int visible = 16843156; // 0x1010194 - field public static final int visibleToEphemeral = 16844095; // 0x101053f + field public static final int visibleToInstantApps = 16844095; // 0x101053f field public static final int vmSafeMode = 16843448; // 0x10102b8 field public static final int voiceIcon = 16843908; // 0x1010484 field public static final int voiceLanguage = 16843349; // 0x1010255 diff --git a/api/test-current.txt b/api/test-current.txt index e7d98e1861aeb..ef3f74465dfd8 100644 --- a/api/test-current.txt +++ b/api/test-current.txt @@ -1437,7 +1437,7 @@ package android { field public static final int viewportWidth = 16843778; // 0x1010402 field public static final int visibility = 16842972; // 0x10100dc field public static final int visible = 16843156; // 0x1010194 - field public static final int visibleToEphemeral = 16844095; // 0x101053f + field public static final int visibleToInstantApps = 16844095; // 0x101053f field public static final int vmSafeMode = 16843448; // 0x10102b8 field public static final int voiceIcon = 16843908; // 0x1010484 field public static final int voiceLanguage = 16843349; // 0x1010255 diff --git a/core/java/android/content/pm/PackageParser.java b/core/java/android/content/pm/PackageParser.java index 083e4cc6676be..79118b1a1779c 100644 --- a/core/java/android/content/pm/PackageParser.java +++ b/core/java/android/content/pm/PackageParser.java @@ -3931,10 +3931,10 @@ public class PackageParser { } final boolean hasVisibleToEphemeral = - sa.hasValue(R.styleable.AndroidManifestActivity_visibleToEphemeral); + sa.hasValue(R.styleable.AndroidManifestActivity_visibleToInstantApps); final boolean isEphemeral = ((flags & PARSE_IS_EPHEMERAL) != 0); final boolean visibleToEphemeral = isEphemeral - || sa.getBoolean(R.styleable.AndroidManifestActivity_visibleToEphemeral, false); + || sa.getBoolean(R.styleable.AndroidManifestActivity_visibleToInstantApps, false); if (visibleToEphemeral) { a.info.flags |= ActivityInfo.FLAG_VISIBLE_TO_EPHEMERAL; } @@ -4244,7 +4244,7 @@ public class PackageParser { } } - // TODO add visibleToInstantApp attribute to activity alias + // TODO add visibleToInstantApps attribute to activity alias final boolean isEphemeral = ((flags & PARSE_IS_EPHEMERAL) != 0); final boolean visibleToEphemeral = isEphemeral || ((a.info.flags & ActivityInfo.FLAG_VISIBLE_TO_EPHEMERAL) != 0); @@ -4420,10 +4420,10 @@ public class PackageParser { } final boolean hasVisibleToEphemeral = - sa.hasValue(R.styleable.AndroidManifestProvider_visibleToEphemeral); + sa.hasValue(R.styleable.AndroidManifestProvider_visibleToInstantApps); final boolean isEphemeral = ((flags & PARSE_IS_EPHEMERAL) != 0); final boolean visibleToEphemeral = isEphemeral - || sa.getBoolean(R.styleable.AndroidManifestProvider_visibleToEphemeral, false); + || sa.getBoolean(R.styleable.AndroidManifestProvider_visibleToInstantApps, false); if (visibleToEphemeral) { p.info.flags |= ProviderInfo.FLAG_VISIBLE_TO_EPHEMERAL; } @@ -4731,10 +4731,10 @@ public class PackageParser { } final boolean hasVisibleToEphemeral = - sa.hasValue(R.styleable.AndroidManifestService_visibleToEphemeral); + sa.hasValue(R.styleable.AndroidManifestService_visibleToInstantApps); final boolean isEphemeral = ((flags & PARSE_IS_EPHEMERAL) != 0); final boolean visibleToEphemeral = isEphemeral - || sa.getBoolean(R.styleable.AndroidManifestService_visibleToEphemeral, false); + || sa.getBoolean(R.styleable.AndroidManifestService_visibleToInstantApps, false); if (visibleToEphemeral) { s.info.flags |= ServiceInfo.FLAG_VISIBLE_TO_EPHEMERAL; } diff --git a/core/res/res/values/attrs_manifest.xml b/core/res/res/values/attrs_manifest.xml index d1a1d3e9352a9..a266268999133 100644 --- a/core/res/res/values/attrs_manifest.xml +++ b/core/res/res/values/attrs_manifest.xml @@ -1212,9 +1212,9 @@ --> - - + @@ -1762,7 +1762,7 @@ - + - + - +