Home
last modified time | relevance | path

Searched refs:addService (Results 1 – 25 of 84) sorted by relevance

1234

/packages/modules/DeviceLock/DeviceLockController/tests/robolectric/src/com/android/devicelockcontroller/provision/grpc/impl/
DDeviceCheckinClientImplTest.java156 .addService(makeSucceedingService()) in getCheckInStatus_succeeds()
178 .addService(makeSucceedingService()) in getCheckInStatus_noFcmToken_succeeds()
201 .addService(makeSucceedingService()) in getCheckInStatus_emptyFcmToken_succeeds()
223 .addService(makeSucceedingService()) in getCheckInStatus_blankFcmToken_succeeds()
256 .addService(makeFailingService()) in getCheckInStatus_noDefaultConnectivity_fallsBackToNonVpn()
262 .addService(makeSucceedingService()) in getCheckInStatus_noDefaultConnectivity_fallsBackToNonVpn()
290 .addService(makeFailingService()) in getCheckInStatus_noConnectivityOrNonVpnNetwork_isNotSuccessful()
324 .addService(makeFailingService()) in getCheckInStatus_lostNonVpnConnection_isNotSuccessful()
346 .addService(makeSucceedingService()) in isDeviceInApprovedCountry_succeeds()
378 .addService(makeFailingService()) in isDeviceInApprovedCountry_noDefaultConnectivity_fallsBackToNonVpn()
[all …]
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/mdns/
DMdnsRecordRepositoryTest.kt187 repository.addService(TEST_SERVICE_ID_1, TEST_SERVICE_1, Duration.ofSeconds(50))) in makeFlags()
222 repository.addService(TEST_SERVICE_ID_2, TEST_SERVICE_1, null /* ttl */) in testAddAndConflicts()
225 repository.addService(TEST_SERVICE_ID_3, TEST_SERVICE_3, null /* ttl */) in testAddAndConflicts()
266 repository.addService(TEST_SERVICE_ID_1, TEST_SERVICE_1, null /* ttl */) in testInvalidReuseOfServiceId()
268 repository.addService(TEST_SERVICE_ID_1, TEST_SERVICE_2, null /* ttl */) in testInvalidReuseOfServiceId()
277 repository.addService(TEST_SERVICE_ID_1, TEST_SERVICE_1, null /* ttl */) in testHasActiveService()
369 repository.addService(TEST_SERVICE_ID_2, TEST_SERVICE_1, null /* ttl */)) in testExitingServiceReAdded()
867 repository.addService(TEST_CUSTOM_HOST_ID_2, TEST_CUSTOM_HOST_2, null /* ttl */) in testGetReply_AAAAQuestionForCustomHost_returnsAAAARecords()
1086 repository.addService( in testGetReply_customHostRemoved_noAnswerToAAAAQuestion()
1282 repository.addService(TEST_SERVICE_ID_1, TEST_SERVICE_1, null /* ttl */) in testGetConflictingServices()
[all …]
DMdnsAdvertiserTest.kt315 verify(mockInterfaceAdvertiser1).addService( in testAddService_AllNetworksWithSubType()
317 verify(mockInterfaceAdvertiser2).addService( in testAddService_AllNetworksWithSubType()
491 verify(mockInterfaceAdvertiser1).addService(eq(SERVICE_ID_1), in testAddService_Conflicts()
493 verify(mockInterfaceAdvertiser1).addService(eq(SERVICE_ID_2), in testAddService_Conflicts()
495 verify(mockInterfaceAdvertiser1).addService(eq(LONG_SERVICE_ID_1), in testAddService_Conflicts()
497 verify(mockInterfaceAdvertiser1).addService(eq(LONG_SERVICE_ID_2), in testAddService_Conflicts()
499 verify(mockInterfaceAdvertiser1).addService(eq(CASE_INSENSITIVE_TEST_SERVICE_ID), in testAddService_Conflicts()
534 verify(mockInterfaceAdvertiser1).addService(eq(SERVICE_ID_1), in testAddOrUpdateService_Updates()
556 verify(mockInterfaceAdvertiser2).addService(eq(SERVICE_ID_1), in testAddOrUpdateService_Updates()
574 verify(mockInterfaceAdvertiser1).addService(eq(SERVICE_ID_1), any(), eq(updateOptions)) in testAddOrUpdateService_customTtl_registeredSuccess()
DMdnsInterfaceAdvertiserTest.kt143 }.`when`(repository).addService(anyInt(), any(), any()) in setUp()
501 .addService(eq(TEST_SERVICE_ID_DUPLICATE), any(), any()) in testReplaceExitingService()
502 advertiser.addService(TEST_SERVICE_ID_DUPLICATE, TEST_SERVICE_1_SUBTYPE, in testReplaceExitingService()
504 verify(repository).addService(eq(TEST_SERVICE_ID_DUPLICATE), any(), any()) in testReplaceExitingService()
512 .addService(eq(TEST_SERVICE_ID_DUPLICATE), any(), any()) in testUpdateExistingService()
526 advertiser.addService(serviceId, serviceInfo, MdnsAdvertisingOptions.getDefaultOptions()) in addServiceAndStartProbing()
527 verify(repository).addService(serviceId, serviceInfo, null /* ttl */) in addServiceAndStartProbing()
/packages/services/Car/tests/carservice_test/src/com/android/car/garagemode/
DGarageModeControllerTest.java107 CarLocalServices.addService(CarUserService.class, mCarUserServiceMock); in setUp()
109 CarLocalServices.addService(SystemInterface.class, mSystemInterfaceMock); in setUp()
111 CarLocalServices.addService(CarPowerManagementService.class, in setUp()
134 CarLocalServices.addService(CarUserService.class, mCarUserServiceOriginal); in tearDown()
137 CarLocalServices.addService(CarPowerManagementService.class, in tearDown()
DGarageModeTest.java101 CarLocalServices.addService(CarUserService.class, mCarUserService); in setUp()
104 CarLocalServices.addService(SystemInterface.class, mSystemInterface); in setUp()
224 CarLocalServices.addService(CarPowerManagementService.class, mockCarPowerManagementService); in test_garageModeTestExitImmediately()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/le_audio/
DLeAudioTmapGattServer.java92 if (!mBluetoothGattServer.addService(service)) { in start()
179 public boolean addService(BluetoothGattService service) { in addService() method in LeAudioTmapGattServer.BluetoothGattServerProxy
180 return mBluetoothGattServer.addService(service); in addService()
/packages/services/Car/car-builtin-lib/src/android/car/builtin/os/
DServiceManagerHelper.java56 public static void addService(@NonNull String name, @NonNull IBinder service) { in addService() method in ServiceManagerHelper
57 ServiceManager.addService(name, service); in addService()
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/
DShadowServiceManagerExtend.java45 public static void addService(String name, Class<? extends IInterface> classService, in addService() method in ShadowServiceManagerExtend
50 ShadowServiceManager.addService(name, service); in addService()
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/discovery/ble/
DGattTransportServerProviderTest.java144 when(mMockBluetoothGattServer.addService(any())).thenReturn(true); in setUp()
162 when(mMockBluetoothGattServer.addService(any())).thenReturn(false); in testStart_failed()
164 verify(mMockBluetoothGattServer, times(1)).addService(any()); in testStart_failed()
170 verify(mMockBluetoothGattServer, times(1)).addService(any()); in testStart_successAndRejectRestart()
172 verify(mMockBluetoothGattServer, times(1)).addService(any()); in testStart_successAndRejectRestart()
179 verify(mMockBluetoothGattServer, times(1)).addService(any()); in testStop_failed()
187 verify(mMockBluetoothGattServer, times(1)).addService(any()); in testStop_successAndRejectRestop()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/tbs/
DBluetoothGattServerProxy.java63 public boolean addService(BluetoothGattService service) { in addService() method in BluetoothGattServerProxy
64 return mBluetoothGattServer.addService(service); in addService()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/wifi/
DCarWifiServiceUnitTest.java103 CarLocalServices.addService(CarUserService.class, mCarUserService); in setUp()
108 CarLocalServices.addService(CarPowerManagementService.class, mCarPowerManagementService); in setUp()
133 CarLocalServices.addService(CarUserService.class, mOriginalCarUserService); in tearDown()
135 CarLocalServices.addService(CarPowerManagementService.class, in tearDown()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/le_audio/
DLeAudioTmapGattServerTest.java63 doReturn(true).when(mGattServerProxy).addService(any()); in setUp()
78 verify(mGattServerProxy, times(1)).addService(captor.capture()); in testStartStopService()
/packages/services/Car/libs/procfs-inspector/server/
Dmain.cpp34 serviceManager->addService(String16(SERVICE_NAME), server.get()); in main()
/packages/modules/ImsMedia/test/imsmediahal/src/com/android/telephony/testimsmediahal/
DMediaBroadcastReceiver.java32 ServiceManager.addService(IImsMedia.DESCRIPTOR + "/default", in onReceive()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiLocalServices.java53 public static <T> void addService(Class<T> type, T service) { in addService() method in WifiLocalServices
/packages/services/Car/tools/keventreader/server/
Dmain.cpp63 serviceManager->addService(String16(SERVICE_NAME), service.get()); in main()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarLocationServiceTest.java116 CarLocalServices.addService(SystemInterface.class, mMockSystemInterface); in setUp()
118 CarLocalServices.addService(CarDrivingStateService.class, mMockCarDrivingStateService); in setUp()
120 CarLocalServices.addService(CarPerUserServiceHelper.class, mMockCarPerUserServiceHelper); in setUp()
/packages/modules/Bluetooth/system/audio_hal_interface/fuzzer/
Dlibbt_audio_hal_hearing_aid_software_encoding_fuzzer.cpp60 sm->addService(String16("android.hardware.bluetooth.audio." in LLVMFuzzerTestOneInput()
/packages/services/Car/service/src/com/android/car/
DCarLocalServices.java65 public static <T> void addService(Class<T> type, T service) { in addService() method in CarLocalServices
DCarServiceImpl.java82 ServiceManagerHelper.addService("car_service", mICarImpl); in onCreate()
/packages/modules/Connectivity/service-t/src/com/android/server/connectivity/mdns/
DMdnsAdvertiser.java486 void addService(int id, @NonNull Registration registration) { in addService() method in MdnsAdvertiser.InterfaceAdvertiserRequest
490 mAdvertisers.valueAt(i).addService(id, registration.getServiceInfo(), in addService()
556 advertiser.addService(mPendingRegistrations.keyAt(i), in onSocketCreated()
925 advertiser.addService(id, registration); in addOrUpdateService()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/os/
DCarPerformanceServiceUnitTest.java60 CarLocalServices.addService(CarWatchdogService.class, mMockCarWatchdogService); in setUp()
/packages/modules/Bluetooth/android/pandora/server/src/
DServer.kt77 services.forEach { grpcServerBuilder.addService(it) } in <lambda>()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/gatt/
DGattServiceBinderTest.java549 public void addService() { in addService() method in GattServiceBinderTest
553 mBinder.addService(serverIf, svc, mAttributionSource); in addService()
555 verify(mService).addService(serverIf, svc, mAttributionSource); in addService()

1234