Home
last modified time | relevance | path

Searched refs:ap (Results 1 – 25 of 79) sorted by relevance

1234

/frameworks/wilhelm/src/android/
DAudioPlayer_to_android.cpp48 SLresult aplayer_setPlayState(const android::sp<android::GenericPlayer> &ap, SLuint32 playState, in aplayer_setPlayState() argument
56 ap->stop(); in aplayer_setPlayState()
63 ap->prepare(); in aplayer_setPlayState()
68 ap->pause(); in aplayer_setPlayState()
81 ap->prepare(); in aplayer_setPlayState()
86 ap->play(); in aplayer_setPlayState()
109 static size_t adecoder_writeToBufferQueue(const uint8_t *data, size_t size, CAudioPlayer* ap) { in adecoder_writeToBufferQueue() argument
110 if (!android::CallbackProtector::enterCbIfOk(ap->mCallbackProtector)) { in adecoder_writeToBufferQueue()
120 object_lock_exclusive(&ap->mObject); in adecoder_writeToBufferQueue()
122 if (ap->mBufferQueue.mState.count != 0) { in adecoder_writeToBufferQueue()
[all …]
Dandroid_Effect.cpp498 android::status_t android_fxSend_attach(CAudioPlayer* ap, bool attach, in android_fxSend_attach() argument
510 if (ap->mAPlayer != 0) { in android_fxSend_attach()
511 assert(ap->mAudioTrack == 0); in android_fxSend_attach()
513 ap->mAPlayer->attachAuxEffect(pFx->id()); in android_fxSend_attach()
514 ap->mAPlayer->setAuxEffectSendLevel( sles_to_android_amplification(sendLevel) ); in android_fxSend_attach()
516 ap->mAPlayer->attachAuxEffect(0); in android_fxSend_attach()
521 if (ap->mAudioTrack == 0) { in android_fxSend_attach()
525 ap->mAuxEffect = pFx; in android_fxSend_attach()
527 ap->mAuxEffect.clear(); in android_fxSend_attach()
530 ap->mAuxSendLevel = sendLevel - ap->mVolume.mLevel; in android_fxSend_attach()
[all …]
/frameworks/base/media/jni/soundpool/
Dandroid_media_SoundPool.cpp54 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/
Dhandler_bodies.c27 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 …]
Dlocks.c221 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->mAudioTrack; in object_unlock_exclusive_attributes_()
231 ap->mDeferredStart = false; in object_unlock_exclusive_attributes_()
[all …]
/frameworks/wilhelm/src/itf/
DIAndroidEffectSend.c35 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 …]
DIMuteSolo.c31 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 …]
DIEffectSend.c133 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/
DAssetManager.cpp177 asset_path ap; in addAssetPath() local
183 ap.type = ::getFileType(realPath.string()); in addAssetPath()
184 if (ap.type == kFileTypeRegular) { in addAssetPath()
185 ap.path = realPath; in addAssetPath()
187 ap.path = path; in addAssetPath()
188 ap.type = ::getFileType(path.string()); in addAssetPath()
189 if (ap.type != kFileTypeDirectory && ap.type != kFileTypeRegular) { in addAssetPath()
191 path.string(), (int)ap.type); in addAssetPath()
198 if (mAssetPaths[i].path == ap.path) { in addAssetPath()
207 ap.type == kFileTypeDirectory ? "dir" : "zip", ap.path.string()); in addAssetPath()
[all …]
/frameworks/native/vulkan/libvulkan/
Ddebug_report.h106 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/packages/SystemUI/src/com/android/systemui/usb/
DUsbAccessoryUriActivity.java70 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()
DUsbConfirmActivity.java70 final AlertController.AlertParams ap = mAlertParams; in onCreate() local
71 ap.mIcon = mResolveInfo.loadIcon(packageManager); in onCreate()
72 ap.mTitle = appName; in onCreate()
74 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()
80 ap.mPositiveButtonText = getString(android.R.string.ok); in onCreate()
81 ap.mNegativeButtonText = getString(android.R.string.cancel); in onCreate()
82 ap.mPositiveButtonListener = this; in onCreate()
83 ap.mNegativeButtonListener = this; in onCreate()
88 ap.mView = inflater.inflate(com.android.internal.R.layout.always_use_checkbox, null); in onCreate()
[all …]
DUsbPermissionActivity.java83 final AlertController.AlertParams ap = mAlertParams; in onCreate() local
84 ap.mIcon = aInfo.loadIcon(packageManager); in onCreate()
85 ap.mTitle = appName; in onCreate()
87 ap.mMessage = getString(R.string.usb_accessory_permission_prompt, appName); in onCreate()
90 ap.mMessage = getString(R.string.usb_device_permission_prompt, appName); in onCreate()
93 ap.mPositiveButtonText = getString(android.R.string.ok); in onCreate()
94 ap.mNegativeButtonText = getString(android.R.string.cancel); in onCreate()
95 ap.mPositiveButtonListener = this; in onCreate()
96 ap.mNegativeButtonListener = this; in onCreate()
101 ap.mView = inflater.inflate(com.android.internal.R.layout.always_use_checkbox, null); in onCreate()
[all …]
DUsbDebuggingActivity.java66 final AlertController.AlertParams ap = mAlertParams; in onCreate() local
67 ap.mTitle = getString(R.string.usb_debugging_title); in onCreate()
68 ap.mMessage = getString(R.string.usb_debugging_message, fingerprints); in onCreate()
69 ap.mPositiveButtonText = getString(android.R.string.ok); in onCreate()
70 ap.mNegativeButtonText = getString(android.R.string.cancel); in onCreate()
71 ap.mPositiveButtonListener = this; in onCreate()
72 ap.mNegativeButtonListener = this; in onCreate()
75 LayoutInflater inflater = LayoutInflater.from(ap.mContext); in onCreate()
79 ap.mView = checkbox; in onCreate()
DUsbDebuggingSecondaryUserActivity.java45 final AlertController.AlertParams ap = mAlertParams; in onCreate() local
46 ap.mTitle = getString(R.string.usb_debugging_secondary_user_title); in onCreate()
47 ap.mMessage = getString(R.string.usb_debugging_secondary_user_message); in onCreate()
48 ap.mPositiveButtonText = getString(android.R.string.ok); in onCreate()
49 ap.mPositiveButtonListener = this; in onCreate()
/frameworks/base/tools/aapt/
DSourcePos.cpp116 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/
DAccessPointControllerImpl.java105 public int getIcon(AccessPoint ap) { in getIcon() argument
106 int level = ap.getLevel(); in getIcon()
110 public boolean connect(AccessPoint ap) { in connect() argument
111 if (ap == null) return false; in connect()
112 if (DEBUG) Log.d(TAG, "connect networkId=" + ap.getConfig().networkId); in connect()
113 if (ap.isSaved()) { in connect()
114 mWifiTracker.getManager().connect(ap.getConfig().networkId, mConnectListener); in connect()
117 if (ap.getSecurity() != AccessPoint.SECURITY_NONE) { in connect()
119 intent.putExtra(EXTRA_START_CONNECT_SSID, ap.getSsidStr()); in connect()
124 ap.generateOpenNetworkConfig(); in connect()
[all …]
/frameworks/base/core/tests/coretests/src/android/util/
DBase64Test.java327 int ap; in testInputStream() local
335 ap = 0; in testInputStream()
336 while ((b = b64is.read(actual, ap, actual.length-ap)) != -1) { in testInputStream()
337 ap += b; in testInputStream()
339 assertEquals(actual, ap, plain); in testInputStream()
344 ap = 0; in testInputStream()
346 actual[ap++] = (byte) b; in testInputStream()
348 assertEquals(actual, ap, plain); in testInputStream()
353 ap = 0; in testInputStream()
357 b = b64is.read(actual, ap, l); in testInputStream()
[all …]
/frameworks/base/packages/Shell/src/com/android/shell/
DBugreportWarningActivity.java55 final AlertController.AlertParams ap = mAlertParams; in onCreate() local
56 ap.mView = LayoutInflater.from(this).inflate(R.layout.confirm_repeat, null); in onCreate()
57 ap.mPositiveButtonText = getString(android.R.string.ok); in onCreate()
58 ap.mNegativeButtonText = getString(android.R.string.cancel); in onCreate()
59 ap.mPositiveButtonListener = this; in onCreate()
60 ap.mNegativeButtonListener = this; in onCreate()
62 mConfirmRepeat = (CheckBox) ap.mView.findViewById(android.R.id.checkbox); in onCreate()
/frameworks/base/cmds/idmap/
Dinspect.cpp115 va_list ap; in printe() local
117 va_start(ap, fmt); in printe()
119 vfprintf(stderr, fmt, ap); in printe()
120 va_end(ap); in printe()
128 va_list ap; in print() local
130 va_start(ap, fmt); in print()
132 vprintf(fmt, ap); in print()
134 va_end(ap); in print()
138 va_list ap; in print_path() local
140 va_start(ap, fmt); in print_path()
[all …]
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
Dweight_a.c30 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/av/media/libstagefright/codecs/amrwb/src/
Dweight_amrwb_lpc.cpp118 int16 ap[], /* (o) Q12 : Spectral expanded LPC coefficients */ in weight_amrwb_lpc() argument
125 ap[0] = a[0]; in weight_amrwb_lpc()
129 ap[i] = (int16)(fxp_mac_16by16(a[i], fac, roundFactor) >> 15); in weight_amrwb_lpc()
132 ap[i] = (int16)(fxp_mac_16by16(a[i], fac, roundFactor) >> 15); in weight_amrwb_lpc()
/frameworks/base/libs/hwui/utils/
DTraceUtils.h41 va_list ap; in atraceFormatBegin() local
44 va_start(ap, fmt); in atraceFormatBegin()
45 vsnprintf(buf, BUFFER_SIZE, fmt, ap); in atraceFormatBegin()
46 va_end(ap); in atraceFormatBegin()
/frameworks/av/media/libnbaio/
DNBLog.cpp108 va_list ap; in logf() local
109 va_start(ap, fmt); in logf()
110 Writer::logvf(fmt, ap); // the Writer:: is needed to avoid virtual dispatch for LockedWriter in logf()
111 va_end(ap); in logf()
114 void NBLog::Writer::logvf(const char *fmt, va_list ap) in logvf() argument
120 int length = vsnprintf(buffer, sizeof(buffer), fmt, ap); in logvf()
235 va_list ap; in logf() local
236 va_start(ap, fmt); in logf()
237 Writer::logvf(fmt, ap); in logf()
238 va_end(ap); in logf()
[all …]
/frameworks/base/core/java/com/android/internal/app/
DConfirmUserCreationActivity.java71 final AlertController.AlertParams ap = mAlertParams; in onCreate() local
72 ap.mMessage = message; in onCreate()
73 ap.mPositiveButtonText = getString(android.R.string.ok); in onCreate()
74 ap.mPositiveButtonListener = this; in onCreate()
78 ap.mNegativeButtonText = getString(android.R.string.cancel); in onCreate()
79 ap.mNegativeButtonListener = this; in onCreate()

1234