/frameworks/av/media/libeffects/dynamicsproc/dsp/ |
D | DPFrequency.cpp | 183 void DPFrequency::updateParameters(ChannelBuffer &cb, int channelIndex) { in updateParameters() argument 194 IS_CHANGED(changed, cb.inputGainDb, pChannel->getInputGain()); in updateParameters() 196 if (cb.mPreEqInUse) { in updateParameters() 202 IS_CHANGED(changed, cb.mPreEqEnabled, pPreEq->isEnabled()); in updateParameters() 203 if (cb.mPreEqEnabled) { in updateParameters() 210 ChannelBuffer::EqBandParams *pEqBandParams = &cb.mPreEqBands[b]; in updateParameters() 220 float inputGainFactor = dBtoLinear(cb.inputGainDb); in updateParameters() 221 if (cb.mPreEqInUse && cb.mPreEqEnabled) { in updateParameters() 225 ChannelBuffer::EqBandParams *pEqBandParams = &cb.mPreEqBands[b]; in updateParameters() 228 cb.computeBinStartStop(*pEqBandParams, binNext); in updateParameters() [all …]
|
/frameworks/av/media/libstagefright/codecs/mp3dec/src/ |
D | pvmp3_dequantize_sample.cpp | 194 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/ |
D | storage_manager.cpp | 53 , cb(_cb) in ObbCallback() 58 AStorageManager_obbCallbackFunc cb; member in ObbCallback 75 ObbCallback* cb = new ObbCallback(getNextNonce(), func, data); in registerObbCallback() local 78 mCallbacks.push(cb); in registerObbCallback() 80 return cb; in registerObbCallback() 126 ObbCallback* cb = mCallbacks.editItemAt(i); in fireCallback() local 127 if (cb->nonce == nonce) { in fireCallback() 128 target = cb; in fireCallback() 136 target->cb(filename, state, target->data); in fireCallback() 158 ObbCallback* cb = registerObbCallback(func, data); in mountObb() local [all …]
|
/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | VSyncDispatchTimerQueueTest.cpp | 230 CountingCallback cb(mDispatch); in TEST_F() local 231 EXPECT_EQ(mDispatch.schedule(cb, 100, 1000), ScheduleResult::Scheduled); in TEST_F() 239 CountingCallback cb(mDispatch); in TEST_F() local 240 EXPECT_EQ(mDispatch.schedule(cb, 100, intended), ScheduleResult::Scheduled); in TEST_F() 243 ASSERT_THAT(cb.mCalls.size(), Eq(1)); in TEST_F() 244 EXPECT_THAT(cb.mCalls[0], Eq(mPeriod)); in TEST_F() 251 CountingCallback cb(mDispatch); in TEST_F() local 252 mDispatch.schedule(cb, 100, mPeriod); in TEST_F() 255 ASSERT_THAT(cb.mCalls.size(), Eq(1)); in TEST_F() 256 EXPECT_THAT(cb.mCalls[0], Eq(1150)); in TEST_F() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | KeyguardUpdateMonitor.java | 393 KeyguardUpdateMonitorCallback cb = mCallbacks.get(i).get(); in onTrustChanged() local 394 if (cb != null) { in onTrustChanged() 395 cb.onTrustChanged(userId); in onTrustChanged() 397 cb.onTrustGrantedWithFlags(flags, userId); in onTrustChanged() 438 KeyguardUpdateMonitorCallback cb = mCallbacks.get(j).get(); in handleSimSubscriptionInfoChanged() local 439 if (cb != null) { in handleSimSubscriptionInfoChanged() 440 cb.onSimStateChanged(data.subId, data.slotId, data.simState); in handleSimSubscriptionInfoChanged() 454 KeyguardUpdateMonitorCallback cb = mCallbacks.get(i).get(); in callbacksRefreshCarrierInfo() local 455 if (cb != null) { in callbacksRefreshCarrierInfo() 456 cb.onRefreshCarrierInfo(); in callbacksRefreshCarrierInfo() [all …]
|
/frameworks/hardware/interfaces/displayservice/1.0/vts/functional/ |
D | VtsFwkDisplayServiceV1_0TargetTest.cpp | 89 cb = new TestCallback(); in SetUp() 90 EXPECT_SUCCESS(receiver->init(cb)); in SetUp() 97 sp<TestCallback> cb; member in DisplayServiceTest 105 EXPECT_EQ(0, cb->vsyncs); in TEST_P() 110 EXPECT_EQ(1, cb->vsyncs); in TEST_P() 117 ASSERT_EQ(0, cb->vsyncs); in TEST_P() 121 int at1 = cb->vsyncs; in TEST_P() 123 cb->vsyncs = 0; in TEST_P() 126 int at2 = cb->vsyncs; in TEST_P() 128 cb->vsyncs = 0; in TEST_P() [all …]
|
/frameworks/base/packages/Tethering/tests/unit/src/com/android/networkstack/tethering/ |
D | UpstreamNetworkMonitorTest.java | 622 for (NetworkCallback cb : trackingDefault) { in makeDefaultNetwork() 624 cb.onAvailable(defaultNetwork.networkId); in makeDefaultNetwork() 625 cb.onCapabilitiesChanged( in makeDefaultNetwork() 627 cb.onLinkPropertiesChanged( in makeDefaultNetwork() 634 public void requestNetwork(NetworkRequest req, NetworkCallback cb, Handler h) { in requestNetwork() argument 635 assertFalse(allCallbacks.containsKey(cb)); in requestNetwork() 636 allCallbacks.put(cb, h); in requestNetwork() 638 assertFalse(trackingDefault.contains(cb)); in requestNetwork() 639 trackingDefault.add(cb); in requestNetwork() 641 assertFalse(requested.containsKey(cb)); in requestNetwork() [all …]
|
/frameworks/base/core/java/com/android/internal/os/ |
D | KernelCpuUidTimeReader.java | 96 public void readDelta(@Nullable Callback<T> cb) { in readDelta() argument 98 readDeltaImpl(cb); in readDelta() 108 readDeltaImpl(cb); in readDelta() 117 public void readAbsolute(Callback<T> cb) { in readAbsolute() argument 119 readAbsoluteImpl(cb); in readAbsolute() 129 readAbsoluteImpl(cb); in readAbsolute() 133 abstract void readDeltaImpl(@Nullable Callback<T> cb); in readDeltaImpl() argument 215 void readDeltaImpl(@Nullable Callback<long[]> cb) { in readDeltaImpl() argument 242 if (cb != null) { in readDeltaImpl() 243 cb.onUidCpuTime(uid, mUsrSysTime); in readDeltaImpl() [all …]
|
/frameworks/base/media/tests/AudioPolicyTest/src/com/android/audiopolicytest/ |
D | AudioVolumeGroupChangeHandlerTest.java | 51 final AudioVolumeGroupCallbackHelper cb = new AudioVolumeGroupCallbackHelper(); in testUnregisterInvalidCallback() local 52 audioAudioVolumeGroupChangedHandler.registerListener(cb); in testUnregisterInvalidCallback() 58 audioAudioVolumeGroupChangedHandler.unregisterListener(cb); in testUnregisterInvalidCallback() 134 for (final AudioVolumeGroupCallbackHelper cb : validCbs) { in testMultipleCallbackReceived() 135 audioAudioVolumeGroupChangedHandler.registerListener(cb); in testMultipleCallbackReceived() 162 for (final AudioVolumeGroupCallbackHelper cb : validCbs) { in testMultipleCallbackReceived() 163 cb.setExpectedVolumeGroup(volumeGroupId); in testMultipleCallbackReceived() 167 for (final AudioVolumeGroupCallbackHelper cb : validCbs) { in testMultipleCallbackReceived() 168 assertTrue(cb.waitForExpectedVolumeGroupChanged( in testMultipleCallbackReceived() 175 for (final AudioVolumeGroupCallbackHelper cb : validCbs) { in testMultipleCallbackReceived() [all …]
|
/frameworks/base/tests/OneMedia/src/com/android/onemedia/ |
D | PlayerService.java | 124 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/native/libs/nativedisplay/ |
D | AChoreographer.cpp | 110 void postFrameCallbackDelayed(AChoreographer_frameCallback cb, 112 void registerRefreshRateCallback(AChoreographer_refreshRateCallback cb, void* data) 114 void unregisterRefreshRateCallback(AChoreographer_refreshRateCallback cb, void* data); 209 … AChoreographer_frameCallback cb, AChoreographer_frameCallback64 cb64, void* data, nsecs_t delay) { in postFrameCallbackDelayed() argument 211 FrameCallback callback{cb, cb64, data, now + delay}; in postFrameCallbackDelayed() 237 void Choreographer::registerRefreshRateCallback(AChoreographer_refreshRateCallback cb, void* data) { in registerRefreshRateCallback() argument 241 if (cb == callback.callback && data == callback.data) { in registerRefreshRateCallback() 246 RefreshRateCallback{.callback = cb, .data = data, .firstCallbackFired = false}); in registerRefreshRateCallback() 279 void Choreographer::unregisterRefreshRateCallback(AChoreographer_refreshRateCallback cb, in unregisterRefreshRateCallback() argument 285 return cb == callback.callback && in unregisterRefreshRateCallback() [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | SupplicantStaNetworkHalTest.java | 882 public void answer(ISupplicantStaNetwork.getWpsNfcConfigurationTokenCallback cb) in testGetWpsNfcConfigurationToken() 884 cb.onValues(mStatusSuccess, token); in testGetWpsNfcConfigurationToken() 1119 public void answer(ISupplicantStaNetwork.getSsidCallback cb) throws RemoteException { in setupISupplicantNetworkMock() 1120 cb.onValues(mStatusSuccess, mSupplicantVariables.ssid); in setupISupplicantNetworkMock() 1127 public void answer(ISupplicantNetwork.getIdCallback cb) throws RemoteException { in setupISupplicantNetworkMock() 1128 cb.onValues(mStatusSuccess, mSupplicantVariables.networkId); in setupISupplicantNetworkMock() 1140 public void answer(ISupplicantStaNetwork.getBssidCallback cb) throws RemoteException { in setupISupplicantNetworkMock() 1141 cb.onValues(mStatusSuccess, mSupplicantVariables.bssid); in setupISupplicantNetworkMock() 1154 public void answer(ISupplicantStaNetwork.getScanSsidCallback cb) in setupISupplicantNetworkMock() 1156 cb.onValues(mStatusSuccess, mSupplicantVariables.scanSsid); in setupISupplicantNetworkMock() [all …]
|
/frameworks/native/cmds/servicemanager/ |
D | test_sm.cpp | 334 sp<CallbackHistorian> cb = new CallbackHistorian; in TEST() local 336 EXPECT_EQ(sm->registerForNotifications("foofoo", cb).exceptionCode(), in TEST() 348 sp<CallbackHistorian> cb = new CallbackHistorian; in TEST() local 351 EXPECT_EQ(sm->unregisterForNotifications("foofoo", cb).exceptionCode(), in TEST() 358 sp<CallbackHistorian> cb = new CallbackHistorian; in TEST() local 360 EXPECT_EQ(sm->registerForNotifications("foo@foo", cb).exceptionCode(), in TEST() 374 sp<CallbackHistorian> cb = new CallbackHistorian; in TEST() local 376 EXPECT_TRUE(sm->registerForNotifications("foofoo", cb).isOk()); in TEST() 377 EXPECT_EQ(sm->unregisterForNotifications("foofoo", cb).exceptionCode(), 0); in TEST() 383 sp<CallbackHistorian> cb = new CallbackHistorian; in TEST() local [all …]
|
/frameworks/av/camera/ndk/impl/ |
D | ACameraManager.cpp | 213 Callback cb(callback); in unregisterExtendedAvailabilityCallback() local 214 mCallbacks.erase(cb); in unregisterExtendedAvailabilityCallback() 228 Callback cb(callback); in unregisterAvailabilityCallback() local 229 mCallbacks.erase(cb); in unregisterAvailabilityCallback() 254 Callback cb(callback); in registerAvailCallback() local 255 auto pair = mCallbacks.insert(cb); in registerAvailCallback() 270 cb.mAvailable : cb.mUnavailable; in registerAvailCallback() 272 msg->setPointer(kContextKey, cb.mContext); in registerAvailCallback() 283 cb.mPhysicalCamUnavailable; in registerAvailCallback() 285 msg->setPointer(kContextKey, cb.mContext); in registerAvailCallback() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenrecord/ |
D | RecordingController.java | 102 for (RecordingStateChangeCallback cb : mListeners) { in startCountdown() 103 cb.onCountdown(millisUntilFinished); in startCountdown() 111 for (RecordingStateChangeCallback cb : mListeners) { in startCountdown() 112 cb.onCountdownEnd(); in startCountdown() 140 for (RecordingStateChangeCallback cb : mListeners) { in cancelCountdown() 141 cb.onCountdownEnd(); in cancelCountdown() 184 for (RecordingStateChangeCallback cb : mListeners) { in updateState() 186 cb.onRecordingStart(); in updateState() 188 cb.onRecordingEnd(); in updateState()
|
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/ |
D | AndroidCameraAgentImpl.java | 314 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 …]
|
D | CameraAgent.java | 56 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/ml/nn/driver/sample/ |
D | SampleDriver.cpp | 67 Return<void> SampleDriver::getCapabilities(getCapabilities_cb cb) { in getCapabilities() argument 72 cb(convertToV1_0(error), convertToV1_0(capabilities)); in getCapabilities() 76 Return<void> SampleDriver::getCapabilities_1_1(getCapabilities_1_1_cb cb) { in getCapabilities_1_1() argument 81 cb(convertToV1_0(error), convertToV1_1(capabilities)); in getCapabilities_1_1() 85 Return<void> SampleDriver::getCapabilities_1_2(getCapabilities_1_2_cb cb) { in getCapabilities_1_2() argument 90 cb(convertToV1_0(error), convertToV1_2(capabilities)); in getCapabilities_1_2() 94 Return<void> SampleDriver::getVersionString(getVersionString_cb cb) { in getVersionString() argument 97 cb(V1_0::ErrorStatus::NONE, "JUST_AN_EXAMPLE"); in getVersionString() 101 Return<void> SampleDriver::getType(getType_cb cb) { in getType() argument 103 cb(V1_0::ErrorStatus::NONE, V1_2::DeviceType::CPU); in getType() [all …]
|
D | SampleDriverFull.cpp | 32 Return<void> SampleDriverFull::getCapabilities_1_3(getCapabilities_1_3_cb cb) { in getCapabilities_1_3() argument 41 cb(ErrorStatus::NONE, capabilities); in getCapabilities_1_3() 46 getSupportedOperations_1_3_cb cb) { in getSupportedOperations_1_3() argument 51 cb(ErrorStatus::NONE, supported); in getSupportedOperations_1_3() 54 cb(ErrorStatus::INVALID_ARGUMENT, supported); in getSupportedOperations_1_3()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
D | CellularTile.java | 159 CallbackInfo cb = (CallbackInfo) arg; in handleUpdateState() local 160 if (cb == null) { in handleUpdateState() 161 cb = mSignalCallback.mInfo; in handleUpdateState() 169 state.activityIn = mobileDataEnabled && cb.activityIn; in handleUpdateState() 170 state.activityOut = mobileDataEnabled && cb.activityOut; in handleUpdateState() 172 if (cb.noSim) { in handleUpdateState() 178 if (cb.noSim) { in handleUpdateState() 181 } else if (cb.airplaneModeEnabled) { in handleUpdateState() 188 cb.multipleSubs ? cb.dataSubscriptionName : "", in handleUpdateState() 189 getMobileDataContentName(cb)); in handleUpdateState() [all …]
|
D | WifiTile.java | 154 final CallbackInfo cb = mSignalCallback.mInfo; in handleUpdateState() local 156 if (cb.enabled) { in handleUpdateState() 163 boolean wifiConnected = cb.enabled && (cb.wifiSignalIconId > 0) && (cb.ssid != null); in handleUpdateState() 164 boolean wifiNotConnected = (cb.wifiSignalIconId > 0) && (cb.ssid == null); in handleUpdateState() 165 boolean enabledChanging = state.value != cb.enabled; in handleUpdateState() 167 mDetailAdapter.setItemsVisible(cb.enabled); in handleUpdateState() 168 fireToggleStateChanged(cb.enabled); in handleUpdateState() 175 boolean isTransient = transientEnabling || cb.isTransient; in handleUpdateState() 176 state.secondaryLabel = getSecondaryLabel(isTransient, cb.statusLabel); in handleUpdateState() 179 state.value = transientEnabling || cb.enabled; in handleUpdateState() [all …]
|
/frameworks/base/core/java/android/os/ |
D | RemoteCallbackList.java | 125 Callback cb = new Callback(callback, cookie); in register() local 127 binder.linkToDeath(cb, 0); in register() 128 mCallbacks.put(binder, cb); in register() 155 Callback cb = mCallbacks.remove(callback.asBinder()); in unregister() local 156 if (cb != null) { in unregister() 157 cb.mCallback.asBinder().unlinkToDeath(cb, 0); in unregister() 175 Callback cb = mCallbacks.valueAt(cbi); in kill() local 176 cb.mCallback.asBinder().unlinkToDeath(cb, 0); in kill()
|
/frameworks/opt/net/ims/src/java/com/android/ims/ |
D | RcsFeatureConnection.java | 245 public void addCallbackForSubscription(int subId, IImsCapabilityCallback cb) { in addCallbackForSubscription() argument 246 mAvailabilityCallbackManager.addCallbackForSubscription(cb, subId); in addCallbackForSubscription() 249 public void addCallbackForSubscription(int subId, IImsRegistrationCallback cb) { in addCallbackForSubscription() argument 250 mRegistrationCallbackManager.addCallbackForSubscription(cb, subId); in addCallbackForSubscription() 253 public void addCallback(IImsRegistrationCallback cb) { in addCallback() argument 254 mRegistrationCallbackManager.addCallback(cb); in addCallback() 257 public void removeCallbackForSubscription(int subId, IImsCapabilityCallback cb) { in removeCallbackForSubscription() argument 258 mAvailabilityCallbackManager.removeCallbackForSubscription(cb, subId); in removeCallbackForSubscription() 261 public void removeCallbackForSubscription(int subId, IImsRegistrationCallback cb) { in removeCallbackForSubscription() argument 262 mRegistrationCallbackManager.removeCallbackForSubscription(cb, subId); in removeCallbackForSubscription() [all …]
|
/frameworks/base/lowpan/java/android/net/lowpan/ |
D | LowpanInterface.java | 555 public void registerCallback(@NonNull Callback cb, @Nullable Handler handler) { in registerCallback() argument 572 mHandler.post(() -> cb.onEnabledChanged(value)); in registerCallback() 577 mHandler.post(() -> cb.onConnectedChanged(value)); in registerCallback() 582 mHandler.post(() -> cb.onUpChanged(value)); in registerCallback() 587 mHandler.post(() -> cb.onRoleChanged(value)); in registerCallback() 592 mHandler.post(() -> cb.onStateChanged(value)); in registerCallback() 597 mHandler.post(() -> cb.onLowpanIdentityChanged(value)); in registerCallback() 602 mHandler.post(() -> cb.onLinkNetworkAdded(value)); in registerCallback() 607 mHandler.post(() -> cb.onLinkNetworkRemoved(value)); in registerCallback() 621 mHandler.post(() -> cb.onLinkAddressAdded(la)); in registerCallback() [all …]
|
/frameworks/native/libs/vr/libvr_manager/ |
D | vr_manager.cpp | 97 void registerListener(const sp<IVrStateCallbacks>& cb) override { in registerListener() argument 100 data.writeStrongBinder(IInterface::asBinder(cb)); in registerListener() 104 void unregisterListener(const sp<IVrStateCallbacks>& cb) override { in unregisterListener() argument 107 data.writeStrongBinder(IInterface::asBinder(cb)); in unregisterListener() 112 const sp<IPersistentVrStateCallbacks>& cb) override { in registerPersistentVrStateListener() argument 115 data.writeStrongBinder(IInterface::asBinder(cb)); in registerPersistentVrStateListener() 120 const sp<IPersistentVrStateCallbacks>& cb) override { in unregisterPersistentVrStateListener() argument 123 data.writeStrongBinder(IInterface::asBinder(cb)); in unregisterPersistentVrStateListener()
|