/frameworks/wilhelm/src/android/ |
D | AudioPlayer_to_android.cpp | 53 inline void audioManagerPlayerEvent(CAudioPlayer* ap, android::player_state_t event, in audioManagerPlayerEvent() argument 55 if (ap->mObject.mEngine->mAudioManager != 0) { in audioManagerPlayerEvent() 56 ap->mObject.mEngine->mAudioManager->playerEvent(ap->mPIId, event, deviceId); in audioManagerPlayerEvent() 88 SLresult aplayer_setPlayState(const android::sp<android::GenericPlayer> &ap, SLuint32 playState, in aplayer_setPlayState() argument 96 ap->stop(); in aplayer_setPlayState() 103 ap->prepare(); in aplayer_setPlayState() 108 ap->pause(); in aplayer_setPlayState() 121 ap->prepare(); in aplayer_setPlayState() 126 ap->play(); in aplayer_setPlayState() 149 static size_t adecoder_writeToBufferQueue(const uint8_t *data, size_t size, CAudioPlayer* ap) { in adecoder_writeToBufferQueue() argument [all …]
|
/frameworks/av/media/module/foundation/ |
D | AudioPresentationInfo.cpp | 32 for (const auto& ap : presentations) { in serializeAudioPresentations() local 33 if (ap.mVersion == PRESENTATION_VERSION_1) { in serializeAudioPresentations() 35 const_cast<char*>(reinterpret_cast<const char*>(&ap.mVersion)), in serializeAudioPresentations() 36 sizeof(ap.mVersion)); in serializeAudioPresentations() 38 const_cast<char*>(reinterpret_cast<const char*>(&ap.mPresentationId)), in serializeAudioPresentations() 39 sizeof(ap.mPresentationId)); in serializeAudioPresentations() 41 const_cast<char*>(reinterpret_cast<const char*>(&ap.mProgramId)), in serializeAudioPresentations() 42 sizeof(ap.mProgramId)); in serializeAudioPresentations() 44 uint32_t numLabels = ap.mLabels.size(); in serializeAudioPresentations() 48 for (const auto& label : ap.mLabels) { in serializeAudioPresentations() [all …]
|
/frameworks/av/media/libaudioclient/tests/ |
D | audiotrack_tests.cpp | 47 const auto ap = sp<AudioPlayback>::make(44100 /* sampleRate */, AUDIO_FORMAT_PCM_16_BIT, in TEST() local 50 ASSERT_NE(nullptr, ap); in TEST() 51 ASSERT_EQ(OK, ap->loadResource("/data/local/tmp/bbb_2ch_24kHz_s16le.raw")) in TEST() 53 EXPECT_EQ(OK, ap->create()) << "track creation failed"; in TEST() 54 EXPECT_EQ(OK, ap->start()) << "audio track start failed"; in TEST() 55 EXPECT_EQ(OK, ap->onProcess()); in TEST() 56 ap->stop(); in TEST() 60 const auto ap = sp<AudioPlayback>::make( in TEST() local 62 ASSERT_NE(nullptr, ap); in TEST() 63 ASSERT_EQ(OK, ap->loadResource("/data/local/tmp/bbb_2ch_24kHz_s16le.raw")) in TEST() [all …]
|
/frameworks/wilhelm/src/ |
D | handler_bodies.cpp | 27 CAudioPlayer *ap = (CAudioPlayer *) thiz; in handler_AudioPlayer_gain() local 28 android_audioPlayer_volumeUpdate(ap); in handler_AudioPlayer_gain() 62 CAudioPlayer *ap; in handler_AudioPlayer_position() local 63 ap = (CAudioPlayer *) thiz; in handler_AudioPlayer_position() 65 (void) android_audioPlayer_seek(ap, ap->mSeek.mPos); in handler_AudioPlayer_position() 81 CAudioPlayer *ap = (CAudioPlayer *) thiz; in handler_AudioPlayer_transport() local 82 android_audioPlayer_usePlayEventMask(ap); in handler_AudioPlayer_transport() 90 CAudioPlayer *ap = (CAudioPlayer *) thiz; in handler_AudioPlayer_play_state() local 91 android_audioPlayer_setPlayState(ap); in handler_AudioPlayer_play_state() 130 CAudioPlayer *ap = (CAudioPlayer *) thiz; in handler_AudioPlayer_bq_enqueue() local [all …]
|
D | locks.cpp | 222 CAudioPlayer *ap = (CAudioPlayer *) thiz; in object_unlock_exclusive_attributes_() local 223 prefetchCallback = ap->mPrefetchStatus.mDeferredPrefetchCallback; in object_unlock_exclusive_attributes_() 224 prefetchContext = ap->mPrefetchStatus.mDeferredPrefetchContext; in object_unlock_exclusive_attributes_() 225 prefetchEvents = ap->mPrefetchStatus.mDeferredPrefetchEvents; in object_unlock_exclusive_attributes_() 226 ap->mPrefetchStatus.mDeferredPrefetchCallback = NULL; in object_unlock_exclusive_attributes_() 228 ap->mPrefetchStatus.mDeferredPrefetchContext = NULL; in object_unlock_exclusive_attributes_() 229 ap->mPrefetchStatus.mDeferredPrefetchEvents = SL_PREFETCHEVENT_NONE; in object_unlock_exclusive_attributes_() 230 if (ap->mDeferredStart) { in object_unlock_exclusive_attributes_() 231 audioTrack = ap->mTrackPlayer->mAudioTrack; in object_unlock_exclusive_attributes_() 232 ap->mDeferredStart = false; in object_unlock_exclusive_attributes_() [all …]
|
/frameworks/wilhelm/src/itf/ |
D | IAndroidEffectSend.cpp | 35 CAudioPlayer *ap = (SL_OBJECTID_AUDIOPLAYER == InterfaceToObjectID(thiz)) ? in IAndroidEffectSend_EnableEffectSend() local 37 if (NULL == ap) { in IAndroidEffectSend_EnableEffectSend() 43 result = android_fxSend_attachToAux(ap, effectImplementationId, enable, in IAndroidEffectSend_EnableEffectSend() 44 initialLevel + ap->mVolume.mLevel); in IAndroidEffectSend_EnableEffectSend() 92 CAudioPlayer *ap = (SL_OBJECTID_AUDIOPLAYER == InterfaceToObjectID(thiz)) ? in IAndroidEffectSend_SetDirectLevel() local 94 if (NULL != ap) { in IAndroidEffectSend_SetDirectLevel() 95 SLmillibel oldDirectLevel = ap->mDirectLevel; in IAndroidEffectSend_SetDirectLevel() 97 ap->mDirectLevel = directLevel; in IAndroidEffectSend_SetDirectLevel() 98 ap->mAmplFromDirectLevel = sles_to_android_amplification(directLevel); in IAndroidEffectSend_SetDirectLevel() 125 CAudioPlayer *ap = (SL_OBJECTID_AUDIOPLAYER == InterfaceToObjectID(thiz)) ? in IAndroidEffectSend_GetDirectLevel() local [all …]
|
D | IMuteSolo.cpp | 31 CAudioPlayer *ap = (CAudioPlayer *) thisObject; in IMuteSolo_SetChannelMute() local 33 SLuint8 numChannels = ap->mNumChannels; in IMuteSolo_SetChannelMute() 42 SLuint8 oldMuteMask = ap->mMuteMask; in IMuteSolo_SetChannelMute() 44 ap->mMuteMask |= mask; in IMuteSolo_SetChannelMute() 46 ap->mMuteMask &= ~mask; in IMuteSolo_SetChannelMute() 48 interface_unlock_exclusive_attributes(thiz, oldMuteMask != ap->mMuteMask ? ATTR_GAIN : in IMuteSolo_SetChannelMute() 70 CAudioPlayer *ap = (CAudioPlayer *) thisObject; in IMuteSolo_GetChannelMute() local 73 SLuint8 numChannels = ap->mNumChannels; in IMuteSolo_GetChannelMute() 81 SLuint8 mask = ap->mMuteMask; in IMuteSolo_GetChannelMute() 103 CAudioPlayer *ap = (CAudioPlayer *) thisObject; in IMuteSolo_SetChannelSolo() local [all …]
|
D | IEffectSend.cpp | 133 CAudioPlayer *ap = (SL_OBJECTID_AUDIOPLAYER == InterfaceToObjectID(thiz)) ? in IEffectSend_EnableEffectSend() local 136 assert(NULL != ap); in IEffectSend_EnableEffectSend() 138 COutputMix *outputMix = CAudioPlayer_GetOutputMix(ap); in IEffectSend_EnableEffectSend() 142 result = translateEnableFxSendError(android_fxSend_attach(ap, (bool) enable, in IEffectSend_EnableEffectSend() 144 initialLevel + ap->mVolume.mLevel)); in IEffectSend_EnableEffectSend() 146 result = translateEnableFxSendError(android_fxSend_attach(ap, (bool) enable, in IEffectSend_EnableEffectSend() 148 initialLevel + ap->mVolume.mLevel)); in IEffectSend_EnableEffectSend() 199 CAudioPlayer *ap = (SL_OBJECTID_AUDIOPLAYER == InterfaceToObjectID(thiz)) ? in IEffectSend_SetDirectLevel() local 201 if (NULL != ap) { in IEffectSend_SetDirectLevel() 202 SLmillibel oldDirectLevel = ap->mDirectLevel; in IEffectSend_SetDirectLevel() [all …]
|
/frameworks/base/cmds/idmap2/libidmap2/ |
D | Result.cpp | 27 va_list ap; in Error() local 28 va_start(ap, fmt); in Error() 29 base::StringAppendV(&msg_, fmt, ap); in Error() 30 va_end(ap); in Error() 37 va_list ap; in Error() local 38 va_start(ap, fmt); in Error() 39 base::StringAppendV(&msg_, fmt, ap); in Error() 40 va_end(ap); in Error()
|
D | RawPrintVisitor.cpp | 157 va_list ap; in print() local 158 va_start(ap, fmt); in print() 160 base::StringAppendV(&comment, fmt, ap); in print() 161 va_end(ap); in print() 170 va_list ap; in print() local 171 va_start(ap, fmt); in print() 173 base::StringAppendV(&comment, fmt, ap); in print() 174 va_end(ap); in print() 182 va_list ap; in print() local 183 va_start(ap, fmt); in print() [all …]
|
/frameworks/base/libs/androidfw/ |
D | AssetManager.cpp | 181 asset_path ap; in addAssetPath() local 187 ap.type = ::getFileType(realPath.c_str()); in addAssetPath() 188 if (ap.type == kFileTypeRegular) { in addAssetPath() 189 ap.path = realPath; in addAssetPath() 191 ap.path = path; in addAssetPath() 192 ap.type = ::getFileType(path.c_str()); in addAssetPath() 193 if (ap.type != kFileTypeDirectory && ap.type != kFileTypeRegular) { in addAssetPath() 195 path.c_str(), (int)ap.type); in addAssetPath() 202 if (mAssetPaths[i].path == ap.path) { in addAssetPath() 211 ap.type == kFileTypeDirectory ? "dir" : "zip", ap.path.c_str()); in addAssetPath() [all …]
|
/frameworks/native/libs/gui/include/gui/ |
D | TraceUtils.h | 50 va_list ap; in atraceFormatBegin() local 53 va_start(ap, fmt); in atraceFormatBegin() 54 vsnprintf(buf, BUFFER_SIZE, fmt, ap); in atraceFormatBegin() 55 va_end(ap); in atraceFormatBegin() 62 va_list ap; in instantFormat() local 65 va_start(ap, fmt); in instantFormat() 66 vsnprintf(buf, BUFFER_SIZE, fmt, ap); in instantFormat() 67 va_end(ap); in instantFormat()
|
/frameworks/base/media/jni/ |
D | android_media_AudioPresentation.h | 115 AudioPresentationV1 ap; in addPresentations() local 116 ap.mPresentationId = tap.preselection.preselectionId; in addPresentations() 117 ap.mProgramId = tap.ac4ShortProgramId; in addPresentations() 119 ap.mLabels.insert(std::pair(md.language, md.text)); in addPresentations() 121 ap.mLanguage = tap.preselection.language; in addPresentations() 122 ap.mMasteringIndication = MASTERING_NOT_INDICATED; in addPresentations() 125 ap.mMasteringIndication = masteringSearch->second; in addPresentations() 127 ap.mAudioDescriptionAvailable = tap.preselection.hasAudioDescription; in addPresentations() 128 ap.mSpokenSubtitlesAvailable = tap.preselection.hasSpokenSubtitles; in addPresentations() 129 ap.mDialogueEnhancementAvailable = tap.preselection.hasDialogueEnhancement; in addPresentations() [all …]
|
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/ |
D | AccessPointTest.java | 144 final AccessPoint ap = new AccessPoint(InstrumentationRegistry.getTargetContext(), bundle); in testSsidIsSpannableString_returnFalse() local 145 final CharSequence ssid = ap.getSsid(); in testSsidIsSpannableString_returnFalse() 266 AccessPoint ap = createAccessPointWithScanResultCache(); 267 int originalRssi = ap.getRssi(); 273 AccessPoint ap = createAccessPointWithScanResultCache(); 274 int originalRssi = ap.getRssi(); 276 ap.setRssi(newRssi); 277 assertThat(ap.getRssi()).isEqualTo(newRssi); 286 AccessPoint ap = 296 ap.setScanResults(Collections.singletonList(scanResult)); [all …]
|
/frameworks/native/vulkan/libvulkan/ |
D | debug_report.h | 105 va_list ap; in Info() local 106 va_start(ap, format); in Info() 108 GetObjectUInt64(object), format, ap); in Info() 109 va_end(ap); in Info() 115 va_list ap; in Warn() local 116 va_start(ap, format); in Warn() 118 GetObjectUInt64(object), format, ap); in Warn() 119 va_end(ap); in Warn() 125 va_list ap; in Err() local 126 va_start(ap, format); in Err() [all …]
|
/frameworks/base/tools/aapt/ |
D | SourcePos.cpp | 116 va_list ap; in error() local 117 va_start(ap, fmt); in error() 118 String8 msg = String8::formatV(fmt, ap); in error() 119 va_end(ap); in error() 126 va_list ap; in warning() local 127 va_start(ap, fmt); in warning() 128 String8 msg = String8::formatV(fmt, ap); in warning() 129 va_end(ap); in warning() 136 va_list ap; in printf() local 137 va_start(ap, fmt); in printf() [all …]
|
/frameworks/libs/binary_translation/base/ |
D | format_buffer.cc | 25 va_list ap; in FormatBuffer() local 26 va_start(ap, format); in FormatBuffer() 27 size_t n = FormatBufferV(buf, buf_size, format, ap); in FormatBuffer() 28 va_end(ap); in FormatBuffer() 32 size_t FormatBufferV(char* buf, size_t buf_size, const char* format, va_list ap) { in FormatBufferV() argument 42 FormatBufferVaListArgs args(ap); in FormatBufferV()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/ |
D | UsbDialogActivity.java | 91 final AlertController.AlertParams ap = mAlertParams; in setAlertParams() local 92 ap.mTitle = title; in setAlertParams() 93 ap.mMessage = message; in setAlertParams() 94 ap.mPositiveButtonText = getString(android.R.string.ok); in setAlertParams() 95 ap.mNegativeButtonText = getString(android.R.string.cancel); in setAlertParams() 96 ap.mPositiveButtonListener = this; in setAlertParams() 97 ap.mNegativeButtonListener = this; in setAlertParams() 101 final AlertController.AlertParams ap = mAlertParams; in addAlwaysUseCheckbox() local 103 ap.mView = inflater.inflate(com.android.internal.R.layout.always_use_checkbox, null); in addAlwaysUseCheckbox() 104 mAlwaysUse = ap.mView.findViewById(com.android.internal.R.id.alwaysUse); in addAlwaysUseCheckbox() [all …]
|
D | UsbAccessoryUriActivity.java | 90 final AlertController.AlertParams ap = mAlertParams; in onCreate() local 91 ap.mTitle = mAccessory.getDescription(); in onCreate() 92 if (ap.mTitle == null || ap.mTitle.length() == 0) { in onCreate() 93 ap.mTitle = getString(R.string.title_usb_accessory); in onCreate() 95 ap.mMessage = getString(R.string.usb_accessory_uri_prompt, mUri); in onCreate() 96 ap.mPositiveButtonText = getString(R.string.label_view); in onCreate() 97 ap.mNegativeButtonText = getString(android.R.string.cancel); in onCreate() 98 ap.mPositiveButtonListener = this; in onCreate() 99 ap.mNegativeButtonListener = this; in onCreate()
|
/frameworks/base/services/core/java/com/android/server/audio/ |
D | DefaultAudioPolicyFacade.java | 56 IAudioPolicyService ap = mServiceHolder.waitForService(); in isHotwordStreamSupported() local 58 return ap.isHotwordStreamSupported(lookbackAudio); in isHotwordStreamSupported() 60 mServiceHolder.attemptClear(ap.asBinder()); in isHotwordStreamSupported() 67 IAudioPolicyService ap = mServiceHolder.checkService(); in getPermissionController() local 68 if (ap == null) return null; in getPermissionController() 70 var res = Objects.requireNonNull(ap.getPermissionController()); in getPermissionController() 74 mServiceHolder.attemptClear(ap.asBinder()); in getPermissionController()
|
/frameworks/libs/binary_translation/base/include/berberis/base/ |
D | tracing.h | 45 va_list ap; in TraceF() local 46 va_start(ap, format); in TraceF() 47 TraceV(format, ap); in TraceF() 48 va_end(ap); in TraceF() 51 static void __attribute__((__format__(printf, 1, 0))) TraceV(const char* format, va_list ap) { in TraceV() argument 52 FormatBufferVaListArgs args(ap); in TraceV()
|
/frameworks/libs/binary_translation/kernel_api/riscv64/ |
D | tracing.cc | 27 va_list ap; in KernelApiTrace() local 28 va_start(ap, format); in KernelApiTrace() 29 Tracing::TraceV(format, ap); in KernelApiTrace() 30 va_end(ap); in KernelApiTrace()
|
/frameworks/base/packages/Shell/src/com/android/shell/ |
D | BugreportWarningActivity.java | 63 final AlertController.AlertParams ap = mAlertParams; in onCreate() local 64 ap.mView = LayoutInflater.from(this).inflate(R.layout.confirm_repeat, null); in onCreate() 65 ap.mPositiveButtonText = getString(android.R.string.ok); in onCreate() 66 ap.mNegativeButtonText = getString(android.R.string.cancel); in onCreate() 67 ap.mPositiveButtonListener = this; in onCreate() 68 ap.mNegativeButtonListener = this; in onCreate() 70 mConfirmRepeat = (CheckBox) ap.mView.findViewById(android.R.id.checkbox); in onCreate()
|
/frameworks/av/media/module/codecs/amrwb/enc/src/ |
D | weight_a.c | 30 Word16 ap[], /* (o) Q12 : Spectral expanded LPC coefficients */ in Weight_a() argument 36 *ap++ = *a++; in Weight_a() 39 *ap++ =(Word16)(((vo_L_mult((*a++), fac)) + 0x8000) >> 16); in Weight_a() 43 *ap++ = (Word16)(((vo_L_mult((*a++), fac)) + 0x8000) >> 16); in Weight_a()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/connectivity/ |
D | AccessPointControllerImpl.java | 165 public int getIcon(WifiEntry ap) { in getIcon() argument 166 int level = ap.getLevel(); in getIcon() 178 public boolean connect(@Nullable WifiEntry ap) { in connect() argument 179 if (ap == null) return false; in connect() 181 if (ap.getWifiConfiguration() != null) { in connect() 182 Log.d(TAG, "connect networkId=" + ap.getWifiConfiguration().networkId); in connect() 184 Log.d(TAG, "connect to unsaved network " + ap.getTitle()); in connect() 187 if (ap.isSaved()) { in connect() 188 ap.connect(mConnectCallback); in connect() 191 if (ap.getSecurity() != WifiEntry.SECURITY_NONE) { in connect() [all …]
|