Home
last modified time | relevance | path

Searched refs:mCarAppFocusManager (Results 1 – 5 of 5) sorted by relevance

/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarAppFocusManagerTest.java49 private CarAppFocusManager mCarAppFocusManager; field in CarAppFocusManagerTest
87 mCarAppFocusManager = in setUp()
103 assertThat(mCarAppFocusManager.getActiveAppTypes()).isEmpty(); in defaultState_noFocusesHeld()
108 int result = mCarAppFocusManager.requestAppFocus( in requestNavFocus_noCurrentFocus_requestShouldSucceed()
115 mCarAppFocusManager.requestAppFocus(CarAppFocusManager.APP_FOCUS_TYPE_NAVIGATION, in requestNavFocus_noCurrentFocus_callbackIsRun()
124 mCarAppFocusManager.requestAppFocus(CarAppFocusManager.APP_FOCUS_TYPE_NAVIGATION, in requestNavFocus_noCurrentFocus_holdsOwnership()
128 mCarAppFocusManager in requestNavFocus_noCurrentFocus_holdsOwnership()
135 mCarAppFocusManager.requestAppFocus(CarAppFocusManager.APP_FOCUS_TYPE_NAVIGATION, in requestNavFocus_noCurrentFocus_onlyNavActive()
138 assertThat(mCarAppFocusManager.getActiveAppTypes()) in requestNavFocus_noCurrentFocus_onlyNavActive()
149 mCarAppFocusManager.requestAppFocus(CarAppFocusManager.APP_FOCUS_TYPE_NAVIGATION, in app2GainsFocus_app1BroughtToForeground()
[all …]
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DCarNavigationManagerTest.java57 private CarAppFocusManager mCarAppFocusManager; field in CarNavigationManagerTest
63 mCarAppFocusManager = in setUp()
65 assertThat(mCarAppFocusManager).isNotNull(); in setUp()
128 mCarAppFocusManager.addFocusListener(new CarAppFocusManager.OnAppFocusChangedListener() { in testSendEvent()
145 mCarAppFocusManager.requestAppFocus(CarAppFocusManager.APP_FOCUS_TYPE_NAVIGATION, in testSendEvent()
147 assertThat(mCarAppFocusManager.isOwningFocus(ownershipCallback, in testSendEvent()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/cluster/
DInstrumentClusterFragment.java65 private CarAppFocusManager mCarAppFocusManager; field in InstrumentClusterFragment
80 mCarAppFocusManager = (CarAppFocusManager) car.getCarManager(
317 mCarAppFocusManager.addFocusListener(mOnAppFocusChangedListener, in initCluster()
319 mCarAppFocusManager.requestAppFocus(CarAppFocusManager.APP_FOCUS_TYPE_NAVIGATION, in initCluster()
325 boolean ownsFocus = mCarAppFocusManager.isOwningFocus(mFocusCallback, in hasFocus()
335 mCarAppFocusManager.removeFocusListener(mOnAppFocusChangedListener, in stopCluster()
337 mCarAppFocusManager.abandonAppFocus(mFocusCallback, in stopCluster()
/packages/apps/Car/Cluster/ClusterOsDouble/src/com/android/car/cluster/view/
DClusterViewModel.java79 private CarAppFocusManager mCarAppFocusManager; field in ClusterViewModel
93 mCarAppFocusManager = null;
100 mCarAppFocusManager = (CarAppFocusManager) mCar.getCarManager(Car.APP_FOCUS_SERVICE); in registerAppFocusListener()
101 if (mCarAppFocusManager != null) { in registerAppFocusListener()
102 mCarAppFocusManager.addFocusListener( in registerAppFocusListener()
180 mCarAppFocusManager = null; in onCleared()
/packages/apps/Car/Cluster/DirectRenderingCluster/src/android/car/cluster/
DClusterViewModel.java75 private CarAppFocusManager mCarAppFocusManager; field in ClusterViewModel
95 mCarAppFocusManager = null;
101 mCarAppFocusManager = (CarAppFocusManager) mCar.getCarManager( in registerAppFocusListener()
103 if (mCarAppFocusManager != null) { in registerAppFocusListener()
104 mCarAppFocusManager.addFocusListener( in registerAppFocusListener()
185 mCarAppFocusManager = null; in onCleared()