Merge "Add ICompanionDeviceManager.getAssociation overload with explicit userId" into oc-dev

This commit is contained in:
TreeHugger Robot
2017-04-10 15:06:05 +00:00
committed by Android (Google) Code Review
4 changed files with 57 additions and 11 deletions

View File

@@ -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();
}

View File

@@ -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