diff options
author | Jason Tholstrup <jthol@google.com> | 2016-08-26 14:30:20 -0700 |
---|---|---|
committer | Jason Tholstrup <jthol@google.com> | 2016-08-31 12:12:41 -0700 |
commit | 3ee334d8c220f631d2ea7fa225af148f41b43354 (patch) | |
tree | 7636d512e94322f67560d00415f7353659c3d467 /car-lib/src/android/car/CarAppFocusManager.java | |
parent | 57de61296cc8f29d8740fc7e6983af9553e7a410 (diff) | |
download | Car-3ee334d8c220f631d2ea7fa225af148f41b43354.tar.gz |
api lint refactorings and renaming of listener add/remove methods.
Change-Id: Id8eceac2322564da8a5fd3f882574041a0b97704
Diffstat (limited to 'car-lib/src/android/car/CarAppFocusManager.java')
-rw-r--r-- | car-lib/src/android/car/CarAppFocusManager.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/car-lib/src/android/car/CarAppFocusManager.java b/car-lib/src/android/car/CarAppFocusManager.java index f48355036f..dea903f356 100644 --- a/car-lib/src/android/car/CarAppFocusManager.java +++ b/car-lib/src/android/car/CarAppFocusManager.java @@ -94,9 +94,9 @@ public final class CarAppFocusManager implements CarManagerBase { /** * @hide */ - CarAppFocusManager(IBinder service, Looper looper) { + CarAppFocusManager(IBinder service, Handler handler) { mService = IAppFocus.Stub.asInterface(service); - mHandler = new Handler(looper); + mHandler = handler; } /** @@ -219,13 +219,13 @@ public final class CarAppFocusManager implements CarManagerBase { * {@link AppFocusOwnershipChangeListener#onAppFocusOwnershipLoss(int)} * if ownership is given to other app by calling this. Fore-ground app will have higher priority * and other app cannot set the same focus while owner is in fore-ground. - * @param ownershipListener * @param appType + * @param ownershipListener * @return {@link #APP_FOCUS_REQUEST_FAILED} or {@link #APP_FOCUS_REQUEST_GRANTED} * @throws CarNotConnectedException * @throws SecurityException If owner cannot be changed. */ - public int requestAppFocus(AppFocusOwnershipChangeListener ownershipListener, int appType) + public int requestAppFocus(int appType, AppFocusOwnershipChangeListener ownershipListener) throws SecurityException, CarNotConnectedException { if (ownershipListener == null) { throw new IllegalArgumentException("null listener"); |