From fb8ebe9f444443d28b560e560cd541954b3c2b08 Mon Sep 17 00:00:00 2001 From: Jooyung Han Date: Thu, 12 Aug 2021 17:30:32 +0900 Subject: [PATCH] Suppress AIDL warnings: untyped-collection For now AIDL doesn't support Map, there's no way to fix it with typed map. Bug: 192615532 Test: m Change-Id: Id0011372a0997b4ab9aa700a7c4f8746bff29189 --- core/java/android/accounts/IAccountManager.aidl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/java/android/accounts/IAccountManager.aidl b/core/java/android/accounts/IAccountManager.aidl index ce68e082cf4fd..fb9ef53f41f6f 100644 --- a/core/java/android/accounts/IAccountManager.aidl +++ b/core/java/android/accounts/IAccountManager.aidl @@ -105,12 +105,15 @@ interface IAccountManager { String statusToken); /* Returns Map from package name to visibility with all values stored for given account */ + @SuppressWarnings(value = {"untyped-collection"}) Map getPackagesAndVisibilityForAccount(in Account account); + @SuppressWarnings(value = {"untyped-collection"}) boolean addAccountExplicitlyWithVisibility(in Account account, String password, in Bundle extras, in Map visibility); boolean setAccountVisibility(in Account a, in String packageName, int newVisibility); int getAccountVisibility(in Account a, in String packageName); /* Type may be null returns Map */ + @SuppressWarnings(value = {"untyped-collection"}) Map getAccountsAndVisibilityForPackage(in String packageName, in String accountType); void registerAccountListener(in String[] accountTypes, String opPackageName);