Home
last modified time | relevance | path

Searched refs:ClusterHomeManager (Results 1 – 8 of 8) sorted by relevance

/aosp12/packages/apps/Car/SystemUI/src/com/android/systemui/car/cluster/
H A DClusterDisplayController.java19 import static android.car.cluster.ClusterHomeManager.CONFIG_DISPLAY_BOUNDS;
20 import static android.car.cluster.ClusterHomeManager.CONFIG_DISPLAY_ID;
23 import android.car.cluster.ClusterHomeManager;
57 private ClusterHomeManager mClusterHomeManager;
85 mClusterHomeManager = (ClusterHomeManager) car.getCarManager(Car.CLUSTER_HOME_SERVICE);
99 private final ClusterHomeManager.ClusterStateListener mClusterStateListener =
100 new ClusterHomeManager.ClusterStateListener() {
/aosp12/packages/services/Car/car-lib/src/android/car/cluster/
H A DClusterHomeManager.java40 public class ClusterHomeManager extends CarManagerBase { class
41 private static final String TAG = ClusterHomeManager.class.getSimpleName();
145 public ClusterHomeManager(Car car, IBinder service) { in ClusterHomeManager() method in ClusterHomeManager
239 private final WeakReference<ClusterHomeManager> mManager;
241 private IClusterStateListenerImpl(ClusterHomeManager manager) { in IClusterStateListenerImpl()
247 ClusterHomeManager manager = mManager.get(); in onClusterStateChanged()
259 private final WeakReference<ClusterHomeManager> mManager;
261 private IClusterNavigationStateListenerImpl(ClusterHomeManager manager) { in IClusterNavigationStateListenerImpl()
267 ClusterHomeManager manager = mManager.get(); in onNavigationStateChanged()
/aosp12/packages/apps/Car/Cluster/ClusterHomeSample/src/com/android/car/cluster/home/
H A DClusterHomeApplication.java22 import static android.car.cluster.ClusterHomeManager.ClusterStateListener;
23 import static android.car.cluster.ClusterHomeManager.UI_TYPE_CLUSTER_HOME;
24 import static android.car.cluster.ClusterHomeManager.UI_TYPE_CLUSTER_NONE;
40 import android.car.cluster.ClusterHomeManager;
73 private ClusterHomeManager mHomeManager;
109 mHomeManager = (ClusterHomeManager) car.getCarManager(Car.CLUSTER_HOME_SERVICE); in onCreate()
195 ClusterState state, @ClusterHomeManager.Config int changes) {
199 if ((changes & ClusterHomeManager.CONFIG_DISPLAY_BOUNDS) != 0
200 || (changes & ClusterHomeManager.CONFIG_DISPLAY_INSETS) != 0
201 || ((changes & ClusterHomeManager.CONFIG_UI_TYPE) != 0
/aosp12/packages/services/Car/tests/carservice_test/src/com/android/car/cluster/
H A DClusterHomeManagerTest.java32 import android.car.cluster.ClusterHomeManager;
86 private ClusterHomeManager mClusterHomeManager;
159 mClusterHomeManager = (ClusterHomeManager) getCar().getCarManager(Car.CLUSTER_HOME_SERVICE); in setUp()
196 assertThat(mChanges).isEqualTo(ClusterHomeManager.CONFIG_UI_TYPE); in testClusterSwitchUi()
216 assertThat(mChanges).isEqualTo(ClusterHomeManager.CONFIG_DISPLAY_ON_OFF in testClusterState()
217 | ClusterHomeManager.CONFIG_DISPLAY_BOUNDS in testClusterState()
218 | ClusterHomeManager.CONFIG_DISPLAY_INSETS); in testClusterState()
336 private class ClusterStateListenerImpl implements ClusterHomeManager.ClusterStateListener {
344 ClusterHomeManager.ClusterNavigationStateListener {
/aosp12/packages/services/Car/tests/carservice_unit_test/src/com/android/car/cluster/
H A DClusterHomeServiceUnitTest.java20 import static android.car.cluster.ClusterHomeManager.UI_TYPE_CLUSTER_HOME;
21 import static android.car.cluster.ClusterHomeManager.UI_TYPE_CLUSTER_NONE;
34 import android.car.cluster.ClusterHomeManager;
190 assertThat(mClusterStateChanges).isEqualTo(ClusterHomeManager.CONFIG_UI_TYPE); in onSwitchUiSendsDisplayState()
203 assertThat(mClusterStateChanges).isEqualTo(ClusterHomeManager.CONFIG_DISPLAY_ON_OFF); in displayOnSendsDisplayState()
217 assertThat(mClusterStateChanges).isEqualTo(ClusterHomeManager.CONFIG_DISPLAY_BOUNDS); in displayBoundsSendsDisplayState()
231 assertThat(mClusterStateChanges).isEqualTo(ClusterHomeManager.CONFIG_DISPLAY_INSETS); in displayInsetsSendsDisplayState()
/aosp12/packages/services/Car/service/src/com/android/car/cluster/
H A DClusterHomeService.java30 import android.car.cluster.ClusterHomeManager;
86 private int mUiType = ClusterHomeManager.UI_TYPE_CLUSTER_HOME;
142 sendDisplayState(ClusterHomeManager.CONFIG_DISPLAY_ID); in initClusterDisplay()
197 changes |= ClusterHomeManager.CONFIG_UI_TYPE; in onSwitchUi()
208 changes |= ClusterHomeManager.CONFIG_DISPLAY_ON_OFF; in onDisplayState()
212 changes |= ClusterHomeManager.CONFIG_DISPLAY_BOUNDS; in onDisplayState()
216 changes |= ClusterHomeManager.CONFIG_DISPLAY_INSETS; in onDisplayState()
/aosp12/packages/apps/Car/Cluster/ClusterOsDouble/src/com/android/car/cluster/osdouble/
H A DClusterOsDoubleActivity.java20 import static android.car.cluster.ClusterHomeManager.UI_TYPE_CLUSTER_HOME;
21 import static android.car.cluster.ClusterHomeManager.UI_TYPE_CLUSTER_NONE;
/aosp12/packages/services/Car/car-lib/src/android/car/
H A DCar.java38 import android.car.cluster.ClusterHomeManager;
1921 manager = new ClusterHomeManager(this, binder); in createCarManagerLocked()