/development/ndk/platforms/android-9/samples/native-audio/jni/ |
H A D | native-audio-jni.c | 122 SLresult result; local 124 result = (*bqPlayerBufferQueue)->Enqueue(bqPlayerBufferQueue, nextBuffer, nextSize); 125 // the most likely other result is SL_RESULT_BUFFER_INSUFFICIENT, 127 assert(SL_RESULT_SUCCESS == result); 128 (void)result; 140 SLresult result; local 141 result = (*recorderRecord)->SetRecordState(recorderRecord, SL_RECORDSTATE_STOPPED); 142 if (SL_RESULT_SUCCESS == result) { 152 SLresult result; local 155 result 201 SLresult result; local 274 SLresult result; local 341 SLresult result; local 360 SLresult result; local 390 SLresult result; local 402 SLresult result; local 414 SLresult result; local 445 SLresult result; local 457 SLresult result; local 469 SLresult result; local 481 SLresult result; local 494 SLresult result; local 555 SLresult result; local 570 SLresult result; local 650 SLresult result; local 668 SLresult result; local 722 SLresult result; local [all...] |
/development/testrunner/tests/ |
H A D | am_instrument_parser_tests.py | 27 result="""INSTRUMENTATION_RESULT: performance.java_size=4871 34 am_instrument_parser._ParseInstrumentationFinishedBundle(result) 76 result = am_instrument_parser.TestResult(segment1) 77 map = result.GetResultFields() 83 self.assertEquals(1, result.GetStatusCode()) 85 result = am_instrument_parser.TestResult(segment2) 86 map = result.GetResultFields() 94 self.assertEquals(0, result.GetStatusCode()) 96 result = am_instrument_parser.TestResult(segment3) 97 map = result [all...] |
/development/samples/browseable/BasicRenderScript/src/rs/ |
H A D | saturation.rs | 31 float3 result = dot(f4.rgb, gMonoMult); 32 result = mix( result, f4.rgb, saturationValue ); 34 return rsPackColorTo8888(result);
|
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
H A D | LabelView.java | 138 int result = 0; 144 result = specSize; 147 result = (int) mTextPaint.measureText(mText) + getPaddingLeft() 151 result = Math.min(result, specSize); 155 return result; 164 int result = 0; 171 result = specSize; 174 result = (int) (-mAscent + mTextPaint.descent()) + getPaddingTop() 178 result [all...] |
/development/samples/browseable/ElizaChat/Application/src/com.example.android.wearable.elizachat/ |
H A D | ElizaResponder.java | 117 String result = ""; 160 result += question; 161 if (result.endsWith("*")) { 162 result = result.substring(0, result.length() - 1); 163 result += " " + afterKeyword; 166 return result;
|
/development/samples/SimpleJNI/jni/ |
H A D | native.cpp | 26 int result = a + b; local 27 ALOGI("%d + %d = %d", a, b, result); 28 return result; 89 jint result = -1; local 105 result = JNI_VERSION_1_4; 108 return result;
|
/development/tools/findunused/ |
H A D | find_unused_resources.rb | 36 result = Array.new 40 result << path 46 result 76 result = Array.new 81 result << matchData[1].to_s 86 result 160 result = UnusedResources.new 161 result.appDir = dir 162 result.unusedLayoutIds = layouts 163 result [all...] |
/development/tools/mkstubs/tests/com/android/mkstubs/sourcer/ |
H A D | SignatureSourcerTest.java | 49 String result = mSourcer.getReturnType().toString(); 53 result); 61 String result = mSourcer.getReturnType().toString(); 65 result); 91 String result = mSourcer.formalsToString(); 94 result); 104 String result = mSourcer.formalsToString(); 107 result); 122 String result = mSourcer.getReturnType().toString(); 125 result); [all...] |
/development/samples/Home/src/com/example/android/home/ |
H A D | ApplicationInfo.java | 78 int result; 79 result = (title != null ? title.hashCode() : 0); 81 result = 31 * result + (name != null ? name.hashCode() : 0); 82 return result;
|
/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/authenticator/ |
H A D | Authenticator.java | 95 final Bundle result = new Bundle(); 96 result.putString(AccountManager.KEY_ERROR_MESSAGE, "invalid authTokenType"); 97 return result; 107 final Bundle result = new Bundle(); 108 result.putString(AccountManager.KEY_ACCOUNT_NAME, account.name); 109 result.putString(AccountManager.KEY_ACCOUNT_TYPE, Constants.ACCOUNT_TYPE); 110 result.putString(AccountManager.KEY_AUTHTOKEN, authToken); 111 return result; 141 final Bundle result = new Bundle(); 142 result [all...] |
/development/samples/browseable/FindMyPhone/Wearable/src/com.example.android.wearable.findphone/ |
H A D | FindPhoneService.java | 75 DataItemBuffer result = Wearable.DataApi.getDataItems(mGoogleApiClient).await(); 76 if (result.getStatus().isSuccess()) { 77 if (result.getCount() == 1) { 78 alarmOn = DataMap.fromByteArray(result.get(0).getData()) 83 + "\tActual: " + result.getCount()); 88 result.close(); 118 public void onConnectionFailed(ConnectionResult result) { argument
|
/development/samples/browseable/DisplayingBitmaps/src/com.example.android.displayingbitmaps/util/ |
H A D | AsyncTask.java | 67 * whose result is published on the UI thread. An asynchronous task is defined by 3 generic 103 * protected void onPostExecute(Long result) { 104 * showDialog("Downloaded " + result + " bytes"); 121 * <li><code>Result</code>, the type of the result of the background 139 * of the asynchronous task are passed to this step. The result of the computation must 150 * computation finishes. The result of the background computation is passed to 334 private void postResultIfNotInvoked(Result result) { argument 337 postResult(result); 341 private Result postResult(Result result) { argument 344 new AsyncTaskResult<Result>(this, result)); 398 onPostExecute(Result result) argument 429 onCancelled(Result result) argument 653 finish(Result result) argument [all...] |
/development/ndk/sources/android/ndk_helper/ |
H A D | vecmath.cpp | 321 Mat4 result; local 322 result.f_[0] = n2 / width; 323 result.f_[4] = 0; 324 result.f_[8] = 0; 325 result.f_[12] = 0; 326 result.f_[1] = 0; 327 result.f_[5] = n2 / height; 328 result.f_[9] = 0; 329 result.f_[13] = 0; 330 result 345 Mat4 result; local [all...] |
/development/ndk/platforms/android-4/samples/san-angeles/jni/ |
H A D | demo.c | 119 GLOBJECT *result; local 120 result = (GLOBJECT *)malloc(sizeof(GLOBJECT)); 121 if (result == NULL) 123 result->count = vertices; 124 result->vertexComponents = vertexComponents; 125 result->vertexArray = (GLfixed *)malloc(vertices * vertexComponents * 127 result->colorArray = (GLubyte *)malloc(vertices * 4 * sizeof(GLubyte)); 130 result->normalArray = (GLfixed *)malloc(vertices * 3 * 134 result->normalArray = NULL; 135 if (result 208 GLOBJECT *result; local 352 GLOBJECT *result; local [all...] |
/development/ndk/sources/android/libportable/arch-x86/ |
H A D | fcntl.c | 37 int result = __fcntl64(fd, cmd, (void *) &x86_flock64); local 47 return result;
|
/development/tools/hosttestlib/src/com/android/hosttest/ |
H A D | DeviceTestSuite.java | 53 public void runTest(Test test, TestResult result) { argument 59 test.run(result);
|
/development/ndk/sources/android/libportable/arch-mips/ |
H A D | fcntl.c | 295 int result = 0; local 322 result = -1; 338 result = __fcntl64(fd, mips_cmd, (void *) &flock); 355 result = -1; 370 result = __fcntl64(fd, mips_cmd, (void *) &flock); 381 result = __fcntl64(fd, mips_cmd, (void *)flags); 385 result = __fcntl64(fd, mips_cmd, arg); 386 if (result != -1) 387 result = fcntl_flags_ntop(result); [all...] |
/development/samples/RandomMusicPlayer/src/com/example/android/musicplayer/ |
H A D | PrepareMusicRetrieverTask.java | 43 protected void onPostExecute(Void result) { argument
|
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
H A D | TextToSpeechActivity.java | 92 // Note that a language may not be available, and the result will indicate this. 93 int result = mTts.setLanguage(Locale.US); 95 // int result mTts.setLanguage(Locale.FRANCE); 96 if (result == TextToSpeech.LANG_MISSING_DATA || 97 result == TextToSpeech.LANG_NOT_SUPPORTED) { 101 // Check the documentation for other possible result codes.
|
/development/samples/browseable/BasicMediaDecoder/src/com.example.android.common.media/ |
H A D | MediaCodecWrapper.java | 141 MediaCodecWrapper result = null; 158 result = new MediaCodecWrapper(videoCodec); 162 return result; 190 boolean result = false; 217 result = true; 219 return result; 246 boolean result = false; 268 result = true; 270 return result; 284 boolean result [all...] |
/development/samples/browseable/BasicRenderScript/src/com.example.android.common.media/ |
H A D | MediaCodecWrapper.java | 141 MediaCodecWrapper result = null; 158 result = new MediaCodecWrapper(videoCodec); 162 return result; 190 boolean result = false; 217 result = true; 219 return result; 246 boolean result = false; 268 result = true; 270 return result; 284 boolean result [all...] |
/development/samples/browseable/MediaRecorder/src/com.example.android.common.media/ |
H A D | MediaCodecWrapper.java | 141 MediaCodecWrapper result = null; 158 result = new MediaCodecWrapper(videoCodec); 162 return result; 190 boolean result = false; 217 result = true; 219 return result; 246 boolean result = false; 268 result = true; 270 return result; 284 boolean result [all...] |
/development/perftests/panorama/feature_mos/src/mosaic/ |
H A D | trsMatrix.cpp | 40 // return: result if successful 68 double result; local 70 result = m[0][0] * (m[1][1] * m[2][2] - m[1][2] * m[2][1]); 71 result += m[0][1] * (m[1][2] * m[2][0] - m[1][0] * m[2][2]); 72 result += m[0][2] * (m[1][0] * m[2][1] - m[1][1] * m[2][0]); 74 return result;
|
/development/samples/TtsEngine/src/com/example/android/ttsengine/ |
H A D | CheckVoiceData.java | 68 int result; 71 result = TextToSpeech.Engine.CHECK_VOICE_DATA_FAIL; 75 result = TextToSpeech.Engine.CHECK_VOICE_DATA_MISSING_DATA; 78 result = TextToSpeech.Engine.CHECK_VOICE_DATA_PASS; 88 setResult(result, returnData);
|
/development/samples/browseable/CardReader/src/com.example.android.cardreader/ |
H A D | LoyaltyCardReader.java | 81 byte[] result = isoDep.transceive(command); 83 // bytes of the result) by convention. Everything before the status word is 85 int resultLength = result.length; 86 byte[] statusWord = {result[resultLength-2], result[resultLength-1]}; 87 byte[] payload = Arrays.copyOf(result, resultLength-2);
|