/packages/services/Car/tests/carservice_test/src/com/android/car/ |
D | CarAppFocusManagerTest.java | 19 import static android.car.CarAppFocusManager.OnAppFocusChangedListener; 31 import android.car.CarAppFocusManager; 32 import android.car.CarAppFocusManager.OnAppFocusChangedListener; 33 import android.car.CarAppFocusManager.OnAppFocusOwnershipCallback; 49 private CarAppFocusManager mCarAppFocusManager; 88 (CarAppFocusManager) getCar().getCarManager(Car.APP_FOCUS_SERVICE); in setUp() 109 CarAppFocusManager.APP_FOCUS_TYPE_NAVIGATION, mApp1Callback); in requestNavFocus_noCurrentFocus_requestShouldSucceed() 110 assertThat(result).isEqualTo(CarAppFocusManager.APP_FOCUS_REQUEST_SUCCEEDED); in requestNavFocus_noCurrentFocus_requestShouldSucceed() 115 mCarAppFocusManager.requestAppFocus(CarAppFocusManager.APP_FOCUS_TYPE_NAVIGATION, in requestNavFocus_noCurrentFocus_callbackIsRun() 119 .onAppFocusOwnershipGranted(CarAppFocusManager.APP_FOCUS_TYPE_NAVIGATION); in requestNavFocus_noCurrentFocus_callbackIsRun() [all …]
|
D | AppFocusTest.java | 23 import android.car.CarAppFocusManager; 44 CarAppFocusManager manager = (CarAppFocusManager) getCar().getCarManager( in testFocusChange() 48 manager.addFocusListener(listener, CarAppFocusManager.APP_FOCUS_TYPE_NAVIGATION); in testFocusChange() 49 manager.requestAppFocus(CarAppFocusManager.APP_FOCUS_TYPE_NAVIGATION, ownershipListener); in testFocusChange() 51 CarAppFocusManager.APP_FOCUS_TYPE_NAVIGATION, true); in testFocusChange() 53 assertThat(manager.getAppTypeOwner(CarAppFocusManager.APP_FOCUS_TYPE_NAVIGATION)) in testFocusChange() 56 manager.abandonAppFocus(ownershipListener, CarAppFocusManager.APP_FOCUS_TYPE_NAVIGATION); in testFocusChange() 58 CarAppFocusManager.APP_FOCUS_TYPE_NAVIGATION, false); in testFocusChange() 59 assertThat(manager.getAppTypeOwner(CarAppFocusManager.APP_FOCUS_TYPE_NAVIGATION)).isEmpty(); in testFocusChange() 64 implements CarAppFocusManager.OnAppFocusChangedListener { [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/ |
D | AppFocusServiceTest.java | 30 import android.car.CarAppFocusManager; 63 private CarAppFocusManager mCarAppFocusManager1; 64 private CarAppFocusManager mCarAppFocusManager2; 75 mCarAppFocusManager1 = new CarAppFocusManager(mCar, mService.asBinder()); in setUp() 76 mCarAppFocusManager2 = new CarAppFocusManager(mCar, mService.asBinder()); in setUp() 82 CarAppFocusManager.APP_FOCUS_TYPE_NAVIGATION); in testSingleOwner() 84 int r = mCarAppFocusManager1.requestAppFocus(CarAppFocusManager.APP_FOCUS_TYPE_NAVIGATION, in testSingleOwner() 86 assertThat(r).isEqualTo(CarAppFocusManager.APP_FOCUS_REQUEST_SUCCEEDED); in testSingleOwner() 88 CarAppFocusManager.APP_FOCUS_REQUEST_SUCCEEDED)).isTrue(); in testSingleOwner() 93 CarAppFocusManager.APP_FOCUS_TYPE_NAVIGATION); in testSingleOwner() [all …]
|
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/ |
D | CarAppFocusManagerTest.java | 18 import static android.car.CarAppFocusManager.APP_FOCUS_REQUEST_SUCCEEDED; 19 import static android.car.CarAppFocusManager.APP_FOCUS_TYPE_NAVIGATION; 26 import android.car.CarAppFocusManager; 49 private CarAppFocusManager mManager; 55 mManager = (CarAppFocusManager) getCar().getCarManager(Car.APP_FOCUS_SERVICE); in setUp() 109 CarAppFocusManager manager = createManager(); in testRegisterUnregisterSpecificApp() 116 .isEqualTo(CarAppFocusManager.APP_FOCUS_REQUEST_SUCCEEDED); in testRegisterUnregisterSpecificApp() 128 .isEqualTo(CarAppFocusManager.APP_FOCUS_REQUEST_SUCCEEDED); in testRegisterUnregisterSpecificApp() 140 CarAppFocusManager manager1 = createManager(); in testFocusChange() 141 CarAppFocusManager manager2 = createManager(); in testFocusChange() [all …]
|
D | CarNavigationManagerTest.java | 23 import android.car.CarAppFocusManager; 24 import android.car.CarAppFocusManager.OnAppFocusOwnershipCallback; 57 private CarAppFocusManager mCarAppFocusManager; 64 (CarAppFocusManager) getCar().getCarManager(Car.APP_FOCUS_SERVICE); in setUp() 128 mCarAppFocusManager.addFocusListener(new CarAppFocusManager.OnAppFocusChangedListener() { in testSendEvent() 133 }, CarAppFocusManager.APP_FOCUS_TYPE_NAVIGATION); in testSendEvent() 145 mCarAppFocusManager.requestAppFocus(CarAppFocusManager.APP_FOCUS_TYPE_NAVIGATION, in testSendEvent() 148 CarAppFocusManager.APP_FOCUS_TYPE_NAVIGATION)).isTrue(); in testSendEvent()
|
D | CarGetCarManagerTest.java | 20 import android.car.CarAppFocusManager; 86 {CarAppFocusManager.class, Car.APP_FOCUS_SERVICE}, in inputParameters()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/cluster/ |
D | InstrumentClusterFragment.java | 21 import android.car.CarAppFocusManager; 65 private CarAppFocusManager mCarAppFocusManager; 80 mCarAppFocusManager = (CarAppFocusManager) car.getCarManager( 87 private final CarAppFocusManager.OnAppFocusOwnershipCallback mFocusCallback = 88 new CarAppFocusManager.OnAppFocusOwnershipCallback() { 90 public void onAppFocusOwnershipLost(@CarAppFocusManager.AppFocusType int appType) { 100 @CarAppFocusManager.AppFocusType int appType) { 106 private CarAppFocusManager.OnAppFocusChangedListener mOnAppFocusChangedListener = 318 CarAppFocusManager.APP_FOCUS_TYPE_NAVIGATION); in initCluster() 319 mCarAppFocusManager.requestAppFocus(CarAppFocusManager.APP_FOCUS_TYPE_NAVIGATION, in initCluster() [all …]
|
/packages/services/Car/car-lib/src/android/car/ |
D | CarAppFocusManager.java | 50 public final class CarAppFocusManager extends CarManagerBase { class 141 public CarAppFocusManager(Car car, IBinder service) { in CarAppFocusManager() method in CarAppFocusManager 370 private final WeakReference<CarAppFocusManager> mManager; 374 private IAppFocusListenerImpl(CarAppFocusManager manager, in IAppFocusListenerImpl() 398 final CarAppFocusManager manager = mManager.get(); in onAppFocusChanged() 411 private final WeakReference<CarAppFocusManager> mManager; 415 private IAppFocusOwnershipCallbackImpl(CarAppFocusManager manager, in IAppFocusOwnershipCallbackImpl() 439 final CarAppFocusManager manager = mManager.get(); in onAppFocusOwnershipLost() 451 final CarAppFocusManager manager = mManager.get(); in onAppFocusOwnershipGranted()
|
D | Car.java | 1714 CAR_SERVICE_NAMES.put(CarAppFocusManager.class, APP_FOCUS_SERVICE); in CAR_SERVICE_NAMES.put() 2632 manager = new CarAppFocusManager(this, binder); in createCarManagerLocked()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/ |
D | OccupantZoneStartActivity.java | 22 import static android.car.CarAppFocusManager.APP_FOCUS_TYPE_NAVIGATION; 27 import android.car.CarAppFocusManager; 49 private CarAppFocusManager mAppFocusManager; 113 (CarAppFocusManager) car.getCarManager(APP_FOCUS_SERVICE); in connectCar() 115 (CarAppFocusManager.OnAppFocusChangedListener) (appType, active) -> { in connectCar()
|
D | AudioAutoStartActivity.java | 22 import static android.car.CarAppFocusManager.APP_FOCUS_TYPE_NAVIGATION; 23 import static android.car.CarAppFocusManager.OnAppFocusChangedListener; 39 import android.car.CarAppFocusManager; 68 private CarAppFocusManager mAppFocusManager; 105 (CarAppFocusManager) car.getCarManager(APP_FOCUS_SERVICE); in connectCar()
|
/packages/apps/Car/Cluster/DirectRenderingCluster/src/android/car/cluster/ |
D | ClusterRenderingService.java | 28 import android.car.CarAppFocusManager; 74 ImageResolver.BitmapFetcher, CarAppFocusManager.OnAppFocusChangedListener { 93 private CarAppFocusManager mAppFocusManager = null; 179 mAppFocusManager = (CarAppFocusManager) car.getCarManager(Car.APP_FOCUS_SERVICE); in onCreate() 180 mAppFocusManager.addFocusListener(this, CarAppFocusManager.APP_FOCUS_TYPE_NAVIGATION); in onCreate() 190 mAppFocusManager.removeFocusListener(this, CarAppFocusManager.APP_FOCUS_TYPE_NAVIGATION); in onDestroy() 263 CarAppFocusManager.APP_FOCUS_TYPE_NAVIGATION); in getNavigationClusterActivity()
|
D | ClusterViewModel.java | 23 import android.car.CarAppFocusManager; 75 private CarAppFocusManager mCarAppFocusManager; 101 mCarAppFocusManager = (CarAppFocusManager) mCar.getCarManager( in registerAppFocusListener() 106 CarAppFocusManager.APP_FOCUS_TYPE_NAVIGATION); in registerAppFocusListener()
|
/packages/services/Car/car-lib/api/ |
D | lint-baseline.txt | 8 CallbackInterface: android.car.CarAppFocusManager.OnAppFocusOwnershipCallback: 24 ExecutorRegistration: android.car.CarAppFocusManager#abandonAppFocus(android.car.CarAppFocusManager… 26 ExecutorRegistration: android.car.CarAppFocusManager#addFocusListener(android.car.CarAppFocusManage… 28 ExecutorRegistration: android.car.CarAppFocusManager#isOwningFocus(android.car.CarAppFocusManager.O… 30 ExecutorRegistration: android.car.CarAppFocusManager#requestAppFocus(int, android.car.CarAppFocusMa… 50 ListenerLast: android.car.CarAppFocusManager#abandonAppFocus(android.car.CarAppFocusManager.OnAppFo… 52 ListenerLast: android.car.CarAppFocusManager#isOwningFocus(android.car.CarAppFocusManager.OnAppFocu… 66 MissingNullability: android.car.CarAppFocusManager#abandonAppFocus(android.car.CarAppFocusManager.O… 68 MissingNullability: android.car.CarAppFocusManager#abandonAppFocus(android.car.CarAppFocusManager.O… 70 MissingNullability: android.car.CarAppFocusManager#addFocusListener(android.car.CarAppFocusManager.… [all …]
|
D | current.txt | 78 public final class CarAppFocusManager { 79 …method public void abandonAppFocus(android.car.CarAppFocusManager.OnAppFocusOwnershipCallback, int… 80 method public void abandonAppFocus(android.car.CarAppFocusManager.OnAppFocusOwnershipCallback); 81 …method public void addFocusListener(android.car.CarAppFocusManager.OnAppFocusChangedListener, int); 82 …method public boolean isOwningFocus(android.car.CarAppFocusManager.OnAppFocusOwnershipCallback, in… 83 …method public void removeFocusListener(android.car.CarAppFocusManager.OnAppFocusChangedListener, i… 84 … method public void removeFocusListener(android.car.CarAppFocusManager.OnAppFocusChangedListener); 85 …method public int requestAppFocus(int, android.car.CarAppFocusManager.OnAppFocusOwnershipCallback); 92 public static interface CarAppFocusManager.OnAppFocusChangedListener { 96 public static interface CarAppFocusManager.OnAppFocusOwnershipCallback {
|
/packages/apps/Car/Cluster/ClusterHomeSample/src/com/android/car/cluster/home/ |
D | ClusterHomeApplication.java | 39 import android.car.CarAppFocusManager; 40 import android.car.CarAppFocusManager.OnAppFocusChangedListener; 89 private CarAppFocusManager mAppFocusManager; 181 mAppFocusManager = (CarAppFocusManager) car.getCarManager( in onCreate() 221 CarAppFocusManager.APP_FOCUS_TYPE_NAVIGATION); in initClusterHome() 448 if (!active || appType != CarAppFocusManager.APP_FOCUS_TYPE_NAVIGATION) { 460 CarAppFocusManager.APP_FOCUS_TYPE_NAVIGATION); in getFocusedNavigationUi()
|
/packages/apps/Car/Cluster/ClusterOsDouble/src/com/android/car/cluster/view/ |
D | ClusterViewModel.java | 24 import android.car.CarAppFocusManager; 79 private CarAppFocusManager mCarAppFocusManager; 100 mCarAppFocusManager = (CarAppFocusManager) mCar.getCarManager(Car.APP_FOCUS_SERVICE); in registerAppFocusListener() 104 CarAppFocusManager.APP_FOCUS_TYPE_NAVIGATION); in registerAppFocusListener()
|
/packages/services/Car/service/src/com/android/car/cluster/ |
D | ClusterNavigationService.java | 22 import android.car.CarAppFocusManager; 170 CarAppFocusManager.APP_FOCUS_TYPE_NAVIGATION)) { in assertNavigationFocus() 177 if (appType != CarAppFocusManager.APP_FOCUS_TYPE_NAVIGATION) { in changeNavContextOwner()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/audio/ |
D | AudioTestFragment.java | 21 import static android.car.CarAppFocusManager.APP_FOCUS_TYPE_NAVIGATION; 22 import static android.car.CarAppFocusManager.APP_FOCUS_TYPE_VOICE_COMMAND; 57 import android.car.CarAppFocusManager; 58 import android.car.CarAppFocusManager.OnAppFocusChangedListener; 59 import android.car.CarAppFocusManager.OnAppFocusOwnershipCallback; 141 private CarAppFocusManager mAppFocusManager; 175 private final CarAppFocusManager.OnAppFocusOwnershipCallback mOwnershipCallbacks = 203 (CarAppFocusManager) car.getCarManager(Car.APP_FOCUS_SERVICE); in connectCar()
|
/packages/services/Car/service/src/com/android/car/ |
D | AppFocusService.java | 21 import android.car.CarAppFocusManager; 147 public List<String> getAppTypeOwner(@CarAppFocusManager.AppFocusType int appType) { in getAppTypeOwner() 201 return CarAppFocusManager.APP_FOCUS_REQUEST_FAILED; in requestAppFocus() 234 return CarAppFocusManager.APP_FOCUS_REQUEST_SUCCEEDED; in requestAppFocus()
|
/packages/services/Car/libs/car-test-lib/src/android/car/testapi/ |
D | FakeAppFocusService.java | 19 import android.car.CarAppFocusManager;
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/cluster/ |
D | InstrumentClusterServiceTest.java | 34 import android.car.CarAppFocusManager; 176 mNavigationService.onFocusAcquired(CarAppFocusManager.APP_FOCUS_TYPE_NAVIGATION, in initService()
|
/packages/services/Car/car-lib-module/api/ |
D | current.txt | 78 public final class CarAppFocusManager { 79 …method public void abandonAppFocus(android.car.CarAppFocusManager.OnAppFocusOwnershipCallback, int… 80 method public void abandonAppFocus(android.car.CarAppFocusManager.OnAppFocusOwnershipCallback); 81 …method public void addFocusListener(android.car.CarAppFocusManager.OnAppFocusChangedListener, int); 82 …method public boolean isOwningFocus(android.car.CarAppFocusManager.OnAppFocusOwnershipCallback, in… 83 …method public void removeFocusListener(android.car.CarAppFocusManager.OnAppFocusChangedListener, i… 84 … method public void removeFocusListener(android.car.CarAppFocusManager.OnAppFocusChangedListener); 85 …method public int requestAppFocus(int, android.car.CarAppFocusManager.OnAppFocusOwnershipCallback); 92 public static interface CarAppFocusManager.OnAppFocusChangedListener { 96 public static interface CarAppFocusManager.OnAppFocusOwnershipCallback {
|
D | test-current.txt | 9 public final class CarAppFocusManager {
|
/packages/services/Car/tests/carservice_unit_test/res/raw/ |
D | car_hidden_apis_release_33.3.txt | 33 android.car CarAppFocusManager int APP_FOCUS_MAX 34 android.car CarAppFocusManager CarAppFocusManager CarAppFocusManager(Car car, IBinder service) 35 android.car CarAppFocusManager int[] getActiveAppTypes() 36 android.car CarAppFocusManager List<String> getAppTypeOwner(int appType) 37 android.car CarAppFocusManager void onCarDisconnected()
|