Home
last modified time | relevance | path

Searched refs:broker (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/location/contexthub/
DContextHubClientBrokerTest.java68 ContextHubClientBroker broker = in createFromCallback() local
80 assertThat(broker.isWakelockUsable()).isTrue(); in createFromCallback()
81 assertThat(broker.getWakeLock().isHeld()).isFalse(); in createFromCallback()
82 return broker; in createFromCallback()
86 ContextHubClientBroker broker = in createFromPendingIntent() local
98 assertThat(broker.isWakelockUsable()).isTrue(); in createFromPendingIntent()
99 assertThat(broker.getWakeLock().isHeld()).isFalse(); in createFromPendingIntent()
100 return broker; in createFromPendingIntent()
106 ContextHubClientBroker broker = createFromCallback(); in testWakeLock_callback_onNanoAppLoaded() local
108 broker.onNanoAppLoaded(NANOAPP_ID); in testWakeLock_callback_onNanoAppLoaded()
[all …]
/frameworks/base/services/core/java/com/android/server/location/contexthub/
DContextHubClientManager.java108 RegistrationRecord(String broker, @Action int action) { in RegistrationRecord() argument
109 mBroker = broker; in RegistrationRecord()
154 ContextHubClientBroker broker; in registerClient() local
157 broker = new ContextHubClientBroker( in registerClient()
161 mHostEndPointIdToClientMap.put(hostEndPointId, broker); in registerClient()
163 new RegistrationRecord(broker.toString(), ACTION_REGISTERED)); in registerClient()
167 broker.attachDeathRecipient(); in registerClient()
171 broker.close(); in registerClient()
175 Log.d(TAG, "Registered client with host endpoint ID " + broker.getHostEndPointId()); in registerClient()
176 return IContextHubClient.Stub.asInterface(broker); in registerClient()
[all …]
DContextHubClientBroker.java1029 ContextHubClientBroker broker = this; in sendPendingIntent() local
1044 broker.onSendFinished(pendingIntent, intent, resultCode, resultData, in sendPendingIntent()
/frameworks/av/media/libaudiohal/impl/
DDeviceHalAidl.cpp314 explicit StreamCallbackBase(const sp<CallbackBroker>& broker) : mBroker(broker) {} in StreamCallbackBase() argument
331 sp<C> getCb(const sp<CallbackBroker>& broker, void* cookie);
343 const sp<CallbackBroker>& broker, void* cookie) { in getCb() argument
344 if (broker != nullptr) return broker->getStreamOutCallback(cookie); in getCb()
351 const sp<CallbackBroker>& broker, void* cookie) { in getCb() argument
352 if (broker != nullptr) return broker->getStreamOutEventCallback(cookie); in getCb()
359 const sp<CallbackBroker>& broker, void* cookie) { in getCb() argument
360 if (broker != nullptr) return broker->getStreamOutLatencyModeCallback(cookie); in getCb()
382 explicit OutputStreamCallbackAidl(const sp<CallbackBroker>& broker) in OutputStreamCallbackAidl() argument
383 : StreamCallbackBase(broker), in OutputStreamCallbackAidl()
[all …]
DStreamHalAidl.cpp682 if (auto broker = mCallbackBroker.promote(); broker != nullptr) { in ~StreamOutHalAidl() local
683 broker->clearCallbacks(static_cast<StreamOutHalInterface*>(this)); in ~StreamOutHalAidl()
900 if (auto broker = mCallbackBroker.promote(); broker != nullptr) { in setEventCallback() local
901 broker->setStreamOutEventCallback(static_cast<StreamOutHalInterface*>(this), callback); in setEventCallback()
934 if (auto broker = mCallbackBroker.promote(); broker != nullptr) { in setLatencyModeCallback() local
935 broker->setStreamOutLatencyModeCallback( in setLatencyModeCallback()
/frameworks/base/core/proto/android/server/location/
Dcontext_hub.proto41 optional string broker = 3; field
/frameworks/base/services/core/java/com/android/server/audio/
DAudioDeviceInventory.java575 /*package*/ AudioDeviceInventory(@NonNull AudioDeviceBroker broker) { in AudioDeviceInventory() argument
576 this(broker, AudioSystemAdapter.getDefaultAdapter()); in AudioDeviceInventory()
585 private AudioDeviceInventory(@Nullable AudioDeviceBroker broker, in AudioDeviceInventory() argument
587 mDeviceBroker = broker; in AudioDeviceInventory()
593 /*package*/ void setDeviceBroker(@NonNull AudioDeviceBroker broker) { in setDeviceBroker() argument
594 mDeviceBroker = broker; in setDeviceBroker()
DBtHelper.java80 BtHelper(@NonNull AudioDeviceBroker broker, Context context) { in BtHelper() argument
81 mDeviceBroker = broker; in BtHelper()