/frameworks/av/media/libstagefright/codecs/amrwbenc/src/ |
H A D | weight_a.c | 21 * ap[i] = a[i] * (gamma ** i) * 30 Word16 ap[], /* (o) Q12 : Spectral expanded LPC coefficients */ 36 *ap++ = *a++; 39 *ap++ =(Word16)(((vo_L_mult((*a++), fac)) + 0x8000) >> 16); 43 *ap++ = (Word16)(((vo_L_mult((*a++), fac)) + 0x8000) >> 16); 28 Weight_a( Word16 a[], Word16 ap[], Word16 gamma, Word16 m ) argument
|
/frameworks/wilhelm/src/android/ |
H A D | AudioPlayer_to_android.cpp | 42 SLresult aplayer_setPlayState(const android::sp<android::GenericPlayer> &ap, SLuint32 playState, argument 50 ap->stop(); 57 ap->prepare(); 62 ap->pause(); 75 ap->prepare(); 80 ap->play(); 103 static size_t adecoder_writeToBufferQueue(const uint8_t *data, size_t size, CAudioPlayer* ap) { argument 104 if (!android::CallbackProtector::enterCbIfOk(ap->mCallbackProtector)) { 114 object_lock_exclusive(&ap->mObject); 116 if (ap 171 android_audioPlayer_volumeUpdate(CAudioPlayer* ap) argument 337 audioTrack_handleMarker_lockPlay(CAudioPlayer* ap) argument 354 audioTrack_handleNewPos_lockPlay(CAudioPlayer* ap) argument 372 audioTrack_handleUnderrun_lockPlay(CAudioPlayer* ap) argument 402 audioPlayer_dispatch_headAtEnd_lockPlay(CAudioPlayer *ap, bool setPlayStateToPaused, bool needToLock) argument 440 audioPlayer_setStreamType(CAudioPlayer* ap, SLint32 type) argument 484 audioPlayer_getStreamType(CAudioPlayer* ap, SLint32 *pType) argument 518 audioPlayer_auxEffectUpdate(CAudioPlayer* ap) argument 565 audioPlayer_getAndroidObjectTypeForSourceSink(CAudioPlayer *ap) argument 660 CAudioPlayer *ap = (CAudioPlayer *)user; local 1090 CAudioPlayer *ap = (CAudioPlayer *)user; local 1276 android_audioPlayer_setConfig(CAudioPlayer *ap, const SLchar *configKey, const void *pConfigValue, SLuint32 valueSize) argument 1302 android_audioPlayer_getConfig(CAudioPlayer* ap, const SLchar *configKey, SLuint32* pValueSize, void *pConfigValue) argument 1708 android_audioPlayer_setPlaybackRateAndConstraints(CAudioPlayer *ap, SLpermille rate, SLuint32 constraints) argument 1750 android_audioPlayer_metadata_getItemCount(CAudioPlayer *ap, SLuint32 *pItemCount) argument 1776 android_audioPlayer_metadata_getKeySize(CAudioPlayer *ap, SLuint32 index, SLuint32 *pKeySize) argument 1812 android_audioPlayer_metadata_getKey(CAudioPlayer *ap, SLuint32 index, SLuint32 size, SLMetadataInfo *pKey) argument 1849 android_audioPlayer_metadata_getValueSize(CAudioPlayer *ap, SLuint32 index, SLuint32 *pValueSize) argument 1885 android_audioPlayer_metadata_getValue(CAudioPlayer *ap, SLuint32 index, SLuint32 size, SLMetadataInfo *pValue) argument 1922 android_audioPlayer_setPlayState(CAudioPlayer *ap) argument 1972 android_audioPlayer_usePlayEventMask(CAudioPlayer *ap) argument 2024 CAudioPlayer *ap = (CAudioPlayer *)pPlayItf->mThis; local 2050 CAudioPlayer *ap = (CAudioPlayer *)pPlayItf->mThis; local 2083 android_audioPlayer_seek(CAudioPlayer *ap, SLmillisecond posMsec) argument 2109 android_audioPlayer_loop(CAudioPlayer *ap, SLboolean loopEnable) argument 2129 android_audioPlayer_setBufferingUpdateThresholdPerMille(CAudioPlayer *ap, SLpermille threshold) argument 2148 android_audioPlayer_bufferQueue_onRefilled_l(CAudioPlayer *ap) argument 2181 android_audioPlayer_bufferQueue_onClear(CAudioPlayer *ap) argument 2202 android_audioPlayer_androidBufferQueue_clear_l(CAudioPlayer *ap) argument 2216 android_audioPlayer_androidBufferQueue_onRefilled_l(CAudioPlayer *ap) argument [all...] |
H A D | android_Effect.cpp | 447 * ap != NULL 449 * ap->mAPlayer != 0 450 * ap->mAudioTrack == 0 452 * ap->mAPlayer == 0 453 * ap->mAudioTrack != 0 is optional; if no track yet then the setting is deferred 455 android::status_t android_fxSend_attach(CAudioPlayer* ap, bool attach, argument 467 if (ap->mAPlayer != 0) { 468 assert(ap->mAudioTrack == 0); 470 ap->mAPlayer->attachAuxEffect(pFx->id()); 471 ap 510 android_fxSend_attachToAux(CAudioPlayer* ap, SLInterfaceID pUuid, SLboolean attach, SLmillibel sendLevel) argument 543 android_fxSend_setSendLevel(CAudioPlayer* ap, SLmillibel sendLevel) argument [all...] |
/frameworks/wilhelm/src/ |
H A D | handler_bodies.c | 27 CAudioPlayer *ap = (CAudioPlayer *) thiz; local 28 android_audioPlayer_volumeUpdate(ap); 62 CAudioPlayer *ap; local 63 ap = (CAudioPlayer *) thiz; 65 (void) android_audioPlayer_seek(ap, ap->mSeek.mPos); 81 CAudioPlayer *ap = (CAudioPlayer *) thiz; local 82 android_audioPlayer_usePlayEventMask(ap); 90 CAudioPlayer *ap = (CAudioPlayer *) thiz; local 91 android_audioPlayer_setPlayState(ap); 130 CAudioPlayer *ap = (CAudioPlayer *) thiz; local 141 CAudioPlayer *ap = (CAudioPlayer *) thiz; local 172 CAudioPlayer *ap = (CAudioPlayer *) thiz; local [all...] |
H A D | locks.c | 208 CAudioPlayer *ap = (CAudioPlayer *) thiz; local 209 prefetchCallback = ap->mPrefetchStatus.mDeferredPrefetchCallback; 210 prefetchContext = ap->mPrefetchStatus.mDeferredPrefetchContext; 211 prefetchEvents = ap->mPrefetchStatus.mDeferredPrefetchEvents; 212 ap->mPrefetchStatus.mDeferredPrefetchCallback = NULL; 214 ap->mPrefetchStatus.mDeferredPrefetchContext = NULL; 215 ap->mPrefetchStatus.mDeferredPrefetchEvents = SL_PREFETCHEVENT_NONE; 216 if (ap->mDeferredStart) { 217 audioTrack = ap->mAudioTrack; 218 ap 236 CAudioPlayer *ap = (CAudioPlayer *) thiz; local [all...] |
/frameworks/av/media/libstagefright/codecs/amrwb/src/ |
H A D | weight_amrwb_lpc.cpp | 48 int16 ap[], (o) Q12 : Spectral expanded LPC coefficients 56 ap[i] = a[i] (gamma i) 118 int16 ap[], /* (o) Q12 : Spectral expanded LPC coefficients */ 125 ap[0] = a[0]; 129 ap[i] = (int16)(fxp_mac_16by16(a[i], fac, roundFactor) >> 15); 132 ap[i] = (int16)(fxp_mac_16by16(a[i], fac, roundFactor) >> 15); 116 weight_amrwb_lpc( int16 a[], int16 ap[], int16 gamma, int16 m ) argument
|
/frameworks/base/media/jni/soundpool/ |
H A D | android_media_SoundPool_SoundPoolImpl.cpp | 45 SoundPool *ap = MusterSoundPool(env, thiz); local 51 int id = ap->load(s, priority); 61 SoundPool *ap = MusterSoundPool(env, thiz); local 62 if (ap == NULL) return 0; 63 return ap->load(jniGetFDFromFileDescriptor(env, fileDescriptor), 70 SoundPool *ap = MusterSoundPool(env, thiz); local 71 if (ap == NULL) return 0; 72 return ap->unload(sampleID); 81 SoundPool *ap = MusterSoundPool(env, thiz); local 82 if (ap 90 SoundPool *ap = MusterSoundPool(env, thiz); local 99 SoundPool *ap = MusterSoundPool(env, thiz); local 108 SoundPool *ap = MusterSoundPool(env, thiz); local 117 SoundPool *ap = MusterSoundPool(env, thiz); local 126 SoundPool *ap = MusterSoundPool(env, thiz); local 136 SoundPool *ap = MusterSoundPool(env, thiz); local 146 SoundPool *ap = MusterSoundPool(env, thiz); local 156 SoundPool *ap = MusterSoundPool(env, thiz); local 166 SoundPool *ap = MusterSoundPool(env, thiz); local 182 SoundPool *ap = new SoundPool(maxChannels, (audio_stream_type_t) streamType, srcQuality); local 200 SoundPool *ap = MusterSoundPool(env, thiz); local [all...] |
/frameworks/wilhelm/src/itf/ |
H A D | IAndroidEffectSend.c | 35 CAudioPlayer *ap = (SL_OBJECTID_AUDIOPLAYER == InterfaceToObjectID(thiz)) ? local 37 if (NULL == ap) { 41 COutputMix *outputMix = CAudioPlayer_GetOutputMix(ap); 44 result = android_fxSend_attachToAux(ap, effectImplementationId, enable, 45 initialLevel + ap->mVolume.mLevel); 93 CAudioPlayer *ap = (SL_OBJECTID_AUDIOPLAYER == InterfaceToObjectID(thiz)) ? local 95 if (NULL != ap) { 96 SLmillibel oldDirectLevel = ap->mDirectLevel; 98 ap->mDirectLevel = directLevel; 99 ap 126 CAudioPlayer *ap = (SL_OBJECTID_AUDIOPLAYER == InterfaceToObjectID(thiz)) ? local 155 CAudioPlayer *ap = (SL_OBJECTID_AUDIOPLAYER == InterfaceToObjectID(thiz)) ? local 194 CAudioPlayer *ap = (SL_OBJECTID_AUDIOPLAYER == InterfaceToObjectID(thiz)) ? local [all...] |
H A D | IMuteSolo.c | 31 CAudioPlayer *ap = (CAudioPlayer *) thisObject; local 33 SLuint8 numChannels = ap->mNumChannels; 42 SLuint8 oldMuteMask = ap->mMuteMask; 44 ap->mMuteMask |= mask; 46 ap->mMuteMask &= ~mask; 48 interface_unlock_exclusive_attributes(thiz, oldMuteMask != ap->mMuteMask ? ATTR_GAIN : 70 CAudioPlayer *ap = (CAudioPlayer *) thisObject; local 73 SLuint8 numChannels = ap->mNumChannels; 81 SLuint8 mask = ap->mMuteMask; 103 CAudioPlayer *ap local 142 CAudioPlayer *ap = (CAudioPlayer *) thisObject; local 178 CAudioPlayer *ap = (CAudioPlayer *) thisObject; local [all...] |
H A D | IEffectSend.c | 133 CAudioPlayer *ap = (SL_OBJECTID_AUDIOPLAYER == InterfaceToObjectID(thiz)) ? local 136 assert(NULL != ap); 138 COutputMix *outputMix = CAudioPlayer_GetOutputMix(ap); 142 result = translateEnableFxSendError(android_fxSend_attach(ap, (bool) enable, 144 initialLevel + ap->mVolume.mLevel)); 146 result = translateEnableFxSendError(android_fxSend_attach(ap, (bool) enable, 148 initialLevel + ap->mVolume.mLevel)); 199 CAudioPlayer *ap = (SL_OBJECTID_AUDIOPLAYER == InterfaceToObjectID(thiz)) ? local 201 if (NULL != ap) { 202 SLmillibel oldDirectLevel = ap 234 CAudioPlayer *ap = (SL_OBJECTID_AUDIOPLAYER == InterfaceToObjectID(thiz)) ? local 270 CAudioPlayer *ap = (SL_OBJECTID_AUDIOPLAYER == InterfaceToObjectID(thiz)) ? local [all...] |
H A D | IPlaybackRate.c | 33 CAudioPlayer *ap = (SL_OBJECTID_AUDIOPLAYER == InterfaceToObjectID(thiz)) ? local 35 if (NULL != ap) { 36 result = android_audioPlayer_setPlaybackRateAndConstraints(ap, rate, thiz->mProperties); 87 CAudioPlayer *ap = (SL_OBJECTID_AUDIOPLAYER == InterfaceToObjectID(thiz)) ? local 89 if (NULL != ap) { 90 result = android_audioPlayer_setPlaybackRateAndConstraints(ap, thiz->mRate,
|
H A D | IAndroidEffect.cpp | 30 CAudioPlayer *ap = (CAudioPlayer *)thiz->mThis; local 31 if (ap->mAudioTrack != 0) { 32 result = android_genericFx_createEffect(thiz, effectImplementationId, ap->mSessionId);
|
H A D | ISeek.c | 67 CAudioPlayer *ap = InterfaceToCAudioPlayer(thiz); local 68 if (NULL != ap) { 69 result = android_audioPlayer_loop(ap, loopEnable);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/ |
H A D | UsbAccessoryUriActivity.java | 70 final AlertController.AlertParams ap = mAlertParams; 71 ap.mTitle = mAccessory.getDescription(); 72 if (ap.mTitle == null || ap.mTitle.length() == 0) { 73 ap.mTitle = getString(R.string.title_usb_accessory); 75 ap.mMessage = getString(R.string.usb_accessory_uri_prompt, mUri); 76 ap.mPositiveButtonText = getString(R.string.label_view); 77 ap.mNegativeButtonText = getString(android.R.string.cancel); 78 ap.mPositiveButtonListener = this; 79 ap [all...] |
H A D | UsbDebuggingActivity.java | 66 final AlertController.AlertParams ap = mAlertParams; 67 ap.mTitle = getString(R.string.usb_debugging_title); 68 ap.mIconId = com.android.internal.R.drawable.ic_dialog_usb; 69 ap.mMessage = getString(R.string.usb_debugging_message, fingerprints); 70 ap.mPositiveButtonText = getString(android.R.string.ok); 71 ap.mNegativeButtonText = getString(android.R.string.cancel); 72 ap.mPositiveButtonListener = this; 73 ap.mNegativeButtonListener = this; 76 LayoutInflater inflater = LayoutInflater.from(ap.mContext); 80 ap [all...] |
H A D | UsbConfirmActivity.java | 70 final AlertController.AlertParams ap = mAlertParams; 71 ap.mIcon = mResolveInfo.loadIcon(packageManager); 72 ap.mTitle = appName; 74 ap.mMessage = getString(R.string.usb_accessory_confirm_prompt, appName); 77 ap.mMessage = getString(R.string.usb_device_confirm_prompt, appName); 80 ap.mPositiveButtonText = getString(android.R.string.ok); 81 ap.mNegativeButtonText = getString(android.R.string.cancel); 82 ap.mPositiveButtonListener = this; 83 ap.mNegativeButtonListener = this; 88 ap [all...] |
H A D | UsbPermissionActivity.java | 83 final AlertController.AlertParams ap = mAlertParams; 84 ap.mIcon = aInfo.loadIcon(packageManager); 85 ap.mTitle = appName; 87 ap.mMessage = getString(R.string.usb_accessory_permission_prompt, appName); 90 ap.mMessage = getString(R.string.usb_device_permission_prompt, appName); 93 ap.mPositiveButtonText = getString(android.R.string.ok); 94 ap.mNegativeButtonText = getString(android.R.string.cancel); 95 ap.mPositiveButtonListener = this; 96 ap.mNegativeButtonListener = this; 101 ap [all...] |
/frameworks/base/packages/Shell/src/com/android/shell/ |
H A D | BugreportWarningActivity.java | 54 final AlertController.AlertParams ap = mAlertParams; 55 ap.mView = LayoutInflater.from(this).inflate(R.layout.confirm_repeat, null); 56 ap.mPositiveButtonText = getString(android.R.string.ok); 57 ap.mNegativeButtonText = getString(android.R.string.cancel); 58 ap.mPositiveButtonListener = this; 59 ap.mNegativeButtonListener = this; 61 mConfirmRepeat = (CheckBox) ap.mView.findViewById(android.R.id.checkbox);
|
/frameworks/base/libs/androidfw/ |
H A D | AssetManager.cpp | 172 asset_path ap; local 178 ap.type = ::getFileType(realPath.string()); 179 if (ap.type == kFileTypeRegular) { 180 ap.path = realPath; 182 ap.path = path; 183 ap.type = ::getFileType(path.string()); 184 if (ap.type != kFileTypeDirectory && ap.type != kFileTypeRegular) { 186 path.string(), (int)ap.type); 193 if (mAssetPaths[i].path == ap 298 asset_path ap; local 329 asset_path ap; local 653 const asset_path& ap = mAssetPaths.itemAt(i); local 796 openNonAssetInPathLocked(const char* fileName, AccessMode mode, const asset_path& ap) argument 855 openInPathLocked(const char* fileName, AccessMode mode, const asset_path& ap) argument 884 openInLocaleVendorLocked(const char* fileName, AccessMode mode, const asset_path& ap, const char* locale, const char* vendor) argument 1021 createPathNameLocked(const asset_path& ap, const char* locale, const char* vendor) argument 1033 createPathNameLocked(const asset_path& ap, const char* rootDir) argument 1053 getZipFileLocked(const asset_path& ap) argument 1180 const asset_path& ap = mAssetPaths.itemAt(i); local 1234 const asset_path& ap = mAssetPaths.itemAt(which); local 1264 scanAndMergeDirLocked(SortedVector<AssetDir::FileInfo>* pMergedInfo, const asset_path& ap, const char* rootDir, const char* dirName) argument 1452 scanAndMergeZipLocked(SortedVector<AssetDir::FileInfo>* pMergedInfo, const asset_path& ap, const char* rootDir, const char* baseDirName) argument 1714 const asset_path& ap = mAssetPaths.itemAt(i); local 1731 fncScanAndMergeDirLocked( SortedVector<AssetDir::FileInfo>* pMergedInfo, const asset_path& ap, const char* locale, const char* vendor, const char* dirName) argument [all...] |
/frameworks/base/tools/aapt/ |
H A D | SourcePos.cpp | 124 va_list ap; local 125 va_start(ap, fmt); 126 retval = vsnprintf(buf, sizeof(buf), fmt, ap); 127 va_end(ap); 142 va_list ap; local 143 va_start(ap, fmt); 144 retval = vsnprintf(buf, sizeof(buf), fmt, ap); 145 va_end(ap);
|
/frameworks/base/core/java/com/android/internal/app/ |
H A D | RestrictionsPinActivity.java | 61 AlertController.AlertParams ap = mAlertParams; 62 ap.mTitle = getString(R.string.restr_pin_enter_admin_pin); 65 ap.mView = inflater.inflate(R.layout.restrictions_pin_challenge, null); 67 mPinErrorMessage = (TextView) ap.mView.findViewById(R.id.pin_error_message); 68 mPinText = (EditText) ap.mView.findViewById(R.id.pin_text); 69 mOkButton = (Button) ap.mView.findViewById(R.id.pin_ok_button); 70 mCancelButton = (Button) ap.mView.findViewById(R.id.pin_cancel_button);
|
/frameworks/base/core/tests/coretests/src/android/util/ |
H A D | Base64Test.java | 327 int ap; 335 ap = 0; 336 while ((b = b64is.read(actual, ap, actual.length-ap)) != -1) { 337 ap += b; 339 assertEquals(actual, ap, plain); 344 ap = 0; 346 actual[ap++] = (byte) b; 348 assertEquals(actual, ap, plain); 353 ap [all...] |
/frameworks/rs/cpu_ref/linkloader/ |
H A D | main.cpp | 80 va_list ap; local 81 va_start(ap, fmt); 82 int result = vprintf(fmt, ap); 83 va_end(ap); 88 va_list ap; local 89 va_start(ap, fmt); 90 int result = vscanf(fmt, ap); 91 va_end(ap);
|
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/reference/vc/m4p10/src/ |
H A D | armVCM4P10_DeBlockPixel.c | 56 int ap, aq, delta; local 79 ap = armAbs(p2 - p0); 92 if (ap < beta) 108 if (ChromaFlag==0 && ap<beta) 124 if (ChromaFlag==0 && ap<beta && armAbs(p0-q0)<((alpha>>2)+2))
|
/frameworks/av/media/libnbaio/ |
H A D | NBLog.cpp | 107 va_list ap; local 108 va_start(ap, fmt); 109 Writer::logvf(fmt, ap); // the Writer:: is needed to avoid virtual dispatch for LockedWriter 110 va_end(ap); 113 void NBLog::Writer::logvf(const char *fmt, va_list ap) argument 119 int length = vsnprintf(buffer, sizeof(buffer), fmt, ap); 234 va_list ap; local 235 va_start(ap, fmt); 236 Writer::logvf(fmt, ap); 237 va_end(ap); 240 logvf(const char *fmt, va_list ap) argument [all...] |