/frameworks/base/voip/jni/rtp/ |
D | G711Codec.cpp | 51 int sample = samples[i]; in encode() local 52 int sign = (sample >> 8) & 0x80; in encode() 53 if (sample < 0) { in encode() 54 sample = -sample; in encode() 56 sample += 132; in encode() 57 if (sample > 32767) { in encode() 58 sample = 32767; in encode() 60 int exponent = gExponents[sample >> 8]; in encode() 61 int mantissa = (sample >> (exponent + 3)) & 0x0F; in encode() 77 int sample = (((mantissa << 3) + 132) << exponent) - 132; in decode() local [all …]
|
/frameworks/base/media/libstagefright/codecs/mp3dec/src/ |
D | pvmp3_polyphase_filter_window.h | 93 __inline int16 saturate16(int32 sample) in saturate16() argument 99 mov a, sample, asr#15 in saturate16() 100 teq a, sample, asr b in saturate16() 101 eorne sample, MAX_16BITS_INT, sample, asr#31 in saturate16() 103 return sample ; in saturate16() 108 inline int16 saturate16(int32 sample) 111 if ((sample >> 15) ^(sample >> 31)) 113 sample = MAX_16BITS_INT ^(sample >> 31); 115 return sample;
|
/frameworks/base/media/jni/soundpool/ |
D | SoundPool.cpp | 210 sp<Sample> sample = new Sample(++mNextSampleID, path); in load() local 211 mSamples.add(sample->sampleID(), sample); in load() 212 doLoad(sample); in load() 213 return sample->sampleID(); in load() 221 sp<Sample> sample = new Sample(++mNextSampleID, fd, offset, length); in load() local 222 mSamples.add(sample->sampleID(), sample); in load() 223 doLoad(sample); in load() 224 return sample->sampleID(); in load() 227 void SoundPool::doLoad(sp<Sample>& sample) in doLoad() argument 229 LOGV("doLoad: loading sample sampleID=%d", sample->sampleID()); in doLoad() [all …]
|
D | SoundPoolThread.cpp | 106 sp <Sample> sample = mSoundPool->findSample(sampleID); in doLoadSample() local 108 if (sample != 0) { in doLoadSample() 109 status = sample->doLoad(); in doLoadSample()
|
D | SoundPool.h | 94 void set(const sp<Sample>& sample, int channelID, float leftVolume, 96 sp<Sample> sample() { return mSample; } in sample() function 123 void play(const sp<Sample>& sample, int channelID, float leftVolume, float rightVolume, 197 void doLoad(sp<Sample>& sample);
|
/frameworks/base/media/libeffects/testlibs/ |
D | AudioCommon.h | 72 inline int16_t audio_sample_t_to_s15(audio_sample_t sample) { in audio_sample_t_to_s15() argument 73 return int16_t((sample + (1 << 8)) >> 9); in audio_sample_t_to_s15() 77 inline int16_t audio_sample_t_to_s15_clip(audio_sample_t sample) { in audio_sample_t_to_s15_clip() argument 79 if (__builtin_expect(sample >= (0x7FFF << 9), 0)) { in audio_sample_t_to_s15_clip() 81 } else if (__builtin_expect(sample <= -(0x8000 << 9), 0)) { in audio_sample_t_to_s15_clip() 84 return audio_sample_t_to_s15(sample); in audio_sample_t_to_s15_clip()
|
/frameworks/base/core/java/android/gesture/ |
D | Instance.java | 44 private Instance(long id, float[] sample, String sampleName) { in Instance() argument 46 vector = sample; in Instance() 51 float[] sample = vector; in normalize() local 54 int size = sample.length; in normalize() 56 sum += sample[i] * sample[i]; in normalize() 61 sample[i] /= magnitude; in normalize()
|
D | InstanceLearner.java | 50 Instance sample = instances.get(i); in classify() local 51 if (sample.vector.length != vector.length) { in classify() 56 … distance = GestureUtils.minimumCosineDistance(sample.vector, vector, orientationType); in classify() 58 distance = GestureUtils.squaredEuclideanDistance(sample.vector, vector); in classify() 66 Double score = label2score.get(sample.label); in classify() 68 label2score.put(sample.label, weight); in classify()
|
D | GestureUtils.java | 93 float[] sample = new float[bitmapSize * bitmapSize]; in spatialSampling() local 94 Arrays.fill(sample, 0); in spatialSampling() 159 plot(segmentStartX, segmentStartY, sample, bitmapSize); in spatialSampling() 168 plot(xpos, ypos, sample, bitmapSize); in spatialSampling() 177 plot(xpos, ypos, sample, bitmapSize); in spatialSampling() 188 plot(xpos, ypos, sample, bitmapSize); in spatialSampling() 197 plot(xpos, ypos, sample, bitmapSize); in spatialSampling() 206 return sample; in spatialSampling() 209 private static void plot(float x, float y, float[] sample, int sampleSize) { in plot() argument 220 if (sample[index] < 1){ in plot() [all …]
|
/frameworks/base/libs/cpustats/ |
D | ThreadCpuUsage.cpp | 73 sample(); in sampleAndEnable() 76 mStatistics.sample((double) mAccumulator); in sampleAndEnable() 81 void ThreadCpuUsage::sample() in sample() function in ThreadCpuUsage 99 mStatistics.sample((double) mAccumulator); in sample()
|
/frameworks/base/services/audioflinger/ |
D | AudioResamplerCubic.cpp | 76 int32_t sample; in resampleStereo16() local 141 int32_t sample; in resampleMono16() local 146 sample = interp(&left, x); in resampleMono16() 147 out[outputIndex++] += vl * sample; in resampleMono16() 148 out[outputIndex++] += vr * sample; in resampleMono16()
|
D | AudioResampler.cpp | 314 int32_t sample = Interp(mX0L, in[0], phaseFraction); in resampleMono16() local 315 out[outputIndex++] += vl * sample; in resampleMono16() 316 out[outputIndex++] += vr * sample; in resampleMono16() 338 int32_t sample = Interp(in[inputIndex-1], in[inputIndex], in resampleMono16() local 340 out[outputIndex++] += vl * sample; in resampleMono16() 341 out[outputIndex++] += vr * sample; in resampleMono16()
|
/frameworks/base/media/libstagefright/ |
D | FLACExtractor.cpp | 109 MediaBuffer *readBuffer(FLAC__uint64 sample) { in readBuffer() argument 110 return readBuffer(true, sample); in readBuffer() 148 MediaBuffer *readBuffer(bool doSeek, FLAC__uint64 sample); 599 MediaBuffer *FLACParser::readBuffer(bool doSeek, FLAC__uint64 sample) in readBuffer() argument 605 if (!FLAC__stream_decoder_seek_absolute(mDecoder, sample)) { in readBuffer() 606 LOGE("FLACParser::readBuffer seek to sample %llu failed", sample); in readBuffer() 609 LOGV("FLACParser::readBuffer seek to sample %llu succeeded", sample); in readBuffer() 711 FLAC__uint64 sample; in read() local 713 sample = 0LL; in read() 716 sample = (seekTimeUs * mParser->getSampleRate()) / 1000000LL; in read() [all …]
|
/frameworks/base/docs/html/resources/samples/ |
D | get.jd | 3 parent.link=../browser.html?tag=sample 10 <p>To help you get started quickly, the Android SDK includes a variety of sample 26 <p>The SDK sample code is available to you as a set of downloadable SDK 52 create a project for the "API Demos" sample app by starting a new Android 59 sample using the <code>android</code> tool, by executing this command:</p> 69 structure of each sample and look at the source code in each of its files. </p> 73 From there you can read a short summary of each sample application and what 75 to move through the directories and files of each sample. The browseable source 88 <p>If you are looking for more sample code, check out
|
D | index.jd | 5 window.location = toRoot + "resources/browser.html?tag=sample"; 9 href="http://developer.android.com/resources/browser.html?tag=sample">List of Sample
|
/frameworks/base/docs/html/resources/ |
D | index.jd | 20 This section provides articles, tutorials, sample code, and other 31 <a href="{@docRoot}resources/browser.html?tag=sample"> 32 <img src="{@docRoot}assets/images/resource-big-sample.png"/> 34 <h3><a href="{@docRoot}resources/browser.html?tag=sample"> 37 <p>Fully-functioning sample applications that you can build and run
|
/frameworks/base/docs/html/guide/market/billing/ |
D | billing_integrate.jd | 41 billing sample application as an example.</p> 51 <li><a href="#billing-download">Download the in-app billing sample application</a>.</li> 66 <p>The in-app billing sample application shows you how to perform several tasks that are common to 77 <p>The sample application includes an application file (<code>Dungeons.java</code>), the AIDL file 82 <p>Table 1 lists the source files that are included with the sample application.</p> 83 <p class="table-caption" id="source-files-table"><strong>Table 1.</strong> In-app billing sample 139 <td>Defines various Android Market constants and sample application constants. All constants that 151 <p>The in-app billing sample application is available as a downloadable component of the Android 152 SDK. To download the sample application component, launch the Android SDK and AVD Manager and then 159 <strong>Figure 1.</strong> The Google Market Billing package contains the sample application and [all …]
|
D | billing_best_practices.jd | 78 <h4>Modify all sample application code</h4> 79 <p>The in-app billing sample application is publicly distributed and can be downloaded by anyone, 81 the sample code exactly as it is published. The sample application is intended to be used only as an 82 example. If you use any part of the sample application, you must modify it before you publish it or 85 important that you modify these parts of your code that are identical to the sample application.</p>
|
D | index.jd | 48 <p>To help you integrate in-app billing into your application, the Android SDK provides a sample 49 application that demonstrates a simple implementation of in-app billing. The sample application 54 <p class="caution"><strong>Important</strong>: Although the sample application is a working example 56 obfuscate the sample code before you use it in a production application. For more information, see
|
/frameworks/base/media/libeffects/visualizer/ |
D | EffectVisualizer.cpp | 236 static inline int16_t clamp16(int32_t sample) in clamp16() argument 238 if ((sample>>15) ^ (sample>>31)) in clamp16() 239 sample = 0x7FFF ^ (sample>>31); in clamp16() 240 return sample; in clamp16()
|
/frameworks/base/services/input/ |
D | InputDispatcher.cpp | 990 const MotionSample* sample = & entry->firstSample; in logOutboundMotionDetailsLocked() local 991 for (; sample->next != NULL; sample = sample->next) { in logOutboundMotionDetailsLocked() 1001 sample->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_X), in logOutboundMotionDetailsLocked() 1002 sample->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_Y), in logOutboundMotionDetailsLocked() 1003 sample->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_PRESSURE), in logOutboundMotionDetailsLocked() 1004 sample->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_SIZE), in logOutboundMotionDetailsLocked() 1005 sample->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MAJOR), in logOutboundMotionDetailsLocked() 1006 sample->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MINOR), in logOutboundMotionDetailsLocked() 1007 sample->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_TOOL_MAJOR), in logOutboundMotionDetailsLocked() 1008 sample->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_TOOL_MINOR), in logOutboundMotionDetailsLocked() [all …]
|
/frameworks/base/include/cpustats/ |
D | ThreadCpuUsage.h | 88 void sample();
|
D | CentralTendencyStatistics.h | 34 void sample(double x);
|
/frameworks/base/docs/html/guide/topics/renderscript/ |
D | compute.jd | 30 sample in the Android SDK for more 34 sample in the Android SDK for more
|
/frameworks/base/docs/html/sdk/ndk/ |
D | overview.jd | 109 <h2 id="contents">Contents of the NDK</h2>The NDK contains the APIs, documentation, and sample 223 <p>The NDK includes sample applications that illustrate how to use native code in your Android 258 <p>For each sample, the NDK includes the corresponding C source code and the necessary Android.mk 262 <p>You can build the shared libraries for the sample apps by going into 268 <p>Next, build the sample Android applications that use the shared libraries:</p> 272 Android project for each sample, using the "Import from Existing Source" option and importing 277 for each of the sample projects at <code><ndk>/apps/<app_name>/project/</code>. 290 <p>The hello-jni sample is a simple demonstration on how to use JNI from an Android application. 294 <p>The main components of the sample include:</p> 307 <li>Create a new project in Eclipse from the existing sample source or use the [all …]
|