Home
last modified time | relevance | path

Searched refs:cb (Results 1 – 25 of 81) sorted by relevance

1234

/packages/apps/Camera2/src/com/android/camera/
DButtonManager.java336 public void initializeButton(int buttonId, ButtonCallback cb) { in initializeButton() argument
337 initializeButton(buttonId, cb, null); in initializeButton()
348 public void initializeButton(int buttonId, ButtonCallback cb, ButtonCallback preCb) { in initializeButton() argument
352 initializeFlashButton(button, cb, preCb, R.array.camera_flashmode_icons); in initializeButton()
355 initializeTorchButton(button, cb, preCb, R.array.video_flashmode_icons); in initializeButton()
358 initializeHdrPlusFlashButton(button, cb, preCb, R.array.camera_flashmode_icons); in initializeButton()
361 initializeCameraButton(button, cb, preCb, R.array.camera_id_icons); in initializeButton()
364 initializeHdrPlusButton(button, cb, preCb, R.array.pref_camera_hdr_plus_icons); in initializeButton()
367 initializeHdrButton(button, cb, preCb, R.array.pref_camera_hdr_icons); in initializeButton()
370 initializeGridLinesButton(button, cb, preCb, R.array.grid_lines_icons); in initializeButton()
[all …]
/packages/modules/NetworkStack/tests/unit/src/android/net/testutils/
DTestableNetworkCallbackTest.kt142 mCallback.expectCallbackThat { cb -> cb is BlockedStatus && cb.blocked } in <lambda>() method
144 assertFails { mCallback.expectCallbackThat(SHORT_TIMEOUT_MS) { cb -> in <lambda>() method
145 cb is CapabilitiesChanged && cb.caps.hasTransport(WIFI) in <lambda>()
241 threadTransform = { cb -> cb.createLinkedCopy() }, spec = """ in <lambda>() method
261 Regex("""(.*)\s+=\s+($EntryList)\((\d+)\)""") to { i, cb, t -> in t() method
262 val record = i.interpret(t.strArg(1), cb) in t()
274 Regex("""on($EntryList)\((\d+)\)""") to { i, cb, t -> in t() method
277 "Available" -> cb.onAvailable(net) in t()
279 "CapabilitiesChanged" -> cb.onCapabilitiesChanged(net, NetworkCapabilities()) in t()
280 "LinkPropertiesChanged" -> cb.onLinkPropertiesChanged(net, LinkProperties()) in t()
[all …]
/packages/modules/NetworkStack/src/com/android/server/
DNetworkStackService.java165 @NonNull INetworkMonitorCallbacks cb, @NonNull Network network, in makeNetworkMonitor() argument
167 return new NetworkMonitor(context, cb, network, log, nsServiceManager); in makeNetworkMonitor()
173 @NonNull IIpClientCallbacks cb, @NonNull NetworkObserverRegistry observerRegistry, in makeIpClient() argument
175 return new IpClient(context, ifName, cb, observerRegistry, nsServiceManager); in makeIpClient()
342 @NonNull IDhcpServerCallbacks cb) throws RemoteException { in makeDhcpServer() argument
344 updateNetworkStackAidlVersion(cb.getInterfaceVersion(), cb.getInterfaceHash()); in makeDhcpServer()
354 cb.onDhcpServerCreated(STATUS_INVALID_ARGUMENT, null); in makeDhcpServer()
358 cb.onDhcpServerCreated(STATUS_UNKNOWN_ERROR, null); in makeDhcpServer()
361 cb.onDhcpServerCreated(STATUS_SUCCESS, server.makeConnector()); in makeDhcpServer()
365 public void makeNetworkMonitor(Network network, String name, INetworkMonitorCallbacks cb) in makeNetworkMonitor() argument
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/
DBrowsedPlayerWrapper.java137 boolean connect(ConnectionCallback cb) { in connect() argument
138 if (cb == null) { in connect()
143 cb.run(status, wrapper); in connect()
240 public boolean getFolderItems(String mediaId, BrowseCallback cb) {
243 cb.run(STATUS_SUCCESS, mediaId, Util.cloneList(mCachedFolders.get(mediaId)));
247 if (cb == null) {
256 cb.run(status, "", new ArrayList<ListItem>());
258 getFolderItemsInternal(mediaId, cb);
263 private boolean getFolderItemsInternal(String mediaId, BrowseCallback cb) {
264 mWrappedBrowser.subscribe(mediaId, new BrowserSubscriptionCallback(cb));
[all …]
DBrowsablePlayerConnector.java74 PlayerListCallback cb) { in connectToPlayers() argument
78 if (cb == null) { in connectToPlayers()
83 BrowsablePlayerConnector newWrapper = new BrowsablePlayerConnector(context, looper, cb); in connectToPlayers()
112 private BrowsablePlayerConnector(Context context, Looper looper, PlayerListCallback cb) { in BrowsablePlayerConnector() argument
114 mCallback = cb; in BrowsablePlayerConnector()
/packages/apps/Nfc/nci/jni/
DIntervalTimer.cpp33 bool IntervalTimer::set(int ms, TIMER_FUNC cb) { in set() argument
35 if (cb == NULL) return false; in set()
37 if (!create(cb)) return false; in set()
39 if (cb != mCb) { in set()
41 if (!create(cb)) return false; in set()
67 bool IntervalTimer::create(TIMER_FUNC cb) { in create() argument
77 se.sigev_notify_function = cb; in create()
80 mCb = cb; in create()
/packages/modules/NetworkStack/common/networkstackclient/src/android/net/networkstack/
DNetworkStackClientBase.java54 final IDhcpServerCallbacks cb) { in makeDhcpServer() argument
57 connector.makeDhcpServer(ifName, params, cb); in makeDhcpServer()
69 public void makeIpClient(String ifName, IIpClientCallbacks cb) { in makeIpClient() argument
72 connector.makeIpClient(ifName, cb); in makeIpClient()
84 public void makeNetworkMonitor(Network network, String name, INetworkMonitorCallbacks cb) { in makeNetworkMonitor() argument
87 connector.makeNetworkMonitor(network, name, cb); in makeNetworkMonitor()
99 public void fetchIpMemoryStore(IIpMemoryStoreCallbacks cb) { in fetchIpMemoryStore() argument
102 connector.fetchIpMemoryStore(cb); in fetchIpMemoryStore()
/packages/apps/Camera2/src/com/android/camera/ui/
DMarginDrawable.java60 Rect cb = canvas.getClipBounds(); in draw() local
62 canvas.drawRect(0, 0, cb.right, s.top + 1, mPaint); in draw()
67 if (s.right < cb.right) { in draw()
68 canvas.drawRect(s.right - 1, s.top, cb.right, s.bottom, mPaint); in draw()
70 if (s.bottom < cb.bottom) { in draw()
71 canvas.drawRect(0, s.bottom - 1, cb.right, cb.bottom, mPaint); in draw()
/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpServer.java287 public void start(@Nullable INetworkStackStatusCallback cb) { in start() argument
289 DhcpServer.this.start(cb); in start()
301 @Nullable INetworkStackStatusCallback cb) { in updateParams() argument
303 DhcpServer.this.updateParams(params, cb); in updateParams()
307 public void stop(@Nullable INetworkStackStatusCallback cb) { in stop() argument
309 DhcpServer.this.stop(cb); in stop()
329 void start(@Nullable INetworkStackStatusCallback cb) { in start() argument
330 start(cb, null); in start()
349 @Nullable INetworkStackStatusCallback cb) { in updateParams() argument
356 maybeNotifyStatus(cb, STATUS_INVALID_ARGUMENT); in updateParams()
[all …]
/packages/services/Car/tools/keventreader/server/
Deventprovider.cpp31 for (auto&& cb : mCallbacks) { in startLoop()
33 cb->onEvent(event); in startLoop()
42 Status EventProviderImpl::registerCallback(const sp<IEventCallback>& cb) { in registerCallback() argument
44 mCallbacks.push_back(cb); in registerCallback()
48 Status EventProviderImpl::unregisterCallback(const sp<IEventCallback>& cb) { in unregisterCallback() argument
50 std::remove(mCallbacks.begin(), mCallbacks.end(), cb); in unregisterCallback()
/packages/apps/Car/Radio/src/com/android/car/radio/platform/
DTunerCallbackAdapterExt.java91 void setTuneFailedCallback(TuneFailedCallback cb) { in setTuneFailedCallback() argument
92 mTuneFailedCallback.set(cb); in setTuneFailedCallback()
95 void setProgramInfoCallback(ProgramInfoCallback cb) { in setProgramInfoCallback() argument
97 mProgramInfoCallback = cb; in setProgramInfoCallback()
113 TuneFailedCallback cb = mTuneFailedCallback.get(); in onTuneFailed() local
114 if (cb != null) { in onTuneFailed()
115 cb.onTuneFailed(result, selector); in onTuneFailed()
/packages/apps/Bluetooth/jni/
Dcom_android_bluetooth_avrcp_target.cpp53 GetFolderItemsCb cb);
61 ::bluetooth::avrcp::VolumeInterface::VolumeChangedCb cb);
83 void GetSongInfo(SongInfoCallback cb) override { in GetSongInfo() argument
85 cb.Run(info); in GetSongInfo()
88 void GetPlayStatus(PlayStatusCallback cb) override { in GetPlayStatus() argument
90 cb.Run(status); in GetPlayStatus()
93 void GetNowPlayingList(NowPlayingCallback cb) override { in GetNowPlayingList() argument
96 cb.Run(curr_song_id, std::move(now_playing_list)); in GetNowPlayingList()
99 void GetMediaPlayerList(MediaListCallback cb) override { in GetMediaPlayerList() argument
102 cb.Run(current_player, std::move(player_list)); in GetMediaPlayerList()
[all …]
/packages/modules/IPsec/src/java/com/android/internal/net/eap/
DEapAuthenticator.java70 Looper looper, IEapCallback cb, Context context, EapSessionConfig eapSessionConfig) { in EapAuthenticator() argument
71 this(looper, cb, context, eapSessionConfig, DEFAULT_RANDOM_FACTORY); in EapAuthenticator()
86 IEapCallback cb, in EapAuthenticator() argument
92 cb, in EapAuthenticator()
104 IEapCallback cb, in EapAuthenticator() argument
110 mCb = cb; in EapAuthenticator()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapSettingsAdapter.java112 holder.cb = (CheckBox) convertView.findViewById(R.id.bluetooth_map_settings_item_check); in getChildView()
120 holder.cb.setOnCheckedChangeListener(new OnCheckedChangeListener() { in getChildView()
183 holder.cb.setChecked(child.mIsChecked); in getChildView()
233 holder.cb = in getGroupView()
250 holder.cb.setOnCheckedChangeListener(new OnCheckedChangeListener() { in getGroupView()
285 holder.cb.setChecked(groupItem.mIsChecked); in getGroupView()
302 public CheckBox cb; field in BluetoothMapSettingsAdapter.GroupHolder
309 public CheckBox cb; field in BluetoothMapSettingsAdapter.ChildHolder
/packages/apps/Gallery/src/com/android/camera/
DImageGetter.java180 Runnable cb = callback(mCurrentPosition, offset,
184 mHandler.postGetterCallback(cb);
216 Runnable cb = callback(mCurrentPosition, offset,
218 mHandler.postGetterCallback(cb);
267 public synchronized void setPosition(int position, ImageGetterCallback cb,
274 mCB = cb;
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/connectivity/
DConnectivityFragment.java197 NetworkByIdCallback cb = new NetworkByIdCallback(network); in requestNetworkById() local
198 mNetworkCallbacks.put(netId, cb); in requestNetworkById()
199 mConnectivityManager.requestNetwork(request, cb); in requestNetworkById()
204 NetworkByIdCallback cb = mNetworkCallbacks.get(netId); in releaseNetworkById() local
205 if (cb != null) { in releaseNetworkById()
206 mConnectivityManager.unregisterNetworkCallback(cb); in releaseNetworkById()
602 ConnectivityManager.OnStartTetheringCallback cb = in startTethering() local
613 mConnectivityManager.startTethering(ConnectivityManager.TETHERING_WIFI, false, cb); in startTethering()
634 WifiManager.LocalOnlyHotspotCallback cb = new WifiManager.LocalOnlyHotspotCallback() { in startLocalOnly() local
652 mWifiManager.startLocalOnlyHotspot(cb, null); in startLocalOnly()
/packages/services/Car/vehicle-hal-support-lib/src/com/android/car/vehiclehal/test/
DMockedVehicleHal.java143 public synchronized void getPropConfigs(ArrayList<Integer> props, getPropConfigsCallback cb) { in getPropConfigs() argument
148 cb.onValues(StatusCode.INVALID_ARG, new ArrayList<>()); in getPropConfigs()
153 cb.onValues(StatusCode.OK, res); in getPropConfigs()
157 public synchronized void get(VehiclePropValue requestedPropValue, getCallback cb) { in get() argument
160 cb.onValues(StatusCode.INVALID_ARG, null); in get()
162 cb.onValues(StatusCode.OK, handler.onPropertyGet(requestedPropValue)); in get()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DPanoramaMetadataSupport.java68 for (PanoramaSupportCallback cb : mCallbacksWaiting) { in clearCachedValues()
69 cb.panoramaInfoAvailable(mMediaObject, false, false); in clearCachedValues()
85 for (PanoramaSupportCallback cb : mCallbacksWaiting) { in onFutureDone()
86 cb.panoramaInfoAvailable(mMediaObject, mPanoramaMetadata.mUsePanoramaViewer, in onFutureDone()
/packages/apps/Camera2/src/com/android/camera/app/
DCameraController.java318 final int cameraId, Handler handler, final CameraAgent.CameraOpenCallback cb) { in checkAndOpenCamera() argument
322 cameraManager.openCamera(handler, cameraId, cb); in checkAndOpenCamera()
327 cb.onCameraDisabled(cameraId); in checkAndOpenCamera()
334 CameraAgent.CameraPreviewDataCallback cb) { in setOneShotPreviewCallback() argument
335 mCameraProxy.setOneShotPreviewCallback(handler, cb); in setOneShotPreviewCallback()
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/2/android/net/dhcp/
DIDhcpServer.aidl3 oneway void start(in android.net.INetworkStackStatusCallback cb); in start() argument
4 …in android.net.dhcp.DhcpServingParamsParcel params, in android.net.INetworkStackStatusCallback cb); in updateParams() argument
5 oneway void stop(in android.net.INetworkStackStatusCallback cb); in stop() argument
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/1/android/net/dhcp/
DIDhcpServer.aidl3 oneway void start(in android.net.INetworkStackStatusCallback cb); in start() argument
4 …in android.net.dhcp.DhcpServingParamsParcel params, in android.net.INetworkStackStatusCallback cb); in updateParams() argument
5 oneway void stop(in android.net.INetworkStackStatusCallback cb); in stop() argument
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/5/android/net/dhcp/
DIDhcpServer.aidl21 oneway void start(in android.net.INetworkStackStatusCallback cb); in start() argument
22 …in android.net.dhcp.DhcpServingParamsParcel params, in android.net.INetworkStackStatusCallback cb); in updateParams() argument
23 oneway void stop(in android.net.INetworkStackStatusCallback cb); in stop() argument
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/4/android/net/dhcp/
DIDhcpServer.aidl3 oneway void start(in android.net.INetworkStackStatusCallback cb); in start() argument
4 …in android.net.dhcp.DhcpServingParamsParcel params, in android.net.INetworkStackStatusCallback cb); in updateParams() argument
5 oneway void stop(in android.net.INetworkStackStatusCallback cb); in stop() argument
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/3/android/net/dhcp/
DIDhcpServer.aidl20 oneway void start(in android.net.INetworkStackStatusCallback cb); in start() argument
21 …in android.net.dhcp.DhcpServingParamsParcel params, in android.net.INetworkStackStatusCallback cb); in updateParams() argument
22 oneway void stop(in android.net.INetworkStackStatusCallback cb); in stop() argument
/packages/services/Car/tests/MultiDisplayTest/src/com/google/android/car/multidisplaytest/present/
DPresentTestFragment.java271 CheckBox cb = view.findViewById(R.id.checkbox_presentation); in getView() local
272 cb.setTag(display); in getView()
273 cb.setOnCheckedChangeListener(mOnCheckedChangedListener); in getView()
274 cb.setChecked(contents != null); in getView()
282 cb.setEnabled(false); in getView()
284 cb.setEnabled(true); in getView()

1234