Searched refs:mMcpService (Results 1 – 6 of 6) sorted by relevance
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/mcp/ |
D | McpServiceTest.java | 48 private McpService mMcpService; field in McpServiceTest 67 mMcpService = new McpService(mTargetContext, mMediaControlProfile); in setUp() 68 mMcpService.start(); in setUp() 69 mMcpService.setAvailable(true); in setUp() 74 if (mMcpService == null) { in tearDown() 78 mMcpService.stop(); in tearDown() 79 mMcpService = McpService.getMcpService(); in tearDown() 80 Assert.assertNull(mMcpService); in tearDown() 89 Assert.assertSame(mMcpServiceDuplicate, mMcpService); in testGetService() 99 mMcpService.setDeviceAuthorized(device0, true); in testAuthorization() [all …]
|
D | MediaControlGattServiceTest.java | 72 private MediaControlGattService mMcpService; field in MediaControlGattServiceTest 96 mMcpService = new MediaControlGattService(mMockMcpService, mMockMcsCallbacks, TEST_CCID); in setUp() 97 mMcpService.setBluetoothGattServerForTesting(mMockGattServer); in setUp() 98 mMcpService.setServiceManagerForTesting(mMockMcpService); in setUp() 99 mMcpService.setLeAudioServiceForTesting(mMockLeAudioService); in setUp() 107 mMcpService = null; in tearDown() 128 mMcpService.setCcc(mCurrentDevice, characteristic.getUuid(), 0, value, true); in prepareConnectedDevicesCccVal() 136 Assert.assertTrue(mMcpService.init(UUID_GMCS)); in testInit() 137 Assert.assertEquals(mMcpService.getServiceUuid(), UUID_GMCS); in testInit() 138 Assert.assertEquals(mMcpService.getContentControlId(), TEST_CCID); in testInit() [all …]
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/le_audio/ |
D | LeAudioServiceTest.java | 134 @Mock private McpService mMcpService; field in LeAudioServiceTest 215 mService.mMcpService = mMcpService; in setUp() 937 verify(mMcpService, times(1)).removeDeviceAuthorizationInfo(mLeftDevice); in testAuthorizationInfoRemovedFromTbsMcsOnUnbondEvents() 940 reset(mMcpService); in testAuthorizationInfoRemovedFromTbsMcsOnUnbondEvents() 979 verify(mMcpService, times(0)).removeDeviceAuthorizationInfo(mLeftDevice); in testAuthorizationInfoRemovedFromTbsMcsOnUnbondEvents() 982 reset(mMcpService); in testAuthorizationInfoRemovedFromTbsMcsOnUnbondEvents() 991 verify(mMcpService, times(1)).removeDeviceAuthorizationInfo(mLeftDevice); in testAuthorizationInfoRemovedFromTbsMcsOnUnbondEvents() 994 reset(mMcpService); in testAuthorizationInfoRemovedFromTbsMcsOnUnbondEvents() 1017 verify(mMcpService, times(0)).removeDeviceAuthorizationInfo(mLeftDevice); in testAuthorizationInfoRemovedFromTbsMcsOnUnbondEvents() 1020 reset(mMcpService); in testAuthorizationInfoRemovedFromTbsMcsOnUnbondEvents() [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/mcp/ |
D | MediaControlGattService.java | 152 private McpService mMcpService; field in MediaControlGattService 449 return mMcpService.getDeviceAuthorization(device); in getDeviceAuthorization() 648 mMcpService.onDeviceUnauthorized(device); in onUnauthorizedGattOperation() 884 List<ParcelUuid> uuidList = mMcpService.getNotificationSubscriptions(mCcid, device); in restoreCccValuesForStoredDevices() 1259 mMcpService = mcpService; in MediaControlGattService() 1405 mMcpService = manager; in setServiceManagerForTesting() 1485 mMcpService.setNotificationSubscription(mCcid, device, new ParcelUuid(charUuid), true); in setCcc() 1488 mMcpService.setNotificationSubscription(mCcid, device, new ParcelUuid(charUuid), false); in setCcc()
|
D | MediaControlProfile.java | 74 private final McpService mMcpService; field in MediaControlProfile 285 mMcpService = requireNonNull(mcpService); in MediaControlProfile() 797 MediaControlGattService svc = new MediaControlGattService(mMcpService, this, ccid); in init()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/le_audio/ |
D | LeAudioService.java | 201 @VisibleForTesting McpService mMcpService; field in LeAudioService 636 mMcpService = null; in stop() 4237 if (mMcpService != null) { in getMcpService() 4238 return mMcpService; in getMcpService() 4241 mMcpService = mServiceFactory.getMcpService(); in getMcpService() 4242 return mMcpService; in getMcpService()
|