From 46c42f481f585fa026265f97e9f1f89950ea7590 Mon Sep 17 00:00:00 2001 From: Gaurav Bhola Date: Fri, 24 Mar 2023 20:34:31 -0700 Subject: [PATCH] Add PRODUCT_ORDERED_ID - This can be used by product specific activity interceptors. Bug: 274529983 Test: NA Change-Id: I8cff97850b95275d6471bc16ac466b3da002eeb3 --- .../android/server/wm/ActivityInterceptorCallback.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/services/core/java/com/android/server/wm/ActivityInterceptorCallback.java b/services/core/java/com/android/server/wm/ActivityInterceptorCallback.java index d844c6f17a5d6..9647a620b6c84 100644 --- a/services/core/java/com/android/server/wm/ActivityInterceptorCallback.java +++ b/services/core/java/com/android/server/wm/ActivityInterceptorCallback.java @@ -84,6 +84,7 @@ public interface ActivityInterceptorCallback { PERMISSION_POLICY_ORDERED_ID, VIRTUAL_DEVICE_SERVICE_ORDERED_ID, DREAM_MANAGER_ORDERED_ID, + PRODUCT_ORDERED_ID, SYSTEM_LAST_ORDERED_ID, // Update this when adding new ids // Order Ids for mainline module services MAINLINE_FIRST_ORDERED_ID, @@ -118,12 +119,19 @@ public interface ActivityInterceptorCallback { */ int DREAM_MANAGER_ORDERED_ID = 4; + /** + * The identifier for an interceptor which is specific to the type of android product like + * automotive, wear, TV etc. + * @hide + */ + int PRODUCT_ORDERED_ID = 5; + /** * The final id, used by the framework to determine the valid range of ids. Update this when * adding new ids. * @hide */ - int SYSTEM_LAST_ORDERED_ID = DREAM_MANAGER_ORDERED_ID; + int SYSTEM_LAST_ORDERED_ID = PRODUCT_ORDERED_ID; /** * The first mainline module id, used by the framework to determine the valid range of ids