Home
last modified time | relevance | path

Searched refs:cb (Results 1 – 25 of 155) 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/packages/SystemUI/src/com/android/systemui/qs/tiles/
DCellularTile.java95 CallbackInfo cb = (CallbackInfo) arg; in handleUpdateState()
96 if (cb == null) { in handleUpdateState()
97 cb = mSignalCallback.mInfo; in handleUpdateState()
101 final int iconId = cb.noSim ? R.drawable.ic_qs_no_sim in handleUpdateState()
102 : !cb.enabled || cb.airplaneModeEnabled ? R.drawable.ic_qs_signal_disabled in handleUpdateState()
103 : cb.mobileSignalIconId > 0 ? cb.mobileSignalIconId in handleUpdateState()
106 state.isOverlayIconWide = cb.isDataTypeIconWide; in handleUpdateState()
107 state.autoMirrorDrawable = !cb.noSim; in handleUpdateState()
108 state.overlayIconId = cb.enabled && (cb.dataTypeIconId > 0) ? cb.dataTypeIconId : 0; in handleUpdateState()
110 state.activityIn = cb.enabled && cb.activityIn; in handleUpdateState()
[all …]
DWifiTile.java122 CallbackInfo cb = (CallbackInfo) arg; in handleUpdateState() local
123 if (cb == null) { in handleUpdateState()
124 cb = mSignalCallback.mInfo; in handleUpdateState()
127 boolean wifiConnected = cb.enabled && (cb.wifiSignalIconId > 0) && (cb.enabledDesc != null); in handleUpdateState()
128 boolean wifiNotConnected = (cb.wifiSignalIconId > 0) && (cb.enabledDesc == null); in handleUpdateState()
129 boolean enabledChanging = state.enabled != cb.enabled; in handleUpdateState()
131 mDetailAdapter.setItemsVisible(cb.enabled); in handleUpdateState()
132 fireToggleStateChanged(cb.enabled); in handleUpdateState()
134 state.enabled = cb.enabled; in handleUpdateState()
136 state.activityIn = cb.enabled && cb.activityIn; in handleUpdateState()
[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 …]
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
DKeyguardUpdateMonitor.java283 KeyguardUpdateMonitorCallback cb = mCallbacks.get(i).get(); in onTrustChanged() local
284 if (cb != null) { in onTrustChanged()
285 cb.onTrustChanged(userId); in onTrustChanged()
287 cb.onTrustGrantedWithFlags(flags, userId); in onTrustChanged()
321 KeyguardUpdateMonitorCallback cb = mCallbacks.get(j).get(); in handleSimSubscriptionInfoChanged() local
322 if (cb != null) { in handleSimSubscriptionInfoChanged()
323 cb.onSimStateChanged(data.subId, data.slotId, data.simState); in handleSimSubscriptionInfoChanged()
328 KeyguardUpdateMonitorCallback cb = mCallbacks.get(j).get(); in handleSimSubscriptionInfoChanged() local
329 if (cb != null) { in handleSimSubscriptionInfoChanged()
330 cb.onRefreshCarrierInfo(); in handleSimSubscriptionInfoChanged()
[all …]
/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/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/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()
DIPlayerService.aidl27 void registerCallback(in IPlayerCallback cb); in registerCallback() argument
28 void unregisterCallback(in IPlayerCallback cb); in unregisterCallback() argument
29 void sendRequest(String action, in Bundle params, in IRequestCallback cb); in sendRequest() argument
/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.java178 for (Callback cb : mCallbacks) { in fireNextAlarmChanged()
179 cb.onNextAlarmChanged(); in fireNextAlarmChanged()
184 for (Callback cb : mCallbacks) { in fireEffectsSuppressorChanged()
185 cb.onEffectsSupressorChanged(); in fireEffectsSuppressorChanged()
190 for (Callback cb : mCallbacks) { in fireZenChanged()
191 cb.onZenChanged(zen); in fireZenChanged()
196 for (Callback cb : mCallbacks) { in fireZenAvailableChanged()
197 cb.onZenAvailableChanged(available); in fireZenAvailableChanged()
202 for (Callback cb : mCallbacks) { in fireConditionsChanged()
203 cb.onConditionsChanged(conditions); in fireConditionsChanged()
[all …]
DBluetoothControllerImpl.java95 public void addStateChangedCallback(Callback cb) { in addStateChangedCallback() argument
96 mCallbacks.add(cb); in addStateChangedCallback()
101 public void removeStateChangedCallback(Callback cb) { in removeStateChangedCallback() argument
102 mCallbacks.remove(cb); in removeStateChangedCallback()
242 for (BluetoothController.Callback cb : mCallbacks) { in firePairedDevicesChanged()
243 cb.onBluetoothDevicesChanged(); in firePairedDevicesChanged()
248 for (BluetoothController.Callback cb : mCallbacks) { in fireStateChange()
249 fireStateChange(cb); in fireStateChange()
253 private void fireStateChange(BluetoothController.Callback cb) { in fireStateChange() argument
254 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()
DLocationControllerImpl.java84 public void addSettingsChangedCallback(LocationSettingsChangeCallback cb) { in addSettingsChangedCallback() argument
85 mSettingsChangeCallbacks.add(cb); in addSettingsChangedCallback()
89 public void removeSettingsChangedCallback(LocationSettingsChangeCallback cb) { in removeSettingsChangedCallback() argument
90 mSettingsChangeCallbacks.remove(cb); in removeSettingsChangedCallback()
216 for (LocationSettingsChangeCallback cb : mSettingsChangeCallbacks) { in locationSettingsChanged()
217 cb.onLocationSettingsChanged(isEnabled); in locationSettingsChanged()
DBatteryController.java65 public void addStateChangedCallback(BatteryStateChangeCallback cb) { in addStateChangedCallback() argument
66 mChangeCallbacks.add(cb); in addStateChangedCallback()
67 cb.onBatteryLevelChanged(mLevel, mPluggedIn, mCharging); in addStateChangedCallback()
70 public void removeStateChangedCallback(BatteryStateChangeCallback cb) { in removeStateChangedCallback() argument
71 mChangeCallbacks.remove(cb); in removeStateChangedCallback()
/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.java126 ISessionCallback cb, String tag, MediaSessionService service, Handler handler) { in MediaSessionRecord() argument
134 mSessionCb = new SessionCb(cb); in MediaSessionRecord()
422 public void sendMediaButton(KeyEvent ke, int sequenceId, ResultReceiver cb) { in sendMediaButton() argument
423 mSessionCb.sendMediaButton(ke, sequenceId, cb); in sendMediaButton()
489 ISessionControllerCallback cb = mControllerCallbacks.get(i); in pushPlaybackStateUpdate() local
491 cb.onPlaybackStateChanged(mPlaybackState); in pushPlaybackStateUpdate()
508 ISessionControllerCallback cb = mControllerCallbacks.get(i); in pushMetadataUpdate() local
510 cb.onMetadataChanged(mMetadata); in pushMetadataUpdate()
527 ISessionControllerCallback cb = mControllerCallbacks.get(i); in pushQueueUpdate() local
529 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/av/media/libstagefright/codecs/on2/h264dec/source/arm_neon_asm_gcc/
Dh264bsdWriteMacroblock.S31 #define cb r4 macro
97 LDR cb, [image, #0x10]
128 VST1 {dRow0}, [cb,:64], cwidth
131 VST1 {dRow1}, [cb,:64], cwidth
134 VST1 {dRow2}, [cb,:64], cwidth
137 VST1 {dRow3}, [cb,:64], cwidth
140 VST1 {dRow4}, [cb,:64], cwidth
143 VST1 {dRow5}, [cb,:64], cwidth
145 VST1 {dRow6}, [cb,:64], cwidth
147 VST1 {dRow7}, [cb,:64]
/frameworks/base/media/java/android/media/
DIAudioService.aidl54 void forceRemoteSubmixFullVolume(boolean startForcing, IBinder cb); in forceRemoteSubmixFullVolume() argument
86 void setMode(int mode, IBinder cb, String callingPackage); in setMode() argument
114 int requestAudioFocus(in AudioAttributes aa, int durationHint, IBinder cb, in requestAudioFocus() argument
177 void startBluetoothSco(IBinder cb, int targetSdkVersion); in startBluetoothSco() argument
178 void startBluetoothScoVirtualCall(IBinder cb); in startBluetoothScoVirtualCall() argument
179 void stopBluetoothSco(IBinder cb); in stopBluetoothSco() argument
181 void forceVolumeControlStream(int streamType, IBinder cb); in forceVolumeControlStream() argument
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()
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/
DBordeauxService.java155 public void registerCallback(IBordeauxServiceCallback cb) {
156 if (cb != null) mCallbacks.register(cb);
159 public void unregisterCallback(IBordeauxServiceCallback cb) {
160 if (cb != null) mCallbacks.unregister(cb);
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/
DBrightnessController.java105 for (BrightnessStateChangeCallback cb : mChangeCallbacks) { in onChange()
106 cb.onBrightnessLevelChanged(); in onChange()
157 public void addStateChangedCallback(BrightnessStateChangeCallback cb) { in addStateChangedCallback() argument
158 mChangeCallbacks.add(cb); in addStateChangedCallback()
161 public boolean removeStateChangedCallback(BrightnessStateChangeCallback cb) { in removeStateChangedCallback() argument
162 return mChangeCallbacks.remove(cb); in removeStateChangedCallback()
237 for (BrightnessStateChangeCallback cb : mChangeCallbacks) { in onChanged()
238 cb.onBrightnessLevelChanged(); in onChanged()

1234567