Home
last modified time | relevance | path

Searched refs:Callbacks (Results 1 – 25 of 140) sorted by relevance

123456

/packages/modules/Bluetooth/system/bta/le_audio/audio_hal_client/
Daudio_hal_client.h118 class Callbacks {
120 Callbacks() = default;
121 virtual ~Callbacks() = default;
127 base::WeakPtrFactory<Callbacks> weak_factory_{this};
132 Callbacks* audioReceiver,
158 class Callbacks {
160 Callbacks() = default;
161 virtual ~Callbacks() = default;
169 base::WeakPtrFactory<Callbacks> weak_factory_{this};
174 Callbacks* audioReceiver,
Daudio_sink_hal_client.cc44 LeAudioSinkAudioHalClient::Callbacks* audioReceiver,
70 LeAudioSinkAudioHalClient::Callbacks* audioSinkCallbacks_ = nullptr;
136 base::BindOnce(&LeAudioSinkAudioHalClient::Callbacks::OnAudioResume, in OnResumeReq()
154 base::BindOnce(&LeAudioSinkAudioHalClient::Callbacks::OnAudioSuspend, in OnSuspendReq()
176 &LeAudioSinkAudioHalClient::Callbacks::OnAudioMetadataUpdate, in OnMetadataUpdateReq()
188 LeAudioSinkAudioHalClient::Callbacks* audioReceiver, in Start()
Daudio_source_hal_client.cc63 LeAudioSourceAudioHalClient::Callbacks* audioReceiver,
116 LeAudioSourceAudioHalClient::Callbacks* audioSourceCallbacks_ = nullptr;
193 base::BindOnce(&LeAudioSourceAudioHalClient::Callbacks::OnAudioResume, in OnResumeReq()
307 base::BindOnce(&LeAudioSourceAudioHalClient::Callbacks::OnAudioSuspend, in OnSuspendReq()
332 &LeAudioSourceAudioHalClient::Callbacks::OnAudioMetadataUpdate, in OnMetadataUpdateReq()
344 LeAudioSourceAudioHalClient::Callbacks* audioReceiver, in Start()
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherModel.java53 import com.android.launcher3.model.BgDataModel.Callbacks;
127 private final ArrayList<Callbacks> mCallbacksList = new ArrayList<>(1);
185 for (Callbacks cb : getCallbacks()) { in addAndBindAddedWorkspaceItems()
193 @Nullable final Callbacks owner) { in getWriter()
240 for (Callbacks cb : getCallbacks()) { in onBroadcastIntent()
315 public void removeCallbacks(@NonNull final Callbacks callbacks) { in removeCallbacks()
331 public boolean addCallbacksAndLoad(@NonNull final Callbacks callbacks) { in addCallbacksAndLoad()
334 return startLoader(new Callbacks[] { callbacks }); in addCallbacksAndLoad()
342 public void addCallbacks(@NonNull final Callbacks callbacks) { in addCallbacks()
354 return startLoader(new Callbacks[0]); in startLoader()
[all …]
/packages/modules/Connectivity/service-t/src/com/android/server/ethernet/
DEthernetNetworkAgent.java34 public interface Callbacks { interface in EthernetNetworkAgent
38 private final Callbacks mCallbacks;
47 @NonNull Callbacks cb) { in EthernetNetworkAgent()
62 public Callbacks getCallbacks() { in getCallbacks()
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/systembar/element/
DCarSystemBarElementStatusBarDisableControllerTest.java123 CommandQueue.Callbacks callbacks = getCommandQueueCallback(); in onStatusBarDisableChanged_doesNotAffectListener_listenerNotNotified()
137 CommandQueue.Callbacks callbacks = getCommandQueueCallback(); in onStatusBarDisableChanged_disablesListener_listenerNotified()
151 CommandQueue.Callbacks callbacks = getCommandQueueCallback(); in onStatusBarDisableChanged_enablesListener_listenerNotified()
164 private CommandQueue.Callbacks getCommandQueueCallback() { in getCommandQueueCallback()
165 ArgumentCaptor<CommandQueue.Callbacks> captor = ArgumentCaptor.forClass( in getCommandQueueCallback()
166 CommandQueue.Callbacks.class); in getCommandQueueCallback()
/packages/apps/DocumentsUI/src/com/android/documentsui/inspector/
DRuntimeDataSupplier.java52 private @Nullable Callbacks mDocCallbacks;
53 private @Nullable Callbacks mDirCallbacks;
85 mDocCallbacks = new Callbacks(mContext, uri, userId, callback); in loadDocInfo()
107 mDirCallbacks = new Callbacks(mContext, children, directory.userId, callback); in loadDirCount()
162 static final class Callbacks implements LoaderCallbacks<Cursor> { class in RuntimeDataSupplier
170 Callbacks(Context context, Uri uri, UserId userId, Consumer<Cursor> callback) { in Callbacks() method in RuntimeDataSupplier.Callbacks
/packages/apps/QuickAccessWallet/src/com/android/systemui/plugin/globalactions/wallet/
DWalletPluginService.java37 target = GlobalActionsPanelPlugin.Callbacks.class,
38 version = GlobalActionsPanelPlugin.Callbacks.VERSION),
71 GlobalActionsPanelPlugin.Callbacks callbacks, boolean deviceLocked) { in onPanelShown()
77 GlobalActionsPanelPlugin.Callbacks callbacks, in onPanelShown()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DModelDelegate.java88 @NonNull BgDataModel.Callbacks[] callbacks, in loadAndBindWorkspaceItems()
94 @NonNull BgDataModel.Callbacks[] callbacks, in loadAndBindAllAppsItems()
99 public void loadAndBindOtherItems(@NonNull BgDataModel.Callbacks[] callbacks) { } in loadAndBindOtherItems()
103 public void bindAllModelExtras(@NonNull BgDataModel.Callbacks[] callbacks) { } in bindAllModelExtras()
DBaseLauncherBinder.java42 import com.android.launcher3.model.BgDataModel.Callbacks;
83 final Callbacks[] mCallbacksList;
88 AllAppsList allAppsList, Callbacks[] callbacksList) { in BaseLauncherBinder()
155 for (Callbacks cb : mCallbacksList) { in bindWorkspaceAllAtOnce()
255 for (Callbacks cb : mCallbacksList) { in executeCallbacksTask()
276 private final Callbacks mCallbacks;
287 UnifiedWorkspaceBinder(Callbacks callbacks, in UnifiedWorkspaceBinder()
451 for (Callbacks cb : mCallbacksList) { in DisjointWorkspaceBinder()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/userpicker/
DHeaderState.java23 import com.android.systemui.car.userpicker.UserPickerController.Callbacks;
39 private Callbacks mCallbacks;
43 HeaderState(Callbacks callbacks) { in HeaderState()
/packages/services/Car/service/src/com/android/car/bluetooth/
DFastPairAdvertiser.java88 private Callbacks mCallbacks;
95 public interface Callbacks { interface in FastPairAdvertiser
125 public void advertiseModelId(int modelId, Callbacks callback) { in advertiseModelId()
176 public void advertiseAccountKeys(List<AccountKey> accountKeys, Callbacks callback) { in advertiseAccountKeys()
264 private boolean startAdvertisingInternal(byte[] data, int interval, Callbacks callbacks) { in startAdvertisingInternal()
396 public final Callbacks mCallback;
398 AdvertisingRequest(byte[] data, int interval, Callbacks callback) { in AdvertisingRequest()
409 public void startAdvertising(byte[] data, int interval, Callbacks callback) { in startAdvertising()
DFastPairProvider.java61 FastPairAdvertiser.Callbacks mAdvertiserCallbacks = new FastPairAdvertiser.Callbacks() {
68 FastPairGattServer.Callbacks mGattServerCallbacks = new FastPairGattServer.Callbacks() {
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DKeyInputHandler.java38 private final Callbacks<DocumentItemDetails> mCallbacks;
43 Callbacks<DocumentItemDetails> callbacks) { in KeyInputHandler()
106 public static abstract class Callbacks<T extends ItemDetails<?>> { class in KeyInputHandler
/packages/modules/Bluetooth/system/gd/rust/linux/stack/src/
Dbattery_provider_manager.rs2 use crate::callbacks::Callbacks;
39 battery_provider_callbacks: Callbacks<dyn IBatteryProviderCallback + Send>,
48 Callbacks::new(tx.clone(), Message::BatteryProviderManagerCallbackDisconnected); in new()
Dbattery_manager.rs2 use crate::callbacks::Callbacks;
63 callbacks: Callbacks<dyn IBatteryManagerCallback + Send>,
72 let callbacks = Callbacks::new(tx.clone(), Message::BatteryManagerCallbackDisconnected); in new()
Dcallbacks.rs9 pub struct Callbacks<T: Send + ?Sized> { struct
16 impl<T: RPCProxy + Send + ?Sized> Callbacks<T> { argument
125 let mut callbacks = Callbacks::new(tx.clone(), Message::AdapterCallbackDisconnected); in test_add_and_remove()
Dbluetooth_qa.rs3 use crate::callbacks::Callbacks;
57 callbacks: Callbacks<dyn IBluetoothQACallback + Send>,
64 callbacks: Callbacks::new(tx.clone(), Message::QaCallbackDisconnected), in new()
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/
DPasspointEventHandler.java39 private final Callbacks mCallbacks;
45 public interface Callbacks { interface in PasspointEventHandler
70 public PasspointEventHandler(WifiInjector wifiInjector, Callbacks callbacks) { in PasspointEventHandler()
/packages/modules/Bluetooth/system/bta/le_audio/
Dstate_machine.h34 class Callbacks {
36 virtual ~Callbacks() = default;
48 static void Initialize(Callbacks* state_machine_callbacks);
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/bass_client/
DBassClientStateMachineTest.java746 BassClientService.Callbacks callbacks = Mockito.mock(BassClientService.Callbacks.class); in gattCallbackOnCharacteristicRead()
918 BassClientService.Callbacks callbacks = Mockito.mock(BassClientService.Callbacks.class); in gattCallbackOnCharacteristicChanged()
1369 BassClientService.Callbacks callbacks = Mockito.mock(BassClientService.Callbacks.class); in sendAddBcastSourceMessage_inConnectedState()
1435 BassClientService.Callbacks callbacks = Mockito.mock(BassClientService.Callbacks.class); in sendUpdateBcastSourceMessage_inConnectedState()
1540 BassClientService.Callbacks callbacks = Mockito.mock(BassClientService.Callbacks.class); in sendSetBcastCodeMessage_inConnectedState()
1662 BassClientService.Callbacks callbacks = Mockito.mock(BassClientService.Callbacks.class); in receiveSinkReceiveState_inConnectedState()
1740 BassClientService.Callbacks callbacks = Mockito.mock(BassClientService.Callbacks.class); in sendRemoveBcastSourceMessage_inConnectedState()
1827 BassClientService.Callbacks callbacks = Mockito.mock(BassClientService.Callbacks.class); in sendGattTxnProcessedMessage_inConnectedProcessingState()
1987 BassClientService.Callbacks callbacks = Mockito.mock(BassClientService.Callbacks.class); in sendAddBcastSourceMessage_NoResponseWrite()
2022 BassClientService.Callbacks callbacks = Mockito.mock(BassClientService.Callbacks.class); in sendAddBcastSourceMessage_LongWrite()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
DWorkProfileManager.java25 import static com.android.launcher3.model.BgDataModel.Callbacks.FLAG_HAS_SHORTCUT_PERMISSION;
26 import static com.android.launcher3.model.BgDataModel.Callbacks.FLAG_QUIET_MODE_CHANGE_PERMISSION;
27 import static com.android.launcher3.model.BgDataModel.Callbacks.FLAG_QUIET_MODE_ENABLED;
28 import static com.android.launcher3.model.BgDataModel.Callbacks.FLAG_WORK_PROFILE_QUIET_MODE_ENABLE…
/packages/apps/Launcher3/tests/src/com/android/launcher3/model/
DLoaderTaskTest.kt174 .setFlags(BgDataModel.Callbacks.FLAG_WORK_PROFILE_QUIET_MODE_ENABLED, true) in setsQuietModeFlagCorrectlyForWorkProfile()
176 .setFlags(BgDataModel.Callbacks.FLAG_PRIVATE_PROFILE_QUIET_MODE_ENABLED, false) in setsQuietModeFlagCorrectlyForWorkProfile()
178 .setFlags(BgDataModel.Callbacks.FLAG_QUIET_MODE_ENABLED, true) in setsQuietModeFlagCorrectlyForWorkProfile()
195 .setFlags(BgDataModel.Callbacks.FLAG_WORK_PROFILE_QUIET_MODE_ENABLED, false) in setsQuietModeFlagCorrectlyForPrivateProfile()
197 .setFlags(BgDataModel.Callbacks.FLAG_PRIVATE_PROFILE_QUIET_MODE_ENABLED, true) in setsQuietModeFlagCorrectlyForPrivateProfile()
199 .setFlags(BgDataModel.Callbacks.FLAG_QUIET_MODE_ENABLED, true) in setsQuietModeFlagCorrectlyForPrivateProfile()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/model/
DQuickstepModelDelegate.java131 @NonNull BgDataModel.Callbacks[] callbacks, in loadAndBindWorkspaceItems()
140 @NonNull BgDataModel.Callbacks[] callbacks, in loadAndBindAllAppsItems()
149 @NonNull BgDataModel.Callbacks[] callbacks, in loadAndBindItems()
166 public void loadAndBindOtherItems(@NonNull BgDataModel.Callbacks[] callbacks) { in loadAndBindOtherItems()
178 private void bindPredictionItems(@NonNull BgDataModel.Callbacks[] callbacks, in bindPredictionItems()
181 for (BgDataModel.Callbacks c : callbacks) { in bindPredictionItems()
189 public void bindAllModelExtras(@NonNull BgDataModel.Callbacks[] callbacks) { in bindAllModelExtras()
195 for (BgDataModel.Callbacks c : callbacks) { in bindAllModelExtras()
/packages/modules/Connectivity/tests/integration/util/com/android/server/
DNetworkAgentWrapper.java96 public static class Callbacks { class in NetworkAgentWrapper
101 public Callbacks() { in Callbacks() method in NetworkAgentWrapper.Callbacks
105 public Callbacks(Consumer<NetworkAgent> onNetworkCreated, in Callbacks() method in NetworkAgentWrapper.Callbacks
114 private final Callbacks mCallbacks;
124 Callbacks callbacks, Context context) throws Exception { in NetworkAgentWrapper()
175 mCallbacks = (callbacks != null) ? callbacks : new Callbacks(); in NetworkAgentWrapper()

123456