/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 | 44 SLresult aplayer_setPlayState(const android::sp<android::GenericPlayer> &ap, SLuint32 playState, argument 52 ap->stop(); 59 ap->prepare(); 64 ap->pause(); 77 ap->prepare(); 82 ap->play(); 105 static size_t adecoder_writeToBufferQueue(const uint8_t *data, size_t size, CAudioPlayer* ap) { argument 106 if (!android::CallbackProtector::enterCbIfOk(ap->mCallbackProtector)) { 116 object_lock_exclusive(&ap->mObject); 118 if (ap 173 android_audioPlayer_volumeUpdate(CAudioPlayer* ap) argument 339 audioTrack_handleMarker_lockPlay(CAudioPlayer* ap) argument 356 audioTrack_handleNewPos_lockPlay(CAudioPlayer* ap) argument 374 audioTrack_handleUnderrun_lockPlay(CAudioPlayer* ap) argument 404 audioPlayer_dispatch_headAtEnd_lockPlay(CAudioPlayer *ap, bool setPlayStateToPaused, bool needToLock) argument 442 audioPlayer_setStreamType(CAudioPlayer* ap, SLint32 type) argument 486 audioPlayer_getStreamType(CAudioPlayer* ap, SLint32 *pType) argument 520 audioPlayer_auxEffectUpdate(CAudioPlayer* ap) argument 568 audioPlayer_getAndroidObjectTypeForSourceSink(const CAudioPlayer *ap) argument 663 CAudioPlayer *ap = (CAudioPlayer *)user; local 1124 CAudioPlayer *ap = (CAudioPlayer *)user; local 1313 android_audioPlayer_setConfig(CAudioPlayer *ap, const SLchar *configKey, const void *pConfigValue, SLuint32 valueSize) argument 1339 android_audioPlayer_getConfig(CAudioPlayer* ap, const SLchar *configKey, SLuint32* pValueSize, void *pConfigValue) argument 1747 android_audioPlayer_setPlaybackRateAndConstraints(CAudioPlayer *ap, SLpermille rate, SLuint32 constraints) argument 1789 android_audioPlayer_metadata_getItemCount(CAudioPlayer *ap, SLuint32 *pItemCount) argument 1815 android_audioPlayer_metadata_getKeySize(CAudioPlayer *ap, SLuint32 index, SLuint32 *pKeySize) argument 1851 android_audioPlayer_metadata_getKey(CAudioPlayer *ap, SLuint32 index, SLuint32 size, SLMetadataInfo *pKey) argument 1888 android_audioPlayer_metadata_getValueSize(CAudioPlayer *ap, SLuint32 index, SLuint32 *pValueSize) argument 1924 android_audioPlayer_metadata_getValue(CAudioPlayer *ap, SLuint32 index, SLuint32 size, SLMetadataInfo *pValue) argument 1961 android_audioPlayer_setPlayState(CAudioPlayer *ap) argument 2011 android_audioPlayer_usePlayEventMask(CAudioPlayer *ap) argument 2063 CAudioPlayer *ap = (CAudioPlayer *)pPlayItf->mThis; local 2089 CAudioPlayer *ap = (CAudioPlayer *)pPlayItf->mThis; local 2122 android_audioPlayer_seek(CAudioPlayer *ap, SLmillisecond posMsec) argument 2148 android_audioPlayer_loop(CAudioPlayer *ap, SLboolean loopEnable) argument 2168 android_audioPlayer_setBufferingUpdateThresholdPerMille(CAudioPlayer *ap, SLpermille threshold) argument 2187 android_audioPlayer_bufferQueue_onRefilled_l(CAudioPlayer *ap) argument 2220 android_audioPlayer_bufferQueue_onClear(CAudioPlayer *ap) argument 2241 android_audioPlayer_androidBufferQueue_clear_l(CAudioPlayer *ap) argument 2255 android_audioPlayer_androidBufferQueue_onRefilled_l(CAudioPlayer *ap) 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 | 221 CAudioPlayer *ap = (CAudioPlayer *) thiz; local 222 prefetchCallback = ap->mPrefetchStatus.mDeferredPrefetchCallback; 223 prefetchContext = ap->mPrefetchStatus.mDeferredPrefetchContext; 224 prefetchEvents = ap->mPrefetchStatus.mDeferredPrefetchEvents; 225 ap->mPrefetchStatus.mDeferredPrefetchCallback = NULL; 227 ap->mPrefetchStatus.mDeferredPrefetchContext = NULL; 228 ap->mPrefetchStatus.mDeferredPrefetchEvents = SL_PREFETCHEVENT_NONE; 229 if (ap->mDeferredStart) { 230 audioTrack = ap->mAudioTrack; 231 ap 249 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/libs/hwui/utils/ |
H A D | TraceUtils.h | 41 va_list ap; local 44 va_start(ap, fmt); 45 vsnprintf(buf, BUFFER_SIZE, fmt, ap); 46 va_end(ap);
|
/frameworks/base/media/jni/soundpool/ |
H A D | android_media_SoundPool.cpp | 54 SoundPool *ap = MusterSoundPool(env, thiz); local 55 if (ap == NULL) return 0; 56 return (jint) ap->load(jniGetFDFromFileDescriptor(env, fileDescriptor), 63 SoundPool *ap = MusterSoundPool(env, thiz); local 64 if (ap == NULL) return JNI_FALSE; 65 return ap->unload(sampleID) ? JNI_TRUE : JNI_FALSE; 74 SoundPool *ap = MusterSoundPool(env, thiz); local 75 if (ap == NULL) return 0; 76 return (jint) ap->play(sampleID, leftVolume, rightVolume, priority, loop, rate); 83 SoundPool *ap local 92 SoundPool *ap = MusterSoundPool(env, thiz); local 101 SoundPool *ap = MusterSoundPool(env, thiz); local 110 SoundPool *ap = MusterSoundPool(env, thiz); local 119 SoundPool *ap = MusterSoundPool(env, thiz); local 129 SoundPool *ap = MusterSoundPool(env, thiz); local 139 SoundPool *ap = MusterSoundPool(env, thiz); local 149 SoundPool *ap = MusterSoundPool(env, thiz); local 159 SoundPool *ap = MusterSoundPool(env, thiz); local 195 SoundPool *ap = new SoundPool(maxChannels, paa); local 217 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,
|
/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 | UsbDebuggingSecondaryUserActivity.java | 48 final AlertController.AlertParams ap = mAlertParams; 49 ap.mTitle = getString(R.string.usb_debugging_secondary_user_title); 51 ap.mMessage = getString(R.string.usb_debugging_secondary_user_message, user.name); 52 ap.mPositiveButtonText = getString(android.R.string.ok); 53 ap.mPositiveButtonListener = this;
|
H A D | UsbDebuggingActivity.java | 66 final AlertController.AlertParams ap = mAlertParams; 67 ap.mTitle = getString(R.string.usb_debugging_title); 68 ap.mMessage = getString(R.string.usb_debugging_message, fingerprints); 69 ap.mPositiveButtonText = getString(android.R.string.ok); 70 ap.mNegativeButtonText = getString(android.R.string.cancel); 71 ap.mPositiveButtonListener = this; 72 ap.mNegativeButtonListener = this; 75 LayoutInflater inflater = LayoutInflater.from(ap.mContext); 79 ap.mView = checkbox;
|
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/tools/aapt/ |
H A D | SourcePos.cpp | 116 va_list ap; local 117 va_start(ap, fmt); 118 String8 msg = String8::formatV(fmt, ap); 119 va_end(ap); 126 va_list ap; local 127 va_start(ap, fmt); 128 String8 msg = String8::formatV(fmt, ap); 129 va_end(ap); 136 va_list ap; local 137 va_start(ap, fm [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
H A D | AccessPointControllerImpl.java | 105 public int getIcon(AccessPoint ap) { argument 106 int level = ap.getLevel(); 110 public boolean connect(AccessPoint ap) { argument 111 if (ap == null) return false; 112 if (DEBUG) Log.d(TAG, "connect networkId=" + ap.getConfig().networkId); 113 if (ap.isSaved()) { 114 mWifiTracker.getManager().connect(ap.getConfig().networkId, mConnectListener); 117 if (ap.getSecurity() != AccessPoint.SECURITY_NONE) { 119 intent.putExtra(EXTRA_START_CONNECT_SSID, ap.getSsidStr()); 124 ap [all...] |
/frameworks/base/libs/androidfw/ |
H A D | AssetManager.cpp | 183 asset_path ap; local 189 ap.type = ::getFileType(realPath.string()); 190 if (ap.type == kFileTypeRegular) { 191 ap.path = realPath; 193 ap.path = path; 194 ap.type = ::getFileType(path.string()); 195 if (ap.type != kFileTypeDirectory && ap.type != kFileTypeRegular) { 197 path.string(), (int)ap.type); 204 if (mAssetPaths[i].path == ap 320 asset_path ap; local 859 openNonAssetInPathLocked(const char* fileName, AccessMode mode, const asset_path& ap) argument 916 openInPathLocked(const char* fileName, AccessMode mode, const asset_path& ap) argument 945 openInLocaleVendorLocked(const char* fileName, AccessMode mode, const asset_path& ap, const char* locale, const char* vendor) argument 1080 createPathNameLocked(const asset_path& ap, const char* locale, const char* vendor) argument 1092 createPathNameLocked(const asset_path& ap, const char* rootDir) argument 1112 getZipFileLocked(const asset_path& ap) argument 1237 const asset_path& ap = mAssetPaths.itemAt(i); local 1291 const asset_path& ap = mAssetPaths.itemAt(which); local 1321 scanAndMergeDirLocked(SortedVector<AssetDir::FileInfo>* pMergedInfo, const asset_path& ap, const char* rootDir, const char* dirName) argument 1509 scanAndMergeZipLocked(SortedVector<AssetDir::FileInfo>* pMergedInfo, const asset_path& ap, const char* rootDir, const char* baseDirName) argument 1778 const asset_path& ap = mAssetPaths.itemAt(i); local 1795 fncScanAndMergeDirLocked( SortedVector<AssetDir::FileInfo>* pMergedInfo, const asset_path& ap, const char* locale, const char* vendor, const char* dirName) argument 1961 addOverlay(const asset_path& ap) argument [all...] |
/frameworks/base/cmds/idmap/ |
H A D | inspect.cpp | 115 va_list ap; local 117 va_start(ap, fmt); 119 vfprintf(stderr, fmt, ap); 120 va_end(ap); 128 va_list ap; local 130 va_start(ap, fmt); 132 vprintf(fmt, ap); 134 va_end(ap); 138 va_list ap; local 140 va_start(ap, fm [all...] |
/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/av/media/libstagefright/codecs/on2/h264dec/omxdl/reference/vc/m4p10/src/ |
H A D | armVCM4P10_DeBlockPixel.c | 71 int ap, aq, delta; local 94 ap = armAbs(p2 - p0); 107 if (ap < beta) 123 if (ChromaFlag==0 && ap<beta) 139 if (ChromaFlag==0 && ap<beta && armAbs(p0-q0)<((alpha>>2)+2))
|
/frameworks/av/media/libnbaio/ |
H A D | NBLog.cpp | 108 va_list ap; local 109 va_start(ap, fmt); 110 Writer::logvf(fmt, ap); // the Writer:: is needed to avoid virtual dispatch for LockedWriter 111 va_end(ap); 114 void NBLog::Writer::logvf(const char *fmt, va_list ap) argument 120 int length = vsnprintf(buffer, sizeof(buffer), fmt, ap); 235 va_list ap; local 236 va_start(ap, fmt); 237 Writer::logvf(fmt, ap); 238 va_end(ap); 241 logvf(const char *fmt, va_list ap) argument [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
H A D | AppCompatTextHelper.java | 45 final int ap = a.getResourceId(0, -1); 49 if (ap != -1) { 50 TypedArray appearance = context.obtainStyledAttributes(ap, R.styleable.TextAppearance);
|