Home
last modified time | relevance | path

Searched refs:IStateCallback (Results 1 – 11 of 11) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarRemoteDeviceManagerUnitTest.java38 import android.car.occupantconnection.IStateCallback;
113 IStateCallback[] binderCallback = new IStateCallback[1]; in testRegisterStateCallbackWithOccupantZoneStateChange()
121 binderCallback[0] = (IStateCallback) args[1]; in testRegisterStateCallbackWithOccupantZoneStateChange()
140 IStateCallback[] binderCallback = new IStateCallback[1]; in testRegisterStateCallbackWithAppStateChange()
145 binderCallback[0] = (IStateCallback) args[1]; in testRegisterStateCallbackWithAppStateChange()
/packages/modules/Connectivity/thread/framework/java/android/net/thread/
DIThreadNetworkController.aidl25 import android.net.thread.IStateCallback;
33 void registerStateCallback(in IStateCallback callback); in registerStateCallback()
34 void unregisterStateCallback(in IStateCallback callback); in unregisterStateCallback()
DIStateCallback.aidl22 oneway interface IStateCallback { interface
DThreadNetworkController.java243 private static final class StateCallbackProxy extends IStateCallback.Stub {
/packages/services/Car/car-lib/src/android/car/occupantconnection/
DICarRemoteDevice.aidl20 import android.car.occupantconnection.IStateCallback;
26 void registerStateCallback(String packageName, in IStateCallback callback); in registerStateCallback()
DIStateCallback.aidl22 oneway interface IStateCallback { interface
/packages/services/Car/service/src/com/android/car/occupantconnection/
DCarRemoteDeviceService.java54 import android.car.occupantconnection.IStateCallback;
157 private final BinderKeyValueContainer<ClientId, IStateCallback> mCallbackMap;
282 BinderKeyValueContainer<ClientId, IStateCallback> callbackMap, in CarRemoteDeviceService()
319 IStateCallback callback = mCallbackMap.valueAt(i); in dump()
350 public void registerStateCallback(String packageName, IStateCallback callback) { in registerStateCallback()
691 private void updateAllOccupantZoneStateLocked(@Nullable IStateCallback callbackToNotify) { in updateAllOccupantZoneStateLocked()
705 @Nullable IStateCallback callbackToNotify) { in updateOccupantZoneStateLocked()
724 IStateCallback callback = mCallbackMap.valueAt(i); in updateOccupantZoneStateLocked()
792 IStateCallback callbackToNotify) { in updateAllAppStateWithPackageNameLocked()
906 @Nullable IStateCallback callbackToNotify) { in setAppStateLocked()
[all …]
/packages/services/Car/car-lib/src/android/car/
DCarRemoteDeviceManager.java29 import android.car.occupantconnection.IStateCallback;
195 private final IStateCallback mBinderCallback = new IStateCallback.Stub() {
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/occupantconnection/
DCarRemoteDeviceServiceTest.java62 import android.car.occupantconnection.IStateCallback;
134 private IStateCallback mCallback;
139 private final BinderKeyValueContainer<ClientId, IStateCallback> mCallbackMap =
440 () -> mService.registerStateCallback(PACKAGE_NAME, any(IStateCallback.class))); in testRegisterStateCallbackWithoutPermission_throwsException()
446 () -> mService.registerStateCallback(FAKE_PACKAGE_NAME, any(IStateCallback.class))); in testRegisterStateCallbackWithFakePackageName_throwsException()
456 () -> mService.registerStateCallback(PACKAGE_NAME, any(IStateCallback.class))); in testRegisterDuplicateStateCallback_throwsException()
862 IStateCallback callback2 = mock(IStateCallback.class); in testUnregisterStateCallbackWithOtherDiscoverers()
/packages/modules/Connectivity/thread/tests/unit/src/android/net/thread/
DThreadNetworkControllerTest.java102 private static IStateCallback getStateCallback(InvocationOnMock invocation) { in getStateCallback()
103 return (IStateCallback) invocation.getArguments()[0]; in getStateCallback()
146 .registerStateCallback(any(IStateCallback.class)); in registerStateCallback_callbackIsInvokedWithCallingAppIdentity()
/packages/modules/Connectivity/thread/service/java/com/android/server/thread/
DThreadNetworkControllerService.java96 import android.net.thread.IStateCallback;
966 public void registerStateCallback(IStateCallback stateCallback) throws RemoteException {
972 public void unregisterStateCallback(IStateCallback stateCallback) throws RemoteException {
1375 private final Map<IStateCallback, CallbackMetadata> mStateCallbacks = new HashMap<>();
1383 public void registerStateCallback(IStateCallback callback) {
1407 public void unregisterStateCallback(IStateCallback callback) {
1464 for (IStateCallback callback : mStateCallbacks.keySet()) {