/packages/apps/Camera2/src/com/android/camera/ |
D | ButtonManager.java | 336 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/services/Telephony/src/com/android/phone/ |
D | NetworkQueryService.java | 188 INetworkQueryServiceCallback cb, int subId, boolean isIncrementalResult) { 189 if (cb != null) { 192 mCallbacks.register(cb); 193 if (DBG) log("registering callback " + cb.getClass().toString()); 290 public void unregisterCallback(INetworkQueryServiceCallback cb) { 291 if (cb != null) { 293 if (DBG) log("unregistering callback " + cb.getClass().toString()); 294 mCallbacks.unregister(cb); 335 INetworkQueryServiceCallback cb = mCallbacks.getBroadcastItem(i); in broadcastQueryResults() local 336 if (DBG) log("broadcasting results to " + cb.getClass().toString()); in broadcastQueryResults() [all …]
|
/packages/modules/NetworkStack/src/com/android/server/ |
D | NetworkStackService.java | 174 @NonNull IDhcpServerCallbacks cb) throws RemoteException { in makeDhcpServer() argument 176 updateSystemAidlVersion(cb.getInterfaceVersion()); in makeDhcpServer() 185 cb.onDhcpServerCreated(STATUS_INVALID_ARGUMENT, null); in makeDhcpServer() 189 cb.onDhcpServerCreated(STATUS_UNKNOWN_ERROR, null); in makeDhcpServer() 192 cb.onDhcpServerCreated(STATUS_SUCCESS, server); in makeDhcpServer() 196 public void makeNetworkMonitor(Network network, String name, INetworkMonitorCallbacks cb) in makeNetworkMonitor() argument 199 updateSystemAidlVersion(cb.getInterfaceVersion()); in makeNetworkMonitor() 201 final NetworkMonitor nm = new NetworkMonitor(mContext, cb, network, log); in makeNetworkMonitor() 202 cb.onNetworkMonitorCreated(new NetworkMonitorImpl(nm)); in makeNetworkMonitor() 206 public void makeIpClient(String ifName, IIpClientCallbacks cb) throws RemoteException { in makeIpClient() argument [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/ |
D | BrowsedPlayerWrapper.java | 112 void connect(ConnectionCallback cb) { in connect() argument 113 if (cb == null) { in connect() 124 cb.run(status, wrapper); in connect() 167 public boolean getFolderItems(String mediaId, BrowseCallback cb) { in getFolderItems() argument 170 cb.run(STATUS_SUCCESS, mediaId, Util.cloneList(mCachedFolders.get(mediaId))); in getFolderItems() 174 if (cb == null) { in getFolderItems() 187 cb.run(status, "", new ArrayList<ListItem>()); in getFolderItems() 191 getFolderItemsInternal(mediaId, cb); in getFolderItems() 199 private boolean getFolderItemsInternal(String mediaId, BrowseCallback cb) { in getFolderItemsInternal() argument 200 mWrappedBrowser.subscribe(mediaId, new BrowserSubscriptionCallback(cb)); in getFolderItemsInternal() [all …]
|
D | BrowsablePlayerConnector.java | 65 PlayerListCallback cb) { in connectToPlayers() argument 66 if (cb == null) { in connectToPlayers() 71 BrowsablePlayerConnector newWrapper = new BrowsablePlayerConnector(context, looper, cb); in connectToPlayers() 99 private BrowsablePlayerConnector(Context context, Looper looper, PlayerListCallback cb) { in BrowsablePlayerConnector() argument 101 mCallback = cb; in BrowsablePlayerConnector()
|
D | MediaPlayerList.java | 229 void getPlayerRoot(int playerId, GetPlayerRootCallback cb) { in getPlayerRoot() argument 230 cb.run(playerId, playerId == BLUETOOTH_PLAYER_ID, "", mBrowsablePlayers.size()); in getPlayerRoot() 340 void getFolderItemsMediaPlayerList(GetFolderItemsCallback cb) { in getFolderItemsMediaPlayerList() argument 353 cb.run("", playerList); in getFolderItemsMediaPlayerList() 357 void getFolderItems(int playerId, String mediaId, GetFolderItemsCallback cb) { in getFolderItems() argument 365 getFolderItemsMediaPlayerList(cb); in getFolderItems() 389 cb.run(mediaId, new ArrayList<ListItem>()); in getFolderItems() 401 cb.run(mediaId, results); in getFolderItems() 405 cb.run(mediaId, new ArrayList<ListItem>()); in getFolderItems()
|
/packages/apps/Nfc/nci/jni/ |
D | IntervalTimer.cpp | 33 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() 79 mCb = cb; in create()
|
/packages/apps/Camera2/src/com/android/camera/ui/ |
D | MarginDrawable.java | 60 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/services/Car/tools/keventreader/server/ |
D | eventprovider.cpp | 31 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/Bluetooth/jni/ |
D | com_android_bluetooth_avrcp_target.cpp | 54 GetFolderItemsCb cb); 62 ::bluetooth::avrcp::VolumeInterface::VolumeChangedCb cb); 84 void GetSongInfo(SongInfoCallback cb) override { in GetSongInfo() argument 86 cb.Run(info); in GetSongInfo() 89 void GetPlayStatus(PlayStatusCallback cb) override { in GetPlayStatus() argument 91 cb.Run(status); in GetPlayStatus() 94 void GetNowPlayingList(NowPlayingCallback cb) override { in GetNowPlayingList() argument 97 cb.Run(curr_song_id, std::move(now_playing_list)); in GetNowPlayingList() 100 void GetMediaPlayerList(MediaListCallback cb) override { in GetMediaPlayerList() argument 103 cb.Run(current_player, std::move(player_list)); in GetMediaPlayerList() [all …]
|
/packages/modules/NetworkStack/src/android/net/dhcp/ |
D | DhcpServer.java | 255 public void start(@Nullable INetworkStackStatusCallback cb) { in start() argument 259 sendMessage(CMD_START_DHCP_SERVER, cb); in start() 268 @Nullable INetworkStackStatusCallback cb) throws RemoteException { in updateParams() argument 276 if (cb != null) { in updateParams() 277 cb.onStatusAvailable(STATUS_INVALID_ARGUMENT); in updateParams() 281 sendMessage(CMD_UPDATE_PARAMS, new Pair<>(parsedParams, cb)); in updateParams() 291 public void stop(@Nullable INetworkStackStatusCallback cb) { in stop() argument 293 sendMessage(CMD_STOP_DHCP_SERVER, cb); in stop() 311 final INetworkStackStatusCallback cb; in handleMessage() local 323 cb = pair.second; in handleMessage() [all …]
|
/packages/apps/Car/Radio/src/com/android/car/radio/platform/ |
D | TunerCallbackAdapterExt.java | 91 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/src/com/android/bluetooth/map/ |
D | BluetoothMapSettingsAdapter.java | 112 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/ |
D | ImageGetter.java | 180 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/ |
D | ConnectivityFragment.java | 197 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/apps/Email/provider_src/com/android/email/service/ |
D | EmailServiceStub.java | 123 public void loadAttachment(final IEmailServiceCallback cb, final long accountId, in loadAttachment() argument 131 cb.loadAttachmentStatus(0, attachmentId, in loadAttachment() 140 cb.loadAttachmentStatus(messageId, attachmentId, in loadAttachment() 148 cb.loadAttachmentStatus(messageId, attachmentId, EmailServiceStatus.SUCCESS, in loadAttachment() 154 cb.loadAttachmentStatus(messageId, attachmentId, EmailServiceStatus.IN_PROGRESS, 0); in loadAttachment() 182 cb.loadAttachmentStatus(messageId, attachmentId, in loadAttachment() 220 new MessageRetrievalListenerBridge(messageId, attachmentId, cb)); in loadAttachment() 233 cb.loadAttachmentStatus(messageId, attachmentId, EmailServiceStatus.SUCCESS, 0); in loadAttachment() 243 cb.loadAttachmentStatus(0, attachmentId, EmailServiceStatus.CONNECTION_ERROR, 0); in loadAttachment()
|
/packages/services/Car/vehicle-hal-support-lib/src/com/android/car/vehiclehal/test/ |
D | MockedVehicleHal.java | 143 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/Email/tests/src/com/android/email/mail/store/ |
D | ImapStoreUnitTests.java | 1616 MessageUpdateCallbackCounter cb = new MessageUpdateCallbackCounter(); in testCopyMessages1() local 1617 mFolder.copyMessages(mCopyMessages, mCopyToFolder, cb); in testCopyMessages1() 1619 assertEquals(0, cb.messageNotFoundCalled); in testCopyMessages1() 1620 assertEquals(2, cb.messageUidChangeCalled); in testCopyMessages1() 1632 MessageUpdateCallbackCounter cb = new MessageUpdateCallbackCounter(); in testCopyMessages2() local 1633 mFolder.copyMessages(mCopyMessages, mCopyToFolder, cb); in testCopyMessages2() 1635 assertEquals(0, cb.messageNotFoundCalled); in testCopyMessages2() 1636 assertEquals(2, cb.messageUidChangeCalled); in testCopyMessages2() 1716 MessageUpdateCallbackCounter cb = new MessageUpdateCallbackCounter(); in testCopyMessages6() local 1717 mFolder.copyMessages(mCopyMessages, mCopyToFolder, cb); in testCopyMessages6() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
D | PanoramaMetadataSupport.java | 68 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/ |
D | CameraController.java | 318 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/services/Car/tests/MultiDisplayTest/src/com/google/android/car/multidisplaytest/present/ |
D | PresentTestFragment.java | 271 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()
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/service/ |
D | EmailServiceProxy.java | 117 public void loadAttachment(final IEmailServiceCallback cb, final long accountId, in loadAttachment() argument 124 mService.loadAttachment(cb, accountId, attachmentId, background); in loadAttachment() 128 if (cb != null) { in loadAttachment() 129 cb.loadAttachmentStatus(-1, attachmentId, in loadAttachment()
|
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/utils/ |
D | Utility.java | 69 final CharBuffer cb = charset.decode(ByteBuffer.wrap(b)); in decode() local 70 return new String(cb.array(), 0, cb.length()); in decode()
|
/packages/apps/Launcher3/src/com/android/launcher3/states/ |
D | InternalStateHandler.java | 115 Callbacks cb = app.getModel().getCallback(); in run() local 116 if (!(cb instanceof Launcher)) { in run() 119 Launcher launcher = (Launcher) cb; in run()
|
/packages/apps/Launcher3/src/com/android/launcher3/model/ |
D | BaseModelUpdateTask.java | 82 Callbacks cb = mModel.getCallback(); in scheduleCallbackTask() local 83 if (callbacks == cb && cb != null) { in scheduleCallbackTask()
|