/frameworks/opt/net/voip/src/jni/rtp/ |
D | G711Codec.cpp | 41 int encode(void *payload, int16_t *samples); 42 int decode(int16_t *samples, int count, void *payload, int length); 47 int UlawCodec::encode(void *payload, int16_t *samples) in encode() argument 51 int sample = samples[i]; in encode() 67 int UlawCodec::decode(int16_t *samples, int count, void *payload, int length) in decode() argument 78 samples[i] = (ulaw < 0 ? -sample : sample); in decode() 92 int encode(void *payload, int16_t *samples); 93 int decode(int16_t *samples, int count, void *payload, int length); 98 int AlawCodec::encode(void *payload, int16_t *samples) in encode() argument 102 int sample = samples[i]; in encode() [all …]
|
D | AmrCodec.cpp | 54 int encode(void *payload, int16_t *samples); 55 int decode(int16_t *samples, int count, void *payload, int length); 100 int AmrCodec::encode(void *payload, int16_t *samples) in encode() argument 106 samples, bytes + 1, &type, AMR_TX_WMF); in encode() 131 int AmrCodec::decode(int16_t *samples, int /* count */, void *payload, int length) in decode() argument 169 if (AMRDecode(mDecoder, type, bytes, samples, MIME_IETF) != length) { in decode() 215 int encode(void *payload, int16_t *samples); 216 int decode(int16_t *samples, int count, void *payload, int length); 224 int GsmEfrCodec::encode(void *payload, int16_t *samples) in encode() argument 230 samples, bytes, &type, AMR_TX_WMF); in encode() [all …]
|
D | GsmCodec.cpp | 46 int encode(void *payload, int16_t *samples); 47 int decode(int16_t *samples, int count, void *payload, int length); 54 int GsmCodec::encode(void *payload, int16_t *samples) in encode() argument 56 gsm_encode(mEncode, samples, (unsigned char *)payload); in encode() 60 int GsmCodec::decode(int16_t *samples, int count, void *payload, int length) in decode() argument 65 gsm_decode(mDecode, bytes, &samples[n]) == 0) { in decode()
|
D | AudioCodec.h | 31 virtual int encode(void *payload, int16_t *samples) = 0; 33 virtual int decode(int16_t *samples, int count, void *payload, int length) = 0;
|
D | AudioGroup.cpp | 318 int16_t samples[mSampleCount]; in encode() local 329 samples[i] = sample; in encode() 336 memset(samples, 0, sizeof(samples)); in encode() 345 send(mSocket, samples, sizeof(samples), MSG_DONTWAIT); in encode() 353 int length = mCodec->encode(&buffer[3], samples); in encode() 405 int16_t samples[count]; in decode() local 408 count = recv(mSocket, samples, sizeof(samples), in decode() 434 length = mCodec->decode(samples, count, &buffer[offset], length); in decode() 465 mBuffer[tail & mBufferMask] = samples[i]; in decode()
|
/frameworks/base/docs/html/about/versions/marshmallow/ |
D | android-6.0-samples.jd | 3 page.tags=marshmallow, samples 4 meta.tags=marshmallow,androidm,samples 10 APIs (API level 23). You can download the samples 22 <a href="{@docRoot}samples/ActiveNotifications/index.html">Active Notification</a>: This sample dem… 28 <a href="{@docRoot}samples/AutoBackupForApps/index.html">Auto Backup for Apps</a>: Android 6.0 34 <a href="{@docRoot}samples/Camera2Raw/index.html">Camera 2 Raw</a>: This sample demonstrates how to 40 <a href="{@docRoot}samples/ConfirmCredential/index.html">Confirm Credential</a>: This sample 44 <li id="DeviceOwner"><a href="{@docRoot}samples/DeviceOwner/index.html">Device Owner</a>: This 49 <li id="DirectShare"><a href="{@docRoot}samples/DirectShare/index.html">Direct Share</a>: 56 <a href="{@docRoot}samples/FingerprintDialog/index.html">Fingerprint [all …]
|
/frameworks/native/opengl/tests/angeles/ |
D | app-linux.cpp | 121 static int initGraphics(EGLint samples, const WindowSurface& windowSurface) in initGraphics() argument 125 EGL_SAMPLE_BUFFERS, samples ? 1 : 0, in initGraphics() 126 EGL_SAMPLES, samples, in initGraphics() 169 if (samples == 0) { in initGraphics() 189 unsigned samples = 0; in main() local 192 samples = atoi( argv[1] ); in main() 193 printf("Multisample enabled: GL_SAMPLES = %u\n", samples); in main() 197 if (!initGraphics(samples, windowSurface)) in main()
|
/frameworks/base/core/java/com/android/internal/app/procstats/ |
D | ProcessState.java | 114 long samples = 0; field in ProcessState.PssAggr 117 pss = (long)( (pss*(double)samples) + (newPss*(double)newSamples) ) in add() 118 / (samples+newSamples); in add() 119 samples += newSamples; in add() 668 long samples = getPssSampleCount(type); in aggregatePss() local 669 if (samples > 0) { in aggregatePss() 673 fgPss.add(avg, samples); in aggregatePss() 675 bgPss.add(avg, samples); in aggregatePss() 677 cachedPss.add(avg, samples); in aggregatePss() 687 if (fgPss.samples < 3 && bgPss.samples > 0) { in aggregatePss() [all …]
|
/frameworks/av/services/audioflinger/ |
D | AudioResamplerFirProcess.h | 27 void mac(int32_t& l, int32_t& r, TC coef, const int16_t* samples) in mac() argument 29 uint32_t rl = *reinterpret_cast<const uint32_t*>(samples); in mac() 36 void mac(int32_t& l, TC coef, const int16_t* samples) in mac() argument 38 l = mulAdd(samples[0], coef, l); in mac() 44 void mac(float& l, float& r, TC coef, const float* samples) in mac() argument 46 l += *samples++ * coef; in mac() 47 r += *samples * coef; in mac() 52 void mac(float& l, TC coef, const float* samples) in mac() argument 54 l += *samples * coef; in mac() 379 const TI* const samples, const TO* const volumeLR) in fir() argument [all …]
|
/frameworks/base/docs/html-intl/intl/zh-cn/training/multiscreen/ |
D | screensizes.jd | 58 {@sample development/samples/training/multiscreen/newsreader/res/layout/onepane_with_bar.xml all} 128 {@sample development/samples/training/multiscreen/newsreader/res/layout/onepane.xml all} 132 {@sample development/samples/training/multiscreen/newsreader/res/layout/twopanes.xml all} 148 {@sample development/samples/training/multiscreen/newsreader/res/layout/onepane.xml all} 152 {@sample development/samples/training/multiscreen/newsreader/res/layout/twopanes.xml all} 222 {@sample development/samples/training/multiscreen/newsreader/res/layout/onepane.xml all} 225 {@sample development/samples/training/multiscreen/newsreader/res/layout/onepane_with_bar.xml all} 228 {@sample development/samples/training/multiscreen/newsreader/res/layout/twopanes.xml all} 231 {@sample development/samples/training/multiscreen/newsreader/res/layout/twopanes_narrow.xml all} 236 {@sample development/samples/training/multiscreen/newsreader/res/values/layouts.xml all} [all …]
|
/frameworks/base/docs/html-intl/intl/ko/training/multiscreen/ |
D | screensizes.jd | 58 {@sample development/samples/training/multiscreen/newsreader/res/layout/onepane_with_bar.xml all} 128 {@sample development/samples/training/multiscreen/newsreader/res/layout/onepane.xml all} 132 {@sample development/samples/training/multiscreen/newsreader/res/layout/twopanes.xml all} 148 {@sample development/samples/training/multiscreen/newsreader/res/layout/onepane.xml all} 152 {@sample development/samples/training/multiscreen/newsreader/res/layout/twopanes.xml all} 222 {@sample development/samples/training/multiscreen/newsreader/res/layout/onepane.xml all} 225 {@sample development/samples/training/multiscreen/newsreader/res/layout/onepane_with_bar.xml all} 228 {@sample development/samples/training/multiscreen/newsreader/res/layout/twopanes.xml all} 231 {@sample development/samples/training/multiscreen/newsreader/res/layout/twopanes_narrow.xml all} 236 {@sample development/samples/training/multiscreen/newsreader/res/values/layouts.xml all} [all …]
|
/frameworks/base/docs/html-intl/intl/ja/training/multiscreen/ |
D | screensizes.jd | 58 {@sample development/samples/training/multiscreen/newsreader/res/layout/onepane_with_bar.xml all} 128 {@sample development/samples/training/multiscreen/newsreader/res/layout/onepane.xml all} 132 {@sample development/samples/training/multiscreen/newsreader/res/layout/twopanes.xml all} 148 {@sample development/samples/training/multiscreen/newsreader/res/layout/onepane.xml all} 152 {@sample development/samples/training/multiscreen/newsreader/res/layout/twopanes.xml all} 222 {@sample development/samples/training/multiscreen/newsreader/res/layout/onepane.xml all} 225 {@sample development/samples/training/multiscreen/newsreader/res/layout/onepane_with_bar.xml all} 228 {@sample development/samples/training/multiscreen/newsreader/res/layout/twopanes.xml all} 231 {@sample development/samples/training/multiscreen/newsreader/res/layout/twopanes_narrow.xml all} 236 {@sample development/samples/training/multiscreen/newsreader/res/values/layouts.xml all} [all …]
|
/frameworks/base/docs/html-intl/intl/ru/training/multiscreen/ |
D | screensizes.jd | 58 {@sample development/samples/training/multiscreen/newsreader/res/layout/onepane_with_bar.xml all} 128 {@sample development/samples/training/multiscreen/newsreader/res/layout/onepane.xml all} 132 {@sample development/samples/training/multiscreen/newsreader/res/layout/twopanes.xml all} 148 {@sample development/samples/training/multiscreen/newsreader/res/layout/onepane.xml all} 152 {@sample development/samples/training/multiscreen/newsreader/res/layout/twopanes.xml all} 222 {@sample development/samples/training/multiscreen/newsreader/res/layout/onepane.xml all} 225 {@sample development/samples/training/multiscreen/newsreader/res/layout/onepane_with_bar.xml all} 228 {@sample development/samples/training/multiscreen/newsreader/res/layout/twopanes.xml all} 231 {@sample development/samples/training/multiscreen/newsreader/res/layout/twopanes_narrow.xml all} 236 {@sample development/samples/training/multiscreen/newsreader/res/values/layouts.xml all} [all …]
|
/frameworks/base/docs/html/samples/ |
D | index.jd | 7 <p>Welcome to code samples for Android developers. Here you can browse sample code and learn how to 9 available samples.</p> 18 <p>Android Studio provides easy access to import Android code samples from GitHub and is the 19 recommended method to retrieve Android code samples.</p> 38 <p>To view the Android code samples that you can import, see the 43 <p>Although importing samples from Android Studio is the recommended method, you can also use the 44 categories on the left to browse the available samples and learn how to build different components
|
/frameworks/base/docs/html/samples/new/ |
D | index.jd | 2 page.image=images/cards/samples-new_2x.png 6 <p>The following code samples were recently published. You can 15 <!-- NOTE TO EDITORS: add most recent samples first --> 35 <a href="/samples/AppShortcuts/index.html">App shortcuts sample</a> 57 <a href="/samples/CommitContentSampleApp/index.html">Image keyboard app sample</a> 79 <a href="/samples/CommitContentSampleIME/index.html">Image keyboard IME sample</a>
|
/frameworks/base/docs/html-intl/intl/zh-cn/guide/topics/providers/ |
D | content-providers.jd | 30 <a href="{@docRoot}resources/samples/ContactManager/index.html"> 34 <a href="{@docRoot}resources/samples/ApiDemos/src/com/example/android/apis/view/List2.html"> 39 <a href="{@docRoot}resources/samples/ApiDemos/src/com/example/android/apis/view/List7.html"> 43 <a href="{@docRoot}resources/samples/SampleSyncAdapter/index.html">
|
/frameworks/base/docs/html-intl/intl/zh-tw/guide/topics/providers/ |
D | content-providers.jd | 30 … <a href="{@docRoot}resources/samples/ContactManager/index.html"> 聯絡人管理員</a>應用程式 34 …<a href="{@docRoot}resources/samples/ApiDemos/src/com/example/android/apis/view/List2.html"> … 39 …<a href="{@docRoot}resources/samples/ApiDemos/src/com/example/android/apis/view/List7.html"> … 43 … <a href="{@docRoot}resources/samples/SampleSyncAdapter/index.html"> 範例同步配接器</a>
|
/frameworks/base/docs/html-intl/intl/ko/guide/topics/providers/ |
D | content-providers.jd | 30 <a href="{@docRoot}resources/samples/ContactManager/index.html"> 34 <a href="{@docRoot}resources/samples/ApiDemos/src/com/example/android/apis/view/List2.html"> 39 <a href="{@docRoot}resources/samples/ApiDemos/src/com/example/android/apis/view/List7.html"> 43 <a href="{@docRoot}resources/samples/SampleSyncAdapter/index.html">
|
/frameworks/base/docs/html-intl/intl/ru/guide/topics/providers/ |
D | content-providers.jd | 31 <a href="{@docRoot}resources/samples/ContactManager/index.html">Диспетчер контактов</a> 34 <a href="{@docRoot}resources/samples/ApiDemos/src/com/example/android/apis/view/List2.html"> 39 <a href="{@docRoot}resources/samples/ApiDemos/src/com/example/android/apis/view/List7.html"> 43 <a href="{@docRoot}resources/samples/SampleSyncAdapter/index.html">
|
/frameworks/base/docs/html-intl/intl/ja/guide/topics/providers/ |
D | content-providers.jd | 30 …<a href="{@docRoot}resources/samples/ContactManager/index.html"> Contact Manager</a> アプリケーシ… 34 <a href="{@docRoot}resources/samples/ApiDemos/src/com/example/android/apis/view/List2.html"> 39 <a href="{@docRoot}resources/samples/ApiDemos/src/com/example/android/apis/view/List7.html"> 43 … <a href="{@docRoot}resources/samples/SampleSyncAdapter/index.html"> サンプル同期アダプタ</a>
|
/frameworks/av/media/libstagefright/codecs/flac/enc/ |
D | SoftFlacEncoder.cpp | 380 size_t bytes, unsigned samples, in onEncodedFlacAvailable() argument 384 bytes, samples, current_frame); in onEncodedFlacAvailable() 387 if (samples == 0) { in onEncodedFlacAvailable() 396 if ((samples == 0) || !mEncoderWriteData) { in onEncodedFlacAvailable() 399 ALOGV("ignoring %zu bytes of header data (samples=%d)", bytes, samples); in onEncodedFlacAvailable() 482 unsigned samples, in flacEncoderWriteCallback() argument 486 buffer, bytes, samples, current_frame); in flacEncoderWriteCallback()
|
/frameworks/ml/bordeaux/learning/ |
D | Android.mk | 21 LOCAL_MODULE_TAGS := samples tests 39 LOCAL_MODULE_TAGS := samples tests
|
/frameworks/native/cmds/flatland/ |
D | Main.cpp | 599 Vector<double> samples; in runTest() local 645 size_t newSamples = samples.size(); in runTest() 667 samples.add(sample); in runTest() 670 samples.sort(cmpDouble); in runTest() 673 size_t elem = (samples.size() * (outlierFraction-1) / outlierFraction); in runTest() 674 result = (samples[elem-1] + samples[elem]) * 0.5; in runTest()
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/tests/src/androidx/media/filterfw/samples/simplecamera/ |
D | FloatArrayToSizeFilterTest.java | 17 package androidx.media.filterfw.samples.simplecamera; 19 import androidx.media.filterfw.samples.simplecamera.FloatArrayToSizeFilter;
|
/frameworks/wilhelm/src/desktop/ |
D | SDL.c | 52 fmt.samples = SndFile_BUFSIZE; in SDL_open() 54 fmt.samples = SndFile_BUFSIZE / sizeof(short); in SDL_open()
|