Merge "Add ICompanionDeviceManager.getAssociation overload with explicit userId" into oc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
0ac8fd7adb
@@ -167,7 +167,7 @@ public final class CompanionDeviceManager {
|
||||
return Collections.emptyList();
|
||||
}
|
||||
try {
|
||||
return mService.getAssociations(mContext.getPackageName());
|
||||
return mService.getAssociations(mContext.getPackageName(), mContext.getUserId());
|
||||
} catch (RemoteException e) {
|
||||
throw e.rethrowFromSystemServer();
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@ interface ICompanionDeviceManager {
|
||||
in IFindDeviceCallback callback,
|
||||
in String callingPackage);
|
||||
|
||||
List<String> getAssociations(String callingPackage);
|
||||
List<String> getAssociations(String callingPackage, int userId);
|
||||
void disassociate(String deviceMacAddress, String callingPackage);
|
||||
|
||||
//TODO add these
|
||||
|
||||
Reference in New Issue
Block a user