Home
last modified time | relevance | path

Searched refs:mBinder (Results 1 – 25 of 61) sorted by relevance

123

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiLockManagerTest.java74 @Mock IBinder mBinder; field in WifiLockManagerTest
192 acquireWifiLockSuccessful(WifiManager.WIFI_MODE_FULL_HIGH_PERF, "", mBinder, mWorkSource); in acquireWifiLockWithValidParamsShouldSucceed()
205 acquireWifiLockSuccessful(WifiManager.WIFI_MODE_FULL_HIGH_PERF, "", mBinder, mWorkSource); in secondCallToAcquireWifiLockWithSameBinderShouldFail()
209 WifiManager.WIFI_MODE_FULL_HIGH_PERF, "", mBinder, mWorkSource)); in secondCallToAcquireWifiLockWithSameBinderShouldFail()
221 acquireWifiLockSuccessful(WifiManager.WIFI_MODE_FULL_HIGH_PERF, "", mBinder, mWorkSource); in releaseWifiLockShouldSucceed()
222 releaseWifiLockSuccessful(mBinder); in releaseWifiLockShouldSucceed()
242 acquireWifiLockSuccessful(WifiManager.WIFI_MODE_FULL_HIGH_PERF, "", mBinder, toKeepWS); in releaseLocksForOneCallerNotImpactOtherCallers()
246 releaseWifiLockSuccessful(mBinder); in releaseLocksForOneCallerNotImpactOtherCallers()
258 assertFalse(mWifiLockManager.releaseWifiLock(mBinder)); in releaseWifiLockWithoutAcquireWillReturnFalse()
273 acquireWifiLockSuccessful(WifiManager.WIFI_MODE_FULL_HIGH_PERF, "", mBinder, mWorkSource); in checkForProperValueForGetStrongestLockMode()
[all …]
DDppManagerTest.java129 IBinder mBinder; field in DppManagerTest
200 mBinder, mUri, 1, EASY_CONNECT_NETWORK_ROLE_STA, mDppCallback); in testStartDppAsConfiguratorInitiatorWithBadNetworkId()
230 mBinder, mUri, 1, EASY_CONNECT_NETWORK_ROLE_STA, mDppCallback); in testStartDppAsConfiguratorInitiatorFailAddPeer()
250 mDppManager.startDppAsEnrolleeInitiator(0, TEST_INTERFACE_NAME, mBinder, mUri, in testStartDppAsEnrolleeInitiatorFailAddPeer()
283 mBinder, mUri, 1, EASY_CONNECT_NETWORK_ROLE_STA, mDppCallback); in testStartDppAsConfiguratorInitiatorFailStart()
302 mDppManager.startDppAsEnrolleeInitiator(0, TEST_INTERFACE_NAME, mBinder, mUri, in testStartDppAsEnrolleeInitiatorFailStart()
330 mBinder, mUri, 1, EASY_CONNECT_NETWORK_ROLE_STA, mDppCallback); in testStartDppAsConfiguratorInitiatorStartCorrectlyWpa2Psk()
356 mBinder, mUri, 1, EASY_CONNECT_NETWORK_ROLE_STA, mDppCallback); in testStartDppAsConfiguratorInitiatorStartCorrectlyWpa3Sae()
381 mBinder, mUri, 1, EASY_CONNECT_NETWORK_ROLE_STA, mDppCallback); in testStartDppAsConfiguratorInitiatorFailOpenNetwork()
406 mBinder, mUri, 1, EASY_CONNECT_NETWORK_ROLE_STA, mDppCallback); in testStartDppAsConfiguratorInitiatorFailEapNetwork()
[all …]
/packages/modules/Connectivity/framework/src/android/net/
DCaptivePortal.java72 private final IBinder mBinder; field in CaptivePortal
76 mBinder = binder; in CaptivePortal()
86 out.writeStrongBinder(mBinder); in writeToParcel()
109 ICaptivePortal.Stub.asInterface(mBinder).appResponse(APP_RETURN_DISMISSED); in reportCaptivePortalDismissed()
123 ICaptivePortal.Stub.asInterface(mBinder).appResponse(APP_RETURN_UNWANTED); in ignoreNetwork()
140 ICaptivePortal.Stub.asInterface(mBinder).appResponse(APP_RETURN_WANTED_AS_IS); in useNetwork()
153 ICaptivePortal.Stub.asInterface(mBinder).appRequest(APP_REQUEST_REEVALUATION_REQUIRED); in reevaluateNetwork()
/packages/services/Iwlan/test/com/google/android/iwlan/
DIwlanNetworkServiceTest.java58 INetworkService mBinder; field in IwlanNetworkServiceTest
89 mBinder = mIwlanNetworkService.mBinder; in setUp()
90 mBinder.createNetworkServiceProvider(DEFAULT_SLOT_INDEX); in setUp()
91 mBinder.registerForNetworkRegistrationInfoChanged(DEFAULT_SLOT_INDEX, mCallback); in setUp()
96 mBinder.removeNetworkServiceProvider(DEFAULT_SLOT_INDEX); in cleanUp()
131 mBinder.requestNetworkRegistrationInfo(0, domain, mCallback); in testRequestNetworkRegistrationInfo()
184 mBinder.requestNetworkRegistrationInfo(0, domain, mCallback); in testNetworkRegistrationInfoForCellularAndCstDisabled()
235 mBinder.requestNetworkRegistrationInfo(0, domain, mCallback); in testNetworkRegistrationInfoForCellularAndCstEnabled()
286 mBinder.requestNetworkRegistrationInfo(0, domain, mCallback); in testNetworkRegistrationInfoForWiFiAndCstEnabled()
337 mBinder.requestNetworkRegistrationInfo(0, domain, mCallback); in testNetworkRegistrationInfoForWiFiAndCstDisabled()
/packages/apps/RemoteProvisioner/tests/unittests/src/com/android/remoteprovisioner/unittest/
DSystemInterfaceTest.java85 private IRemoteProvisioning mBinder; field in SystemInterfaceTest
89 mBinder = in setUp()
91 assertNotNull(mBinder); in setUp()
92 mBinder.deleteAllKeys(); in setUp()
97 mBinder.deleteAllKeys(); in tearDown()
126 new byte[] {0x02}, encryptedBundle, deviceInfo, mBinder); in testGenerateCSR()
160 mBinder.generateKeyPair(true /* testMode */, SecurityLevel.TRUSTED_ENVIRONMENT); in testGenerateCSRProvisionAndUseKey()
166 new byte[] {0x02}, encryptedBundle, deviceInfo, mBinder); in testGenerateCSRProvisionAndUseKey()
205 mBinder); in testGenerateCSRProvisionAndUseKey() local
208 mBinder.getPoolStatus(0, SecurityLevel.TRUSTED_ENVIRONMENT); in testGenerateCSRProvisionAndUseKey()
[all …]
/packages/services/Telecomm/src/com/android/server/telecom/
DServiceBinder.java105 Preconditions.checkNotNull(mBinder); in bind()
234 private IBinder mBinder; field in ServiceBinder
329 if (mBinder == null) { in isServiceValid()
405 if (mServiceDeathRecipient != null && mBinder != null) { in unlinkDeathRecipient()
406 boolean unlinked = mBinder.unlinkToDeath(mServiceDeathRecipient, 0); in unlinkDeathRecipient()
426 if (mBinder != binder) { in setBinder()
429 mBinder = null; in setBinder()
434 mBinder = binder; in setBinder()
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DProfileService.java60 private IProfileServiceBinder mBinder; field in ProfileService
154 mBinder = initBinder(); in onCreate()
196 if (mAdapter != null && mBinder == null) { in onBind()
200 return mBinder; in onBind()
254 if (mBinder != null) { in onDestroy()
255 mBinder.cleanup(); in onDestroy()
256 mBinder = null; in onDestroy()
/packages/apps/SecureElement/src/com/android/se/
DChannel.java47 private IBinder mBinder = null; field in Channel
69 mBinder = listener.asBinder(); in Channel()
70 mBinder.linkToDeath(this, 0); in Channel()
83 + mBinder.toString() + " died"); in binderDied()
104 if (mBinder != null) { in close()
105 mBinder.unlinkToDeath(this, 0); in close()
/packages/services/Car/service/src/com/android/car/audio/hal/
DAudioControlWrapperAidl.java52 private IBinder mBinder; field in AudioControlWrapperAidl
64 mBinder = Objects.requireNonNull(binder); in AudioControlWrapperAidl()
180 mBinder.linkToDeath(this::binderDied, 0); in linkToDeath()
189 mBinder.unlinkToDeath(this::binderDied, 0); in unlinkToDeath()
196 mBinder = AudioControlWrapperAidl.getService(); in binderDied()
197 mAudioControl = IAudioControl.Stub.asInterface(mBinder); in binderDied()
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DQosCallbackAgentConnection.java50 @NonNull private final IBinder mBinder; field in QosCallbackAgentConnection
70 return mBinder; in getBinder()
108 mBinder = mCallback.asBinder(); in QosCallbackAgentConnection()
119 mBinder.unlinkToDeath(this, 0); in unlinkToDeathRecipient()
136 mBinder.linkToDeath(this, 0); in sendCmdRegisterCallback()
/packages/services/Car/cpp/powerpolicy/server/tests/
DCarPowerPolicyServerTest.cpp46 MockPowerPolicyChangeCallback() { mBinder = new MockBinder(); } in MockPowerPolicyChangeCallback()
51 EXPECT_CALL(*mBinder, linkToDeath(_, nullptr, 0)).WillRepeatedly(Return(linkToDeathResult)); in expectLinkToDeathStatus()
52 EXPECT_CALL(*mBinder, unlinkToDeath(_, nullptr, 0, nullptr)).WillRepeatedly(Return(OK)); in expectLinkToDeathStatus()
53 EXPECT_CALL(*this, onAsBinder()).WillRepeatedly(Return(mBinder.get())); in expectLinkToDeathStatus()
57 sp<MockBinder> mBinder; member in android::frameworks::automotive::powerpolicy::__anonb27e9aad0111::MockPowerPolicyChangeCallback
/packages/services/Car/cpp/watchdog/server/tests/
DWatchdogProcessServiceTest.cpp41 MockCarWatchdogClient() { mBinder = new MockBinder(); } in MockCarWatchdogClient()
42 sp<MockBinder> getBinder() const { return mBinder; } in getBinder()
47 sp<MockBinder> mBinder; member in android::automotive::watchdog::__anonc3a4f2180111::MockCarWatchdogClient
52 MockCarWatchdogMonitor() { mBinder = new MockBinder(); } in MockCarWatchdogMonitor()
53 sp<MockBinder> getBinder() const { return mBinder; } in getBinder()
58 sp<MockBinder> mBinder; member in android::automotive::watchdog::__anonc3a4f2180111::MockCarWatchdogMonitor
DMockCarWatchdogServiceForSystem.h36 MockCarWatchdogServiceForSystem() : mBinder(new MockBinder()) { in MockCarWatchdogServiceForSystem()
37 ON_CALL(*this, onAsBinder()).WillByDefault(::testing::Return(mBinder.get())); in MockCarWatchdogServiceForSystem()
40 android::sp<MockBinder> getBinder() const { return mBinder; } in getBinder()
58 android::sp<MockBinder> mBinder;
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/users/
DRestrictedProfilePinService.java39 private IRestrictedProfilePinService.Stub mBinder; field in RestrictedProfilePinService
43 mBinder = isSystemUser() ? new PinServiceImpl(this) : null; in onCreate()
48 return mBinder; in onBind()
53 mBinder = null; in onDestroy()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/hal/
DAudioControlWrapperAidlTest.java89 IBinder mBinder; field in AudioControlWrapperAidlTest
108 when(mBinder.queryLocalInterface(anyString())).thenReturn(mAudioControl); in setUp()
109 doReturn(mBinder).when(AudioControlWrapperAidl::getService); in setUp()
110 mAudioControlWrapperAidl = new AudioControlWrapperAidl(mBinder); in setUp()
273 verify(mBinder).linkToDeath(any(DeathRecipient.class), eq(0)); in linkToDeath_callsBinder()
281 verify(mBinder).linkToDeath(captor.capture(), eq(0)); in binderDied_fetchesNewBinder()
294 verify(mBinder).linkToDeath(captor.capture(), eq(0)); in binderDied_relinksToDeath()
299 verify(mBinder, times(2)).linkToDeath(any(DeathRecipient.class), eq(0)); in binderDied_relinksToDeath()
308 verify(mBinder).linkToDeath(captor.capture(), eq(0)); in binderDied_callsDeathRecipient()
/packages/modules/Connectivity/service/src/com/android/server/
DTestNetworkService.java169 private IBinder mBinder; field in TestNetworkService.TestNetworkAgent
186 mBinder = binder; // Binder null-checks in create() in TestNetworkAgent()
189 mBinder.linkToDeath(this, 0); in TestNetworkAgent()
218 if (mBinder == null) return; in teardown()
219 mBinder.unlinkToDeath(this, 0); in teardown()
220 mBinder = null; in teardown()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiMulticastLockManager.java68 IBinder mBinder; field in WifiMulticastLockManager.Multicaster
73 mBinder = binder; in Multicaster()
75 mBinder.linkToDeath(this, 0); in Multicaster()
93 mBinder.unlinkToDeath(this, 0); in unlinkDeathRecipient()
DWifiLockManager.java871 IBinder mBinder; field in WifiLockManager.WifiLock
878 mBinder = binder; in WifiLock()
884 mBinder.linkToDeath(this, 0); in WifiLock()
900 return mBinder; in getBinder()
908 releaseLock(mBinder); in binderDied()
913 mBinder.unlinkToDeath(this, 0); in unlinkDeathRecipient()
/packages/modules/Connectivity/tests/common/java/android/net/
DConnectivityDiagnosticsManagerTest.java70 private ConnectivityDiagnosticsBinder mBinder; field in ConnectivityDiagnosticsManagerTest
82 mBinder = new ConnectivityDiagnosticsBinder(mCb, INLINE_EXECUTOR); in setUp()
311 mBinder.onConnectivityReportAvailable(createSampleConnectivityReport()); in testConnectivityDiagnosticsCallbackOnConnectivityReportAvailable()
320 mBinder.onDataStallSuspected(createSampleDataStallReport()); in testConnectivityDiagnosticsCallbackOnDataStallSuspected()
332 mBinder.onNetworkConnectivityReported(n, connectivity); in testConnectivityDiagnosticsCallbackOnNetworkConnectivityReported()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DCallScreeningServiceFilterTest.java79 @Mock IBinder mBinder; field in CallScreeningServiceFilterTest
137 doReturn(mCallScreeningService).when(mBinder).queryLocalInterface(anyString()); in setUp()
246 serviceConnection.onServiceConnected(COMPONENT_NAME, mBinder); in testAllowCall()
282 serviceConnection.onServiceConnected(COMPONENT_NAME, mBinder); in testDisallowCall()
319 serviceConnection.onServiceConnected(COMPONENT_NAME, mBinder); in testSilenceCall()
354 serviceConnection.onServiceConnected(COMPONENT_NAME, mBinder); in testScreenCallFurther()
/packages/modules/Wifi/framework/java/android/net/wifi/aware/
DWifiAwareSession.java44 private final Binder mBinder; field in WifiAwareSession
55 mBinder = binder; in WifiAwareSession()
79 mgr.disconnect(mClientId, mBinder); in close()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DBatchService.java34 private final IBinder mBinder = new LocalBinder(); field in BatchService
39 return mBinder; in onBind()
/packages/modules/Connectivity/tests/cts/hostside/app2/src/com/android/cts/net/hostside/app2/
DRemoteSocketFactoryService.java36 private IRemoteSocketFactory.Stub mBinder = new IRemoteSocketFactory.Stub() { field in RemoteSocketFactoryService
61 return mBinder; in onBind()
/packages/services/Car/car-lib/src/android/car/content/pm/
DCarAppBlockingPolicyService.java43 private final ICarAppBlockingPolicyImpl mBinder = new ICarAppBlockingPolicyImpl(); field in CarAppBlockingPolicyService
60 return mBinder; in onBind()
/packages/apps/Car/Radio/src/com/android/car/radio/service/
DRadioAppService.java102 mWrapper = new RadioAppServiceWrapper(mBinder); in onCreate()
120 mSkipController = new SkipController(mBinder, favorites, skipMode); in onCreate()
159 return mBinder; in onBind()
289 private final IRadioAppService.Stub mBinder = new IRadioAppService.Stub() { field in RadioAppService

123