/packages/services/Car/tests/android_car_api_test/src/com/android/car/apitest/ |
D | CarAppContextManagerTest.java | 19 import android.car.CarAppContextManager; 28 private static final String TAG = CarAppContextManager.class.getSimpleName(); 29 private CarAppContextManager mManager; 34 mManager = (CarAppContextManager) getCar().getCarManager(Car.APP_CONTEXT_SERVICE); in setUp() 40 mManager.setActiveContexts(null, CarAppContextManager.APP_CONTEXT_NAVIGATION); in testSetActiveNullListener() 72 CarAppContextManager manager2 = (CarAppContextManager) in testContextChange() 81 mManager.registerContextListener(change, CarAppContextManager.APP_CONTEXT_NAVIGATION | in testContextChange() 82 CarAppContextManager.APP_CONTEXT_VOICE_COMMAND); in testContextChange() 83 manager2.registerContextListener(change2, CarAppContextManager.APP_CONTEXT_NAVIGATION | in testContextChange() 84 CarAppContextManager.APP_CONTEXT_VOICE_COMMAND); in testContextChange() [all …]
|
D | CarNavigationManagerTest.java | 19 import android.car.CarAppContextManager; 20 import android.car.CarAppContextManager.AppContextChangeListener; 21 import android.car.CarAppContextManager.AppContextOwnershipChangeListener; 40 private CarAppContextManager mCarAppContextManager; 49 (CarAppContextManager) getCar().getCarManager(Car.APP_CONTEXT_SERVICE); in setUp() 91 }, CarAppContextManager.APP_CONTEXT_NAVIGATION); in testStart() 97 }, CarAppContextManager.APP_CONTEXT_NAVIGATION); in testStart() 99 CarAppContextManager.APP_CONTEXT_NAVIGATION)); in testStart()
|
/packages/services/Car/tests/android_support_car_api_test/src/com/android/support/car/apitest/ |
D | CarAppContextManagerTest.java | 19 import android.support.car.CarAppContextManager; 28 private static final String TAG = CarAppContextManager.class.getSimpleName(); 29 private CarAppContextManager mManager; 34 mManager = (CarAppContextManager) getCar().getCarManager(Car.APP_CONTEXT_SERVICE); in setUp() 40 mManager.setActiveContexts(null, CarAppContextManager.APP_CONTEXT_NAVIGATION); in testSetActiveNullListener() 72 CarAppContextManager manager2 = (CarAppContextManager) in testContextChange() 81 mManager.registerContextListener(change, CarAppContextManager.APP_CONTEXT_NAVIGATION | in testContextChange() 82 CarAppContextManager.APP_CONTEXT_VOICE_COMMAND); in testContextChange() 83 manager2.registerContextListener(change2, CarAppContextManager.APP_CONTEXT_NAVIGATION | in testContextChange() 84 CarAppContextManager.APP_CONTEXT_VOICE_COMMAND); in testContextChange() [all …]
|
D | CarNavigationManagerTest.java | 18 import static android.support.car.CarAppContextManager.APP_CONTEXT_NAVIGATION; 22 import android.support.car.CarAppContextManager; 23 import android.support.car.CarAppContextManager.AppContextChangeListener; 24 import android.support.car.CarAppContextManager.AppContextOwnershipChangeListener; 39 private CarAppContextManager mCarAppContextManager; 48 (CarAppContextManager) getCar().getCarManager(Car.APP_CONTEXT_SERVICE); in setUp()
|
/packages/services/Car/tests/carservice_test/src/com/android/support/car/test/ |
D | AppContextTest.java | 22 import android.support.car.CarAppContextManager; 51 CarAppContextManager manager = (CarAppContextManager) getSupportCar().getCarManager( in testContextChange() 55 manager.registerContextListener(listener, CarAppContextManager.APP_CONTEXT_NAVIGATION | in testContextChange() 56 CarAppContextManager.APP_CONTEXT_VOICE_COMMAND); in testContextChange() 57 manager.setActiveContexts(ownershipListener, CarAppContextManager.APP_CONTEXT_NAVIGATION); in testContextChange() 58 … manager.setActiveContexts(ownershipListener, CarAppContextManager.APP_CONTEXT_VOICE_COMMAND); in testContextChange() 59 manager.resetActiveContexts(CarAppContextManager.APP_CONTEXT_NAVIGATION); in testContextChange() 60 manager.resetActiveContexts(CarAppContextManager.APP_CONTEXT_VOICE_COMMAND); in testContextChange() 64 private class ContextChangeListener implements CarAppContextManager.AppContextChangeListener { 86 implements CarAppContextManager.AppContextOwnershipChangeListener {
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/cluster/ |
D | InstrumentClusterFragment.java | 21 import android.support.car.CarAppContextManager; 22 import android.support.car.CarAppContextManager.AppContextChangeListener; 23 import android.support.car.CarAppContextManager.AppContextOwnershipChangeListener; 42 private CarAppContextManager mCarAppContextManager; 48 public void setCarAppContextManager(CarAppContextManager carAppContextManager) { in setCarAppContextManager() 91 }, CarAppContextManager.APP_CONTEXT_NAVIGATION); in initCluster() 106 }, CarAppContextManager.APP_CONTEXT_NAVIGATION); in initCluster() 114 CarAppContextManager.APP_CONTEXT_NAVIGATION); in initCluster()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/audio/ |
D | AudioTestFragment.java | 20 import android.car.CarAppContextManager; 21 import android.car.CarAppContextManager.AppContextChangeListener; 22 import android.car.CarAppContextManager.AppContextOwnershipChangeListener; 87 private CarAppContextManager mAppContextManager; 133 (CarAppContextManager) mCar.getCarManager(Car.APP_CONTEXT_SERVICE); in init() 142 }, CarAppContextManager.APP_CONTEXT_NAVIGATION | in init() 143 CarAppContextManager.APP_CONTEXT_VOICE_COMMAND); in init() 241 CarAppContextManager.APP_CONTEXT_NAVIGATION); in onCreateView() 252 CarAppContextManager.APP_CONTEXT_NAVIGATION); in onCreateView() 273 CarAppContextManager.APP_CONTEXT_VOICE_COMMAND); in onCreateView() [all …]
|
/packages/services/Car/car-lib/src/android/car/ |
D | CarAppContextManager.java | 35 public class CarAppContextManager implements CarManagerBase { class 89 CarAppContextManager(IBinder service, Looper looper) { in CarAppContextManager() method in CarAppContextManager 238 private final WeakReference<CarAppContextManager> mManager; 240 private IAppContextListenerImpl(CarAppContextManager manager) { in IAppContextListenerImpl() 246 final CarAppContextManager manager = mManager.get(); in onAppContextChange() 260 final CarAppContextManager manager = mManager.get(); in onAppContextOwnershipLoss()
|
D | Car.java | 481 manager = new CarAppContextManager(binder, mLooper); in createCarManager()
|
/packages/services/Car/car-support-lib/src/android/support/car/ |
D | CarAppContextManagerEmbedded.java | 26 public class CarAppContextManagerEmbedded extends CarAppContextManager { 28 private final android.car.CarAppContextManager mManager; 36 mManager = (android.car.CarAppContextManager) manager; in CarAppContextManagerEmbedded() 133 android.car.CarAppContextManager.AppContextChangeListener { 148 android.car.CarAppContextManager.AppContextOwnershipChangeListener {
|
D | CarAppContextManager.java | 26 public abstract class CarAppContextManager implements CarManagerBase { class
|
/packages/services/Car/service/src/com/android/car/ |
D | AppContextService.java | 18 import android.car.CarAppContextManager; 109 for (int c = CarAppContextManager.APP_CONTEXT_START_FLAG; in setActiveContexts() 110 c <= CarAppContextManager.APP_CONTEXT_END_FLAG; c = (c << 1)) { in setActiveContexts() 165 for (int c = CarAppContextManager.APP_CONTEXT_START_FLAG; in resetActiveContexts() 166 c <= CarAppContextManager.APP_CONTEXT_END_FLAG; c = (c << 1)) { in resetActiveContexts()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/ |
D | KitchenSinkActivity.java | 27 import android.support.car.CarAppContextManager; 68 private CarAppContextManager mCarAppContextManager; 178 (CarAppContextManager) mCarApi.getCarManager(Car.APP_CONTEXT_SERVICE);
|
/packages/services/Car/service/src/com/android/car/cluster/ |
D | CarNavigationService.java | 18 import android.car.CarAppContextManager; 169 CarAppContextManager.APP_CONTEXT_NAVIGATION)) { in verifyNavigationContextOwner()
|