Home
last modified time | relevance | path

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

1234567

/frameworks/av/media/libstagefright/codecs/mp3dec/src/
Dpvmp3_dequantize_sample.cpp194 int32 cb = 0; in pvmp3_dequantize_sample() local
230 cb++; /* critical band counter */ in pvmp3_dequantize_sample()
239 cb = 3; in pvmp3_dequantize_sample()
243 next_cb_boundary = mp3_sfBandIndex[sfreq].l[cb+1]; in pvmp3_dequantize_sample()
247 next_cb_boundary = mp3_sfBandIndex[sfreq].s[cb+1] * 3; in pvmp3_dequantize_sample()
249 cb_width = cb; in pvmp3_dequantize_sample()
250 cb_begin = mp3_sfBandIndex[sfreq].s[cb] * 3; in pvmp3_dequantize_sample()
257 (scalefac->l[cb] + gr_info->preflag * pretab[cb]) << 1; in pvmp3_dequantize_sample()
265 next_cb_boundary = mp3_sfBandIndex[sfreq].s[cb+1] * 3; in pvmp3_dequantize_sample()
266 cb_width = cb; in pvmp3_dequantize_sample()
[all …]
/frameworks/base/native/android/
Dstorage_manager.cpp52 , cb(_cb) in ObbCallback()
57 AStorageManager_obbCallbackFunc cb; member in ObbCallback
74 ObbCallback* cb = new ObbCallback(getNextNonce(), func, data); in registerObbCallback() local
77 mCallbacks.push(cb); in registerObbCallback()
79 return cb; in registerObbCallback()
111 ObbCallback* cb = mCallbacks.editItemAt(i); in fireCallback() local
112 if (cb->nonce == nonce) { in fireCallback()
113 target = cb; in fireCallback()
121 target->cb(filename, state, target->data); in fireCallback()
137 ObbCallback* cb = registerObbCallback(func, data); in mountObb() local
[all …]
Dchoreographer.cpp52 void postFrameCallback(AChoreographer_frameCallback cb, void* data);
53 void postFrameCallbackDelayed(AChoreographer_frameCallback cb, void* data, nsecs_t delay);
107 void Choreographer::postFrameCallback(AChoreographer_frameCallback cb, void* data) { in postFrameCallback() argument
108 postFrameCallbackDelayed(cb, data, 0); in postFrameCallback()
112 AChoreographer_frameCallback cb, void* data, nsecs_t delay) { in postFrameCallbackDelayed() argument
114 FrameCallback callback{cb, data, now + delay}; in postFrameCallbackDelayed()
158 for (const auto& cb : callbacks) { in dispatchVsync() local
159 cb.callback(timestamp, cb.data); in dispatchVsync()
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
DKeyguardUpdateMonitor.java311 KeyguardUpdateMonitorCallback cb = mCallbacks.get(i).get(); in onTrustChanged() local
312 if (cb != null) { in onTrustChanged()
313 cb.onTrustChanged(userId); in onTrustChanged()
315 cb.onTrustGrantedWithFlags(flags, userId); in onTrustChanged()
349 KeyguardUpdateMonitorCallback cb = mCallbacks.get(j).get(); in handleSimSubscriptionInfoChanged() local
350 if (cb != null) { in handleSimSubscriptionInfoChanged()
351 cb.onSimStateChanged(data.subId, data.slotId, data.simState); in handleSimSubscriptionInfoChanged()
356 KeyguardUpdateMonitorCallback cb = mCallbacks.get(j).get(); in handleSimSubscriptionInfoChanged() local
357 if (cb != null) { in handleSimSubscriptionInfoChanged()
358 cb.onRefreshCarrierInfo(); in handleSimSubscriptionInfoChanged()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DCellularTile.java104 CallbackInfo cb = (CallbackInfo) arg; in handleUpdateState() local
105 if (cb == null) { in handleUpdateState()
106 cb = mSignalCallback.mInfo; in handleUpdateState()
110 final int iconId = cb.noSim ? R.drawable.ic_qs_no_sim in handleUpdateState()
111 : !cb.enabled || cb.airplaneModeEnabled ? R.drawable.ic_qs_signal_disabled in handleUpdateState()
112 : cb.mobileSignalIconId > 0 ? cb.mobileSignalIconId in handleUpdateState()
115 state.isOverlayIconWide = cb.isDataTypeIconWide; in handleUpdateState()
116 state.autoMirrorDrawable = !cb.noSim; in handleUpdateState()
117 state.overlayIconId = cb.enabled && (cb.dataTypeIconId > 0) ? cb.dataTypeIconId : 0; in handleUpdateState()
119 state.activityIn = cb.enabled && cb.activityIn; in handleUpdateState()
[all …]
DWifiTile.java131 CallbackInfo cb = (CallbackInfo) arg; in handleUpdateState() local
132 if (cb == null) { in handleUpdateState()
133 cb = mSignalCallback.mInfo; in handleUpdateState()
136 boolean wifiConnected = cb.enabled && (cb.wifiSignalIconId > 0) && (cb.enabledDesc != null); in handleUpdateState()
137 boolean wifiNotConnected = (cb.wifiSignalIconId > 0) && (cb.enabledDesc == null); in handleUpdateState()
138 boolean enabledChanging = state.value != cb.enabled; in handleUpdateState()
140 mDetailAdapter.setItemsVisible(cb.enabled); in handleUpdateState()
141 fireToggleStateChanged(cb.enabled); in handleUpdateState()
143 state.value = cb.enabled; in handleUpdateState()
145 state.activityIn = cb.enabled && cb.activityIn; in handleUpdateState()
[all …]
/frameworks/base/core/java/android/os/
DRemoteCallbackList.java113 Callback cb = new Callback(callback, cookie); in register() local
114 binder.linkToDeath(cb, 0); in register()
115 mCallbacks.put(binder, cb); in register()
142 Callback cb = mCallbacks.remove(callback.asBinder()); in unregister() local
143 if (cb != null) { in unregister()
144 cb.mCallback.asBinder().unlinkToDeath(cb, 0); in unregister()
162 Callback cb = mCallbacks.valueAt(cbi); in kill() local
163 cb.mCallback.asBinder().unlinkToDeath(cb, 0); in kill()
/frameworks/base/tools/layoutlib/create/src/com/android/tools/layoutlib/java/
DCharsets.java53 CharBuffer cb = CharBuffer.allocate(length); in toAsciiBytes() local
54 cb.put(chars, offset, length); in toAsciiBytes()
55 return US_ASCII.encode(cb).array(); in toAsciiBytes()
63 CharBuffer cb = CharBuffer.allocate(length); in toIsoLatin1Bytes() local
64 cb.put(chars, offset, length); in toIsoLatin1Bytes()
65 return ISO_8859_1.encode(cb).array(); in toIsoLatin1Bytes()
73 CharBuffer cb = CharBuffer.allocate(length); in toUtf8Bytes() local
74 cb.put(chars, offset, length); in toUtf8Bytes()
75 return UTF_8.encode(cb).array(); in toUtf8Bytes()
/frameworks/base/tests/OneMedia/src/com/android/onemedia/
DPlayerService.java124 public void sendRequest(String action, Bundle params, IRequestCallback cb) { in sendRequest() argument
133 public void registerCallback(final IPlayerCallback cb) throws RemoteException { in registerCallback() argument
134 if (!mCbs.contains(cb)) { in registerCallback()
135 mCbs.add(cb); in registerCallback()
136 cb.asBinder().linkToDeath(new IBinder.DeathRecipient() { in registerCallback()
139 mCbs.remove(cb); in registerCallback()
144 cb.onSessionChanged(getSessionToken()); in registerCallback()
146 mCbs.remove(cb); in registerCallback()
152 public void unregisterCallback(IPlayerCallback cb) throws RemoteException { in unregisterCallback() argument
153 mCbs.remove(cb); in unregisterCallback()
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
DAndroidCameraAgentImpl.java314 android.hardware.Camera camera, Object cb) { in setAutoFocusMoveCallback() argument
316 camera.setAutoFocusMoveCallback((AutoFocusMoveCallback) cb); in setAutoFocusMoveCallback()
809 final Handler handler, final CameraPreviewDataCallback cb) { in setPreviewDataCallback() argument
815 handler, AndroidCameraProxyImpl.this, cb)) in setPreviewDataCallback()
823 final CameraPreviewDataCallback cb) { in setOneShotPreviewCallback() argument
829 .getNewInstance(handler, AndroidCameraProxyImpl.this, cb)) in setOneShotPreviewCallback()
837 final Handler handler, final CameraPreviewDataCallback cb) { in setPreviewDataCallbackWithBuffer() argument
843 .getNewInstance(handler, AndroidCameraProxyImpl.this, cb)) in setPreviewDataCallbackWithBuffer()
850 public void autoFocus(final Handler handler, final CameraAFCallback cb) { in autoFocus() argument
862 cb.onAutoFocus(b, AndroidCameraProxyImpl.this); in autoFocus()
[all …]
DCameraAgent.java56 Handler handler, CameraStartPreviewCallback cb) { in getNewInstance() argument
57 if (handler == null || cb == null) { in getNewInstance()
60 return new CameraStartPreviewCallbackForward(handler, cb); in getNewInstance()
64 CameraStartPreviewCallback cb) { in CameraStartPreviewCallbackForward() argument
66 mCallback = cb; in CameraStartPreviewCallbackForward()
96 Handler handler, CameraOpenCallback cb) { in getNewInstance() argument
97 if (handler == null || cb == null) { in getNewInstance()
100 return new CameraOpenCallbackForward(handler, cb); in getNewInstance()
103 private CameraOpenCallbackForward(Handler h, CameraOpenCallback cb) { in CameraOpenCallbackForward() argument
108 mCallback = cb; in CameraOpenCallbackForward()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DZenModeControllerImpl.java169 for (Callback cb : mCallbacks) { in fireNextAlarmChanged()
170 cb.onNextAlarmChanged(); in fireNextAlarmChanged()
175 for (Callback cb : mCallbacks) { in fireEffectsSuppressorChanged()
176 cb.onEffectsSupressorChanged(); in fireEffectsSuppressorChanged()
181 for (Callback cb : mCallbacks) { in fireZenChanged()
182 cb.onZenChanged(zen); in fireZenChanged()
187 for (Callback cb : mCallbacks) { in fireZenAvailableChanged()
188 cb.onZenAvailableChanged(available); in fireZenAvailableChanged()
193 for (Callback cb : mCallbacks) { in fireConditionsChanged()
194 cb.onConditionsChanged(conditions); in fireConditionsChanged()
[all …]
DBluetoothControllerImpl.java107 public void addStateChangedCallback(Callback cb) { in addStateChangedCallback() argument
108 mHandler.obtainMessage(H.MSG_ADD_CALLBACK, cb).sendToTarget(); in addStateChangedCallback()
113 public void removeStateChangedCallback(Callback cb) { in removeStateChangedCallback() argument
114 mHandler.obtainMessage(H.MSG_REMOVE_CALLBACK, cb).sendToTarget(); in removeStateChangedCallback()
264 for (BluetoothController.Callback cb : mCallbacks) { in firePairedDevicesChanged()
265 cb.onBluetoothDevicesChanged(); in firePairedDevicesChanged()
270 for (BluetoothController.Callback cb : mCallbacks) { in fireStateChange()
271 fireStateChange(cb); in fireStateChange()
275 private void fireStateChange(BluetoothController.Callback cb) { in fireStateChange() argument
276 cb.onBluetoothStateChange(mEnabled); in fireStateChange()
DAccessibilityController.java58 public void addStateChangedCallback(AccessibilityStateChangedCallback cb) { in addStateChangedCallback() argument
59 mChangeCallbacks.add(cb); in addStateChangedCallback()
60 cb.onStateChanged(mAccessibilityEnabled, mTouchExplorationEnabled); in addStateChangedCallback()
63 public void removeStateChangedCallback(AccessibilityStateChangedCallback cb) { in removeStateChangedCallback() argument
64 mChangeCallbacks.remove(cb); in removeStateChangedCallback()
DNextAlarmController.java51 public void addStateChangedCallback(NextAlarmChangeCallback cb) { in addStateChangedCallback() argument
52 mChangeCallbacks.add(cb); in addStateChangedCallback()
53 cb.onNextAlarmChanged(mNextAlarm); in addStateChangedCallback()
56 public void removeStateChangedCallback(NextAlarmChangeCallback cb) { in removeStateChangedCallback() argument
57 mChangeCallbacks.remove(cb); in removeStateChangedCallback()
/frameworks/support/v4/java/android/support/v4/media/session/
DMediaSessionCompat.java582 public void onCommand(String command, Bundle extras, ResultReceiver cb) { in onCommand() argument
742 public void onCommand(String command, Bundle extras, ResultReceiver cb) { in onCommand() argument
743 Callback.this.onCommand(command, extras, cb); in onCommand()
1649 IMediaControllerCallback cb = mControllerCallbacks.getBroadcastItem(i); in sendVolumeInfoChanged() local
1651 cb.onVolumeInfoChanged(info); in sendVolumeInfoChanged()
1661 IMediaControllerCallback cb = mControllerCallbacks.getBroadcastItem(i); in sendSessionDestroyed() local
1663 cb.onSessionDestroyed(); in sendSessionDestroyed()
1674 IMediaControllerCallback cb = mControllerCallbacks.getBroadcastItem(i); in sendEvent() local
1676 cb.onEvent(event, extras); in sendEvent()
1686 IMediaControllerCallback cb = mControllerCallbacks.getBroadcastItem(i); in sendState() local
[all …]
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/arm_neon_asm/
Dh264bsdWriteMacroblock.s29 cb RN 4 label
95 LDR cb, [image, #0x10]
118 VLD1 {qRow0, qRow1}, [data]! ;cb rows 0,1,2,3
120 VLD1 {qRow2, qRow3}, [data]! ;cb rows 4,5,6,7
126 VST1 {dRow0}, [cb@64], cwidth
129 VST1 {dRow1}, [cb@64], cwidth
132 VST1 {dRow2}, [cb@64], cwidth
135 VST1 {dRow3}, [cb@64], cwidth
138 VST1 {dRow4}, [cb@64], cwidth
141 VST1 {dRow5}, [cb@64], cwidth
[all …]
/frameworks/base/services/core/java/com/android/server/media/
DMediaSessionRecord.java131 ISessionCallback cb, String tag, MediaSessionService service, Handler handler) { in MediaSessionRecord() argument
139 mSessionCb = new SessionCb(cb); in MediaSessionRecord()
428 ResultReceiver cb, int uid, String packageName) { in sendMediaButton() argument
430 mSessionCb.sendMediaButton(ke, sequenceId, cb); in sendMediaButton()
496 ISessionControllerCallback cb = mControllerCallbacks.get(i); in pushPlaybackStateUpdate() local
498 cb.onPlaybackStateChanged(mPlaybackState); in pushPlaybackStateUpdate()
515 ISessionControllerCallback cb = mControllerCallbacks.get(i); in pushMetadataUpdate() local
517 cb.onMetadataChanged(mMetadata); in pushMetadataUpdate()
534 ISessionControllerCallback cb = mControllerCallbacks.get(i); in pushQueueUpdate() local
536 cb.onQueueChanged(mQueue); in pushQueueUpdate()
[all …]
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/
Dh264bsd_image.c87 u32 *lum, *cb, *cr; in h264bsdWriteMacroblock() local
102 cb = (u32*)image->cb; in h264bsdWriteMacroblock()
105 ASSERT(!((u32)cb&0x3)); in h264bsdWriteMacroblock()
129 *cb++ = tmp1; in h264bsdWriteMacroblock()
130 *cb++ = tmp2; in h264bsdWriteMacroblock()
131 cb += width-2; in h264bsdWriteMacroblock()
179 u8 *lum, *cb, *cr; in h264bsdWriteOutputBlocks() local
204 cb = (image->data + picSize * 256 + row * picWidth * 64 + col * 8); in h264bsdWriteOutputBlocks()
205 cr = (cb + picSize * 64); in h264bsdWriteOutputBlocks()
284 imageBlock = cb; in h264bsdWriteOutputBlocks()
/frameworks/base/media/java/android/media/
DAudioSystem.java206 public static void setErrorCallback(ErrorCallback cb) in setErrorCallback() argument
209 mErrorCallback = cb; in setErrorCallback()
210 if (cb != null) { in setErrorCallback()
211 cb.onError(checkAudioFlinger()); in setErrorCallback()
243 public static void setDynamicPolicyCallback(DynamicPolicyCallback cb) in setDynamicPolicyCallback() argument
246 sDynPolicyCallback = cb; in setDynamicPolicyCallback()
253 DynamicPolicyCallback cb = null; in dynamicPolicyCallbackFromNative() local
256 cb = sDynPolicyCallback; in dynamicPolicyCallbackFromNative()
259 if (cb != null) { in dynamicPolicyCallbackFromNative()
262 cb.onDynamicPolicyMixStateUpdate(regId, val); in dynamicPolicyCallbackFromNative()
[all …]
DIAudioService.aidl51 void forceRemoteSubmixFullVolume(boolean startForcing, IBinder cb); in forceRemoteSubmixFullVolume() argument
83 void setMode(int mode, IBinder cb, String callingPackage); in setMode() argument
111 int requestAudioFocus(in AudioAttributes aa, int durationHint, IBinder cb, in requestAudioFocus() argument
121 void startBluetoothSco(IBinder cb, int targetSdkVersion); in startBluetoothSco() argument
122 void startBluetoothScoVirtualCall(IBinder cb); in startBluetoothScoVirtualCall() argument
123 void stopBluetoothSco(IBinder cb); in stopBluetoothSco() argument
125 void forceVolumeControlStream(int streamType, IBinder cb); in forceVolumeControlStream() argument
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/arm_neon_asm_gcc/
Dh264bsdWriteMacroblock.S31 #define cb r4 macro
97 LDR cb, [image, #0x10]
128 VST1.8 {dRow0}, [cb,:64], cwidth
131 VST1.8 {dRow1}, [cb,:64], cwidth
134 VST1.8 {dRow2}, [cb,:64], cwidth
137 VST1.8 {dRow3}, [cb,:64], cwidth
140 VST1.8 {dRow4}, [cb,:64], cwidth
143 VST1.8 {dRow5}, [cb,:64], cwidth
145 VST1.8 {dRow6}, [cb,:64], cwidth
147 VST1.8 {dRow7}, [cb,:64]
/frameworks/base/services/core/java/com/android/server/audio/
DMediaFocusControl.java174 private void removeFocusStackEntryForClient(IBinder cb) { in removeFocusStackEntryForClient() argument
177 mFocusStack.peek().hasSameBinder(cb); in removeFocusStackEntryForClient()
183 if(fr.hasSameBinder(cb)) { in removeFocusStackEntryForClient()
184 Log.i(TAG, "AudioFocus removeFocusStackEntry(): removing entry for " + cb); in removeFocusStackEntryForClient()
254 AudioFocusDeathHandler(IBinder cb) { in AudioFocusDeathHandler() argument
255 mCb = cb; in AudioFocusDeathHandler()
388 protected int requestAudioFocus(AudioAttributes aa, int focusChangeHint, IBinder cb, in requestAudioFocus() argument
396 if (!cb.pingBinder()) { in requestAudioFocus()
422 AudioFocusDeathHandler afdh = new AudioFocusDeathHandler(cb); in requestAudioFocus()
424 cb.linkToDeath(afdh, 0); in requestAudioFocus()
[all …]
/frameworks/av/camera/ndk/impl/
DACameraManager.cpp162 Callback cb(callback); in registerAvailabilityCallback() local
163 auto pair = mCallbacks.insert(cb); in registerAvailabilityCallback()
171 ACameraManager_AvailabilityCallback cb = isStatusAvailable(status) ? in registerAvailabilityCallback() local
173 msg->setPointer(kCallbackFpKey, (void *) cb); in registerAvailabilityCallback()
184 Callback cb(callback); in unregisterAvailabilityCallback() local
185 mCallbacks.erase(cb); in unregisterAvailabilityCallback()
211 ACameraManager_AvailabilityCallback cb) const { in sendSingleCallback()
214 (*cb)(context, cameraIdStr); in sendSingleCallback()
222 ACameraManager_AvailabilityCallback cb; in onMessageReceived() local
225 bool found = msg->findPointer(kCallbackFpKey, (void**) &cb); in onMessageReceived()
[all …]
/frameworks/base/core/java/android/speech/tts/
DTextToSpeechService.java1392 public void setCallback(IBinder caller, ITextToSpeechCallback cb) {
1398 mCallbacks.setCallback(caller, cb);
1418 public void setCallback(IBinder caller, ITextToSpeechCallback cb) { in setCallback() argument
1421 if (cb != null) { in setCallback()
1422 register(cb, caller); in setCallback()
1423 old = mCallerToCallback.put(caller, cb); in setCallback()
1427 if (old != null && old != cb) { in setCallback()
1434 ITextToSpeechCallback cb = getCallbackFor(callerIdentity); in dispatchOnStop() local
1435 if (cb == null) return; in dispatchOnStop()
1437 cb.onStop(utteranceId, started); in dispatchOnStop()
[all …]

1234567