Home
last modified time | relevance | path

Searched refs:binder (Results 1 – 25 of 202) sorted by relevance

123456789

/packages/services/Car/car-lib/src/android/car/
DCarAppFocusManager.java145 IAppFocusListenerImpl binder; in addFocusListener() local
147 binder = mChangeBinders.get(listener); in addFocusListener()
148 if (binder == null) { in addFocusListener()
149 binder = new IAppFocusListenerImpl(this, listener); in addFocusListener()
150 mChangeBinders.put(listener, binder); in addFocusListener()
152 binder.addAppType(appType); in addFocusListener()
155 mService.registerFocusListener(binder, appType); in addFocusListener()
167 IAppFocusListenerImpl binder; in removeFocusListener() local
169 binder = mChangeBinders.get(listener); in removeFocusListener()
170 if (binder == null) { in removeFocusListener()
[all …]
DCar.java1547 IBinder binder = mService.getCarService(serviceName); in getCarManager() local
1548 if (binder == null) { in getCarManager()
1553 manager = createCarManagerLocked(serviceName, binder); in getCarManager()
1801 private CarManagerBase createCarManagerLocked(String serviceName, IBinder binder) { in createCarManagerLocked() argument
1805 manager = new CarAudioManager(this, binder); in createCarManagerLocked()
1808 manager = new CarSensorManager(this, binder); in createCarManagerLocked()
1811 manager = new CarInfoManager(this, binder); in createCarManagerLocked()
1814 manager = new CarAppFocusManager(this, binder); in createCarManagerLocked()
1817 manager = new CarPackageManager(this, binder); in createCarManagerLocked()
1820 manager = new CarOccupantZoneManager(this, binder); in createCarManagerLocked()
[all …]
/packages/services/Car/service/src/com/android/car/
DBinderInterfaceContainer.java93 IBinder binder = binderInterface.asBinder(); in addBinder() local
95 BinderInterface<T> bInterface = mBinders.get(binder); in addBinder()
101 binder.linkToDeath(bInterface, 0); in addBinder()
105 mBinders.put(binder, bInterface); in addBinder()
114 IBinder binder = binderInterface.asBinder(); in removeBinder() local
116 BinderInterface<T> bInterface = mBinders.get(binder); in removeBinder()
120 binder.unlinkToDeath(bInterface, 0); in removeBinder()
121 mBinders.remove(binder); in removeBinder()
129 IBinder binder = binderInterface.asBinder(); in getBinderInterface() local
131 return mBinders.get(binder); in getBinderInterface()
[all …]
/packages/services/Car/cpp/watchdog/server/src/
DWatchdogProcessService.h60 virtual android::binder::Status registerClient(const android::sp<ICarWatchdogClient>& client,
62 virtual android::binder::Status unregisterClient(const android::sp<ICarWatchdogClient>& client);
63 virtual android::binder::Status registerCarWatchdogService(const android::sp<IBinder>& binder);
64 virtual void unregisterCarWatchdogService(const android::sp<IBinder>& binder);
65 virtual android::binder::Status registerMonitor(
68 virtual android::binder::Status unregisterMonitor(
71 virtual android::binder::Status tellClientAlive(const android::sp<ICarWatchdogClient>& client,
73 virtual android::binder::Status tellCarWatchdogServiceAlive(
77 virtual android::binder::Status tellDumpFinished(
82 virtual android::binder::Status notifyUserStateChange(
[all …]
DWatchdogServiceHelper.h50 virtual android::binder::Status registerService(
54 virtual android::binder::Status unregisterService(
60 virtual android::binder::Status checkIfAlive(const android::wp<android::IBinder>& who,
63 virtual android::binder::Status prepareProcessTermination(
65 virtual android::binder::Status getPackageInfosForUids(
68 virtual android::binder::Status latestIoOveruseStats(
71 virtual android::binder::Status resetResourceOveruseStats(
91 android::binder::Status registerService(
95 android::binder::Status unregisterService(
102 android::binder::Status checkIfAlive(const android::wp<android::IBinder>& who,
[all …]
DWatchdogBinderMediator.h69 android::binder::Status registerClient(const android::sp<ICarWatchdogClient>& client,
71 android::binder::Status unregisterClient(
73 android::binder::Status tellClientAlive(const android::sp<ICarWatchdogClient>& client,
75 android::binder::Status addResourceOveruseListener(
78 android::binder::Status removeResourceOveruseListener(
80 android::binder::Status getResourceOveruseStats(
85 android::binder::Status registerMediator(
87 android::binder::Status unregisterMediator(
89 android::binder::Status registerMonitor(
91 android::binder::Status unregisterMonitor(
[all …]
DWatchdogInternalHandler.h60 android::binder::Status registerCarWatchdogService(
64 android::binder::Status unregisterCarWatchdogService(
68 android::binder::Status registerMonitor(
71 android::binder::Status unregisterMonitor(
74 android::binder::Status tellCarWatchdogServiceAlive(
78 android::binder::Status tellDumpFinished(
82 android::binder::Status notifySystemStateChange(
85 android::binder::Status updateResourceOveruseConfigurations(
89 android::binder::Status getResourceOveruseConfigurations(
92 android::binder::Status actionTakenOnResourceOveruse(
[all …]
DWatchdogProcessService.cpp60 using ::android::binder::Status;
165 sp<IBinder> binder = BnCarWatchdogClient::asBinder(client); in unregisterClient() local
168 return unregisterClientLocked(kTimeouts, binder, ClientType::Regular); in unregisterClient()
171 Status WatchdogProcessService::registerCarWatchdogService(const sp<IBinder>& binder) { in registerCarWatchdogService() argument
180 ClientInfo clientInfo(mWatchdogServiceHelper, binder, callingPid, callingUid); in registerCarWatchdogService()
184 void WatchdogProcessService::unregisterCarWatchdogService(const sp<IBinder>& binder) { in unregisterCarWatchdogService() argument
188 unregisterClientLocked(timeouts, binder, ClientType::Service); in unregisterCarWatchdogService()
193 sp<IBinder> binder = aawi::BnCarWatchdogMonitor::asBinder(monitor); in registerMonitor() local
194 if (mMonitor != nullptr && binder == aawi::BnCarWatchdogMonitor::asBinder(mMonitor)) { in registerMonitor()
197 status_t ret = binder->linkToDeath(mBinderDeathRecipient); in registerMonitor()
[all …]
/packages/services/Car/cpp/watchdog/server/tests/
DMockWatchdogProcessService.h48 MOCK_METHOD(android::binder::Status, registerClient,
50 MOCK_METHOD(android::binder::Status, unregisterClient, (const sp<ICarWatchdogClient>& client),
52 MOCK_METHOD(android::binder::Status, registerCarWatchdogService,
53 (const android::sp<IBinder>& binder), (override));
54 MOCK_METHOD(void, unregisterCarWatchdogService, (const android::sp<IBinder>& binder),
56 MOCK_METHOD(android::binder::Status, registerMonitor,
59 MOCK_METHOD(android::binder::Status, unregisterMonitor,
62 MOCK_METHOD(android::binder::Status, tellClientAlive,
64 MOCK_METHOD(android::binder::Status, tellCarWatchdogServiceAlive,
70 MOCK_METHOD(android::binder::Status, tellDumpFinished,
[all …]
DWatchdogProcessServiceTest.cpp33 using ::android::binder::Status;
77 sp<MockBinder> binder = client->getBinder(); in createMockCarWatchdogClient() local
78 EXPECT_CALL(*binder, linkToDeath(_, nullptr, 0)).WillRepeatedly(Return(linkToDeathResult)); in createMockCarWatchdogClient()
79 EXPECT_CALL(*binder, unlinkToDeath(_, nullptr, 0, nullptr)).WillRepeatedly(Return(OK)); in createMockCarWatchdogClient()
80 EXPECT_CALL(*client, onAsBinder()).WillRepeatedly(Return(binder.get())); in createMockCarWatchdogClient()
86 sp<MockBinder> binder = monitor->getBinder(); in createMockCarWatchdogMonitor() local
87 EXPECT_CALL(*binder, linkToDeath(_, nullptr, 0)).WillRepeatedly(Return(linkToDeathResult)); in createMockCarWatchdogMonitor()
88 EXPECT_CALL(*binder, unlinkToDeath(_, nullptr, 0, nullptr)).WillRepeatedly(Return(OK)); in createMockCarWatchdogMonitor()
89 EXPECT_CALL(*monitor, onAsBinder()).WillRepeatedly(Return(binder.get())); in createMockCarWatchdogMonitor()
139 sp<IBinder> binder = mockService->getBinder(); in TEST_F() local
[all …]
DMockWatchdogServiceHelper.h42 MOCK_METHOD(android::binder::Status, registerService,
45 MOCK_METHOD(android::binder::Status, unregisterService,
50 MOCK_METHOD(android::binder::Status, checkIfAlive,
52 MOCK_METHOD(android::binder::Status, prepareProcessTermination,
54 MOCK_METHOD(android::binder::Status, getPackageInfosForUids,
59 android::binder::Status, latestIoOveruseStats,
62 MOCK_METHOD(android::binder::Status, resetResourceOveruseStats,
/packages/apps/RemoteProvisioner/src/com/android/remoteprovisioner/
DPeriodicProvisioner.java83 IRemoteProvisioning binder = in run() local
85 if (binder == null) { in run()
104 ImplInfo[] implInfos = binder.getImplementationInfo(); in run()
113 isProvisioningNeeded(binder, expiringBy, implInfos, keysNeededForSecLevel); in run()
129 binder.deleteAllKeys(); in run()
149 binder.deleteAllKeys(); in run()
163 binder, in run()
192 IRemoteProvisioning binder, long expiringBy, ImplInfo[] implInfos, in isProvisioningNeeded() argument
203 generateNumKeysNeeded(binder, in isProvisioningNeeded()
224 private int generateNumKeysNeeded(IRemoteProvisioning binder, long expiringBy, int secLevel) in generateNumKeysNeeded() argument
[all …]
/packages/services/Car/car-lib/src/android/car/test/
DCarTestManagerBinderWrapper.java27 public final IBinder binder; field in CarTestManagerBinderWrapper
29 public CarTestManagerBinderWrapper(IBinder binder) { in CarTestManagerBinderWrapper() argument
31 this.binder = binder; in CarTestManagerBinderWrapper()
35 public CarTestManagerBinderWrapper(Car car, IBinder binder) { in CarTestManagerBinderWrapper() argument
37 this.binder = binder; in CarTestManagerBinderWrapper()
/packages/apps/RemoteProvisioner/src/com/android/remoteprovisioner/service/
DGenerateRkpKeyService.java58 IRemoteProvisioning binder =
60 checkAndFillPool(binder, securityLevel);
69 IRemoteProvisioning binder =
71 checkAndFillPool(binder, securityLevel);
77 private void checkAndFillPool(IRemoteProvisioning binder, int secLevel)
80 binder.getPoolStatus(System.currentTimeMillis(), secLevel);
81 ImplInfo[] implInfos = binder.getImplementationInfo();
101 binder.generateKeyPair(false /* isTestMode */, secLevel);
113 resp.getChallenge(), binder, context);
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
DPeriodicScanManager.java136 IBinder binder = entry.getKey(); in onSyncStarted() local
137 binder.unlinkToDeath(entry.getValue().deathRecipient, 0); in onSyncStarted()
138 mSyncs.remove(binder); in onSyncStarted()
183 IBinder binder = toBinder(callback); in startSync() local
185 binder.linkToDeath(deathRecipient, 0); in startSync()
194 mSyncs.put(binder, new SyncInfo(cbId, deathRecipient, callback)); in startSync()
197 Log.d(TAG, "startSync() - reg_id=" + cbId + ", callback: " + binder); in startSync()
203 IBinder binder = toBinder(callback); in stopSync() local
205 Log.d(TAG, "stopSync() " + binder); in stopSync()
208 SyncInfo sync = mSyncs.remove(binder); in stopSync()
[all …]
DAdvertiseManager.java160 IBinder binder = entry.getKey(); in onAdvertisingSetStarted() local
161 binder.unlinkToDeath(entry.getValue().deathRecipient, 0); in onAdvertisingSetStarted()
162 mAdvertisers.remove(binder); in onAdvertisingSetStarted()
190 IBinder binder = toBinder(callback); in startAdvertisingSet() local
192 binder.linkToDeath(deathRecipient, 0); in startAdvertisingSet()
203 mAdvertisers.put(binder, new AdvertiserInfo(cbId, deathRecipient, callback)); in startAdvertisingSet()
206 Log.d(TAG, "startAdvertisingSet() - reg_id=" + cbId + ", callback: " + binder); in startAdvertisingSet()
238 IBinder binder = toBinder(callback); in stopAdvertisingSet() local
240 Log.d(TAG, "stopAdvertisingSet() " + binder); in stopAdvertisingSet()
243 AdvertiserInfo adv = mAdvertisers.remove(binder); in stopAdvertisingSet()
[all …]
/packages/modules/Virtualization/virtmanager/src/
Daidl.rs26 use android_system_virtmanager::binder::{
55 ) -> binder::Result<Strong<dyn IVirtualMachine>> { in startVm()
91 fn debugListVms(&self) -> binder::Result<Vec<VirtualMachineDebugInfo>> { in debugListVms()
113 fn debugHoldVmRef(&self, vmref: &Strong<dyn IVirtualMachine>) -> binder::Result<()> { in debugHoldVmRef()
126 fn debugDropVmRef(&self, cid: i32) -> binder::Result<Option<Strong<dyn IVirtualMachine>>> { in debugDropVmRef()
151 let binder = VirtualMachine { instance }; in create() localVariable
152 BnVirtualMachine::new_binder(binder, BinderFeatures::default()) in create()
159 fn getCid(&self) -> binder::Result<i32> { in getCid()
163 fn isRunning(&self) -> binder::Result<bool> { in isRunning()
170 ) -> binder::Result<()> { in registerCallback()
[all …]
/packages/services/Car/cpp/watchdog/car-watchdog-lib/src/android/car/watchdoglib/
DCarWatchdogDaemonHelper.java325 IBinder binder = ServiceManager.getService(CAR_WATCHDOG_DAEMON_INTERFACE); in makeBinderConnection() local
326 if (binder == null) { in makeBinderConnection()
335 ICarWatchdog daemon = ICarWatchdog.Stub.asInterface(binder); in makeBinderConnection()
352 IBinder binder; in linkToDeath() local
357 binder = mCarWatchdogDaemon.asBinder(); in linkToDeath()
359 if (binder == null) { in linkToDeath()
364 binder.linkToDeath(mDeathRecipient, 0); in linkToDeath()
371 IBinder binder; in unlinkToDeath() local
376 binder = mCarWatchdogDaemon.asBinder(); in unlinkToDeath()
378 if (binder == null) { in unlinkToDeath()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiMulticastLockManagerTest.java99 IBinder binder = mock(IBinder.class); in oneLock() local
100 mManager.acquireLock(binder, WL_1_TAG); in oneLock()
149 IBinder binder = mock(IBinder.class); in oneLock_changePrimaryClientModeManager() local
150 mManager.acquireLock(binder, WL_1_TAG); in oneLock_changePrimaryClientModeManager()
184 IBinder binder = mock(IBinder.class); in oneLock_wrongName() local
185 mManager.acquireLock(binder, WL_1_TAG); in oneLock_wrongName()
203 IBinder binder = mock(IBinder.class); in multipleLocksInOrder() local
208 mManager.acquireLock(binder, WL_1_TAG); in multipleLocksInOrder()
213 mManager.acquireLock(binder, WL_2_TAG); in multipleLocksInOrder()
237 IBinder binder = mock(IBinder.class); in multipleLocksOutOfOrder() local
[all …]
/packages/modules/Connectivity/framework/src/android/net/
DTestNetworkManager.java78 @NonNull IBinder binder) { in setupTestNetwork() argument
80 mService.setupTestNetwork(iface, lp, isMetered, administratorUids, binder); in setupTestNetwork()
97 @NonNull LinkProperties lp, boolean isMetered, @NonNull IBinder binder) { in setupTestNetwork() argument
99 setupTestNetwork(lp.getInterfaceName(), lp, isMetered, new int[0], binder); in setupTestNetwork() local
111 public void setupTestNetwork(@NonNull String iface, @NonNull IBinder binder) { in setupTestNetwork() argument
112 setupTestNetwork(iface, null, true, new int[0], binder); in setupTestNetwork()
125 @NonNull String iface, @NonNull int[] administratorUids, @NonNull IBinder binder) { in setupTestNetwork() argument
126 setupTestNetwork(iface, null, true, administratorUids, binder); in setupTestNetwork()
/packages/services/Telecomm/src/com/android/server/telecom/
DServiceBinder.java146 public void onServiceConnected(ComponentName componentName, IBinder binder) { in onServiceConnected() argument
163 if (binder != null) { in onServiceConnected()
166 binder.linkToDeath(mServiceDeathRecipient, 0); in onServiceConnected()
168 setBinder(binder); in onServiceConnected()
425 private void setBinder(IBinder binder) { in setBinder() argument
426 if (mBinder != binder) { in setBinder()
427 if (binder == null) { in setBinder()
434 mBinder = binder; in setBinder()
435 setServiceInterface(binder); in setBinder()
445 protected abstract void setServiceInterface(IBinder binder); in setServiceInterface() argument
/packages/services/Car/cpp/powerpolicy/server/src/
DCarPowerPolicyServer.h122 android::binder::Status notifyCarServiceReady(
125 android::binder::Status notifyPowerPolicyChange(const std::string& policyId) override;
126 android::binder::Status notifyPowerPolicyDefinition(
157 binder::Status getCurrentPowerPolicy(CarPowerPolicy* aidlReturn) override;
158 binder::Status getPowerComponentState(PowerComponent componentId, bool* aidlReturn) override;
159 binder::Status registerPowerPolicyChangeCallback(
162 binder::Status unregisterPowerPolicyChangeCallback(
170 android::binder::Status notifyCarServiceReady(
172 android::binder::Status notifyPowerPolicyChange(const std::string& policyId);
173 android::binder::Status notifyPowerPolicyDefinition(
/packages/services/Car/car-lib/native/CarPowerManager/
DCarPowerManager.cpp89 sp<IBinder> binder = (serviceManager->getService(ICarName)); in connectToCarService() local
90 if (binder == nullptr) { in connectToCarService()
96 sp<ICar> iCar = interface_cast<ICar>(binder); in connectToCarService()
102 iCar->getCarService(ICarPowerName, &binder); in connectToCarService()
103 if (binder == nullptr) { in connectToCarService()
108 mICarPower = interface_cast<ICarPower>(binder); in connectToCarService()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiLockManager.java216 public boolean acquireWifiLock(int lockMode, String tag, IBinder binder, WorkSource ws) { in acquireWifiLock() argument
221 return addLock(new WifiLock(lockMode, tag, binder, newWorkSource)); in acquireWifiLock()
230 public boolean releaseWifiLock(IBinder binder) { in releaseWifiLock() argument
231 return releaseLock(binder); in releaseWifiLock()
286 public synchronized void updateWifiLockWorkSource(IBinder binder, WorkSource ws) { in updateWifiLockWorkSource() argument
289 WifiLock wl = findLockByBinder(binder); in updateWifiLockWorkSource()
552 private synchronized WifiLock removeLock(IBinder binder) { in removeLock() argument
553 WifiLock lock = findLockByBinder(binder); in removeLock()
561 private synchronized boolean releaseLock(IBinder binder) { in releaseLock() argument
562 WifiLock wifiLock = removeLock(binder); in releaseLock()
[all …]
/packages/services/Mms/tests/robotests/src/com/android/mms/service/
DMmsServiceRoboTest.java39 private IMms.Stub binder; field in MmsServiceRoboTest
47 binder = (IMms.Stub) mmsService.onBind(intent); in setUp()
52 assertThat(binder).isNotNull(); in testOnBind_IsNotNull()
58 binder.sendMessage(/* subId= */ 0, "callingPkg", Uri.parse("contentUri"), in testSendMessage_DoesNotThrowIfSystemUid()
66 () -> binder.sendMessage(/* subId= */ 0, "callingPkg", Uri.parse("contentUri"), in testSendMessageThrows_IfNotSystemUid()

123456789