/frameworks/wilhelm/src/android/ |
D | AudioPlayer_to_android.cpp | 52 inline void audioManagerPlayerEvent(CAudioPlayer* ap, android::player_state_t event) { in audioManagerPlayerEvent() argument 53 if (ap->mObject.mEngine->mAudioManager != 0) { in audioManagerPlayerEvent() 54 ap->mObject.mEngine->mAudioManager->playerEvent(ap->mPIId, event); in audioManagerPlayerEvent() 86 SLresult aplayer_setPlayState(const android::sp<android::GenericPlayer> &ap, SLuint32 playState, in aplayer_setPlayState() argument 94 ap->stop(); in aplayer_setPlayState() 101 ap->prepare(); in aplayer_setPlayState() 106 ap->pause(); in aplayer_setPlayState() 119 ap->prepare(); in aplayer_setPlayState() 124 ap->play(); in aplayer_setPlayState() 147 static size_t adecoder_writeToBufferQueue(const uint8_t *data, size_t size, CAudioPlayer* ap) { in adecoder_writeToBufferQueue() argument [all …]
|
/frameworks/av/media/libstagefright/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/base/media/jni/soundpool/ |
D | android_media_SoundPool.cpp | 54 SoundPool *ap = MusterSoundPool(env, thiz); in android_media_SoundPool_load_FD() local 55 if (ap == NULL) return 0; in android_media_SoundPool_load_FD() 56 return (jint) ap->load(jniGetFDFromFileDescriptor(env, fileDescriptor), in android_media_SoundPool_load_FD() 63 SoundPool *ap = MusterSoundPool(env, thiz); in android_media_SoundPool_unload() local 64 if (ap == NULL) return JNI_FALSE; in android_media_SoundPool_unload() 65 return ap->unload(sampleID) ? JNI_TRUE : JNI_FALSE; in android_media_SoundPool_unload() 74 SoundPool *ap = MusterSoundPool(env, thiz); in android_media_SoundPool_play() local 75 if (ap == NULL) return 0; in android_media_SoundPool_play() 76 return (jint) ap->play(sampleID, leftVolume, rightVolume, priority, loop, rate); in android_media_SoundPool_play() 83 SoundPool *ap = MusterSoundPool(env, thiz); in android_media_SoundPool_pause() local [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 | 221 CAudioPlayer *ap = (CAudioPlayer *) thiz; in object_unlock_exclusive_attributes_() local 222 prefetchCallback = ap->mPrefetchStatus.mDeferredPrefetchCallback; in object_unlock_exclusive_attributes_() 223 prefetchContext = ap->mPrefetchStatus.mDeferredPrefetchContext; in object_unlock_exclusive_attributes_() 224 prefetchEvents = ap->mPrefetchStatus.mDeferredPrefetchEvents; in object_unlock_exclusive_attributes_() 225 ap->mPrefetchStatus.mDeferredPrefetchCallback = NULL; in object_unlock_exclusive_attributes_() 227 ap->mPrefetchStatus.mDeferredPrefetchContext = NULL; in object_unlock_exclusive_attributes_() 228 ap->mPrefetchStatus.mDeferredPrefetchEvents = SL_PREFETCHEVENT_NONE; in object_unlock_exclusive_attributes_() 229 if (ap->mDeferredStart) { in object_unlock_exclusive_attributes_() 230 audioTrack = ap->mTrackPlayer->mAudioTrack; in object_unlock_exclusive_attributes_() 231 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/libs/androidfw/ |
D | AssetManager.cpp | 180 asset_path ap; in addAssetPath() local 186 ap.type = ::getFileType(realPath.string()); in addAssetPath() 187 if (ap.type == kFileTypeRegular) { in addAssetPath() 188 ap.path = realPath; in addAssetPath() 190 ap.path = path; in addAssetPath() 191 ap.type = ::getFileType(path.string()); in addAssetPath() 192 if (ap.type != kFileTypeDirectory && ap.type != kFileTypeRegular) { in addAssetPath() 194 path.string(), (int)ap.type); in addAssetPath() 201 if (mAssetPaths[i].path == ap.path) { in addAssetPath() 210 ap.type == kFileTypeDirectory ? "dir" : "zip", ap.path.string()); in addAssetPath() [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 | 94 va_list ap; in print() local 95 va_start(ap, fmt); in print() 97 base::StringAppendV(&comment, fmt, ap); in print() 98 va_end(ap); in print() 107 va_list ap; in print() local 108 va_start(ap, fmt); in print() 110 base::StringAppendV(&comment, fmt, ap); in print() 111 va_end(ap); in print() 120 va_list ap; in print() local 121 va_start(ap, fmt); in print() [all …]
|
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/ |
D | AccessPointTest.java | 143 final AccessPoint ap = new AccessPoint(InstrumentationRegistry.getTargetContext(), bundle); in testSsidIsSpannableString_returnFalse() local 144 final CharSequence ssid = ap.getSsid(); in testSsidIsSpannableString_returnFalse() 254 AccessPoint ap = createAccessPointWithScanResultCache(); 255 int originalRssi = ap.getRssi(); 261 AccessPoint ap = createAccessPointWithScanResultCache(); 262 int originalRssi = ap.getRssi(); 264 ap.setRssi(newRssi); 265 assertThat(ap.getRssi()).isEqualTo(newRssi); 274 AccessPoint ap = 284 ap.setScanResults(Collections.singletonList(scanResult)); [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/ |
D | UsbAccessoryUriActivity.java | 70 final AlertController.AlertParams ap = mAlertParams; in onCreate() local 71 ap.mTitle = mAccessory.getDescription(); in onCreate() 72 if (ap.mTitle == null || ap.mTitle.length() == 0) { in onCreate() 73 ap.mTitle = getString(R.string.title_usb_accessory); in onCreate() 75 ap.mMessage = getString(R.string.usb_accessory_uri_prompt, mUri); in onCreate() 76 ap.mPositiveButtonText = getString(R.string.label_view); in onCreate() 77 ap.mNegativeButtonText = getString(android.R.string.cancel); in onCreate() 78 ap.mPositiveButtonListener = this; in onCreate() 79 ap.mNegativeButtonListener = this; in onCreate()
|
D | UsbConfirmActivity.java | 70 final AlertController.AlertParams ap = mAlertParams; in onCreate() local 71 ap.mTitle = appName; in onCreate() 73 ap.mMessage = getString(R.string.usb_accessory_confirm_prompt, appName, in onCreate() 77 ap.mMessage = getString(R.string.usb_device_confirm_prompt, appName, in onCreate() 81 ap.mPositiveButtonText = getString(android.R.string.ok); in onCreate() 82 ap.mNegativeButtonText = getString(android.R.string.cancel); in onCreate() 83 ap.mPositiveButtonListener = this; in onCreate() 84 ap.mNegativeButtonListener = this; in onCreate() 89 ap.mView = inflater.inflate(com.android.internal.R.layout.always_use_checkbox, null); in onCreate() 90 mAlwaysUse = (CheckBox)ap.mView.findViewById(com.android.internal.R.id.alwaysUse); in onCreate() [all …]
|
D | UsbPermissionActivity.java | 84 final AlertController.AlertParams ap = mAlertParams; in onCreate() local 85 ap.mTitle = appName; in onCreate() 87 ap.mMessage = getString(R.string.usb_accessory_permission_prompt, appName, in onCreate() 91 ap.mMessage = getString(R.string.usb_device_permission_prompt, appName, in onCreate() 95 ap.mPositiveButtonText = getString(android.R.string.ok); in onCreate() 96 ap.mNegativeButtonText = getString(android.R.string.cancel); in onCreate() 97 ap.mPositiveButtonListener = this; in onCreate() 98 ap.mNegativeButtonListener = this; in onCreate() 104 ap.mView = inflater.inflate(com.android.internal.R.layout.always_use_checkbox, null); in onCreate() 105 mAlwaysUse = (CheckBox) ap.mView.findViewById(com.android.internal.R.id.alwaysUse); in onCreate() [all …]
|
D | UsbDebuggingActivity.java | 75 final AlertController.AlertParams ap = mAlertParams; in onCreate() local 76 ap.mTitle = getString(R.string.usb_debugging_title); in onCreate() 77 ap.mMessage = getString(R.string.usb_debugging_message, fingerprints); in onCreate() 78 ap.mPositiveButtonText = getString(R.string.usb_debugging_allow); in onCreate() 79 ap.mNegativeButtonText = getString(android.R.string.cancel); in onCreate() 80 ap.mPositiveButtonListener = this; in onCreate() 81 ap.mNegativeButtonListener = this; in onCreate() 84 LayoutInflater inflater = LayoutInflater.from(ap.mContext); in onCreate() 88 ap.mView = checkbox; in onCreate()
|
/frameworks/native/vulkan/libvulkan/ |
D | debug_report.h | 106 va_list ap; in Info() local 107 va_start(ap, format); in Info() 109 GetObjectUInt64(object), format, ap); in Info() 110 va_end(ap); in Info() 116 va_list ap; in Warn() local 117 va_start(ap, format); in Warn() 119 GetObjectUInt64(object), format, ap); in Warn() 120 va_end(ap); in Warn() 126 va_list ap; in Err() local 127 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/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | AccessPointControllerImpl.java | 102 public int getIcon(AccessPoint ap) { in getIcon() argument 103 int level = ap.getLevel(); in getIcon() 107 public boolean connect(AccessPoint ap) { in connect() argument 108 if (ap == null) return false; in connect() 109 if (DEBUG) Log.d(TAG, "connect networkId=" + ap.getConfig().networkId); in connect() 110 if (ap.isSaved()) { in connect() 111 mWifiTracker.getManager().connect(ap.getConfig().networkId, mConnectListener); in connect() 114 if (ap.getSecurity() != AccessPoint.SECURITY_NONE) { in connect() 116 intent.putExtra(EXTRA_START_CONNECT_SSID, ap.getSsidStr()); in connect() 121 ap.generateOpenNetworkConfig(); in connect() [all …]
|
/frameworks/base/packages/Shell/src/com/android/shell/ |
D | BugreportWarningActivity.java | 56 final AlertController.AlertParams ap = mAlertParams; in onCreate() local 57 ap.mView = LayoutInflater.from(this).inflate(R.layout.confirm_repeat, null); in onCreate() 58 ap.mPositiveButtonText = getString(android.R.string.ok); in onCreate() 59 ap.mNegativeButtonText = getString(android.R.string.cancel); in onCreate() 60 ap.mPositiveButtonListener = this; in onCreate() 61 ap.mNegativeButtonListener = this; in onCreate() 63 mConfirmRepeat = (CheckBox) ap.mView.findViewById(android.R.id.checkbox); in onCreate()
|
/frameworks/base/core/tests/coretests/src/android/util/ |
D | Base64Test.java | 334 int ap; in testInputStream() local 342 ap = 0; in testInputStream() 343 while ((b = b64is.read(actual, ap, actual.length-ap)) != -1) { in testInputStream() 344 ap += b; in testInputStream() 346 assertEquals(actual, ap, plain); in testInputStream() 351 ap = 0; in testInputStream() 353 actual[ap++] = (byte) b; in testInputStream() 355 assertEquals(actual, ap, plain); in testInputStream() 360 ap = 0; in testInputStream() 364 b = b64is.read(actual, ap, l); in testInputStream() [all …]
|
/frameworks/base/cmds/idmap/ |
D | inspect.cpp | 116 va_list ap; in printe() local 118 va_start(ap, fmt); in printe() 120 vfprintf(stderr, fmt, ap); in printe() 121 va_end(ap); in printe() 129 va_list ap; in print() local 131 va_start(ap, fmt); in print() 133 vprintf(fmt, ap); in print() 135 va_end(ap); in print() 139 va_list ap; in print_path() local 141 va_start(ap, fmt); in print_path() [all …]
|
/frameworks/av/media/libstagefright/codecs/amrwbenc/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/media/jni/ |
D | android_media_AudioPresentation.h | 101 for (const auto& ap : presentations) { in addPresentations() local 102 ScopedLocalRef<jobject> jLabelObject = convertLabelsToMap(env, fields, ap.mLabels); in addPresentations() 104 ScopedLocalRef<jstring> jLanguage(env, env->NewStringUTF(ap.mLanguage.c_str())); in addPresentations() 109 static_cast<jint>(ap.mPresentationId), in addPresentations() 110 static_cast<jint>(ap.mProgramId), in addPresentations() 112 static_cast<jint>(ap.mMasteringIndication), in addPresentations() 113 static_cast<jboolean>((ap.mAudioDescriptionAvailable == 1) ? 1 : 0), in addPresentations() 114 static_cast<jboolean>((ap.mSpokenSubtitlesAvailable == 1) ? 1 : 0), in addPresentations() 115 static_cast<jboolean>((ap.mDialogueEnhancementAvailable == 1) ? 1 : 0), in addPresentations()
|
/frameworks/av/media/libnblog/ |
D | Writer.cpp | 89 va_list ap; in logf() local 90 va_start(ap, fmt); in logf() 91 Writer::logvf(fmt, ap); // the Writer:: is needed to avoid virtual dispatch for LockedWriter in logf() 92 va_end(ap); in logf() 111 va_list ap; in logFormat() local 112 va_start(ap, hash); in logFormat() 113 Writer::logVFormat(fmt, hash, ap); in logFormat() 114 va_end(ap); in logFormat() 187 void Writer::logvf(const char *fmt, va_list ap) in logvf() argument 193 int length = vsnprintf(buffer, sizeof(buffer), fmt, ap); in logvf()
|