Home
last modified time | relevance | path

Searched refs:result (Results 1 – 25 of 211) sorted by relevance

123456789

/development/ndk/platforms/android-9/samples/native-audio/jni/
Dnative-audio-jni.c122 SLresult result; in bqPlayerCallback() local
124 result = (*bqPlayerBufferQueue)->Enqueue(bqPlayerBufferQueue, nextBuffer, nextSize); in bqPlayerCallback()
127 assert(SL_RESULT_SUCCESS == result); in bqPlayerCallback()
128 (void)result; in bqPlayerCallback()
140 SLresult result; in bqRecorderCallback() local
141 result = (*recorderRecord)->SetRecordState(recorderRecord, SL_RECORDSTATE_STOPPED); in bqRecorderCallback()
142 if (SL_RESULT_SUCCESS == result) { in bqRecorderCallback()
152 SLresult result; in Java_com_example_nativeaudio_NativeAudio_createEngine() local
155 result = slCreateEngine(&engineObject, 0, NULL, 0, NULL, NULL); in Java_com_example_nativeaudio_NativeAudio_createEngine()
156 assert(SL_RESULT_SUCCESS == result); in Java_com_example_nativeaudio_NativeAudio_createEngine()
[all …]
/development/tools/findunused/
Dfind_unused_resources.rb36 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.unusedStringIds = strings
[all …]
/development/testrunner/tests/
Dam_instrument_parser_tests.py27 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.GetResultFields()
[all …]
/development/ndk/platforms/android-4/samples/san-angeles/jni/
Ddemo.c119 GLOBJECT *result; in newGLObject() local
120 result = (GLOBJECT *)malloc(sizeof(GLOBJECT)); in newGLObject()
121 if (result == NULL) in newGLObject()
123 result->count = vertices; in newGLObject()
124 result->vertexComponents = vertexComponents; in newGLObject()
125 result->vertexArray = (GLfixed *)malloc(vertices * vertexComponents * in newGLObject()
127 result->colorArray = (GLubyte *)malloc(vertices * 4 * sizeof(GLubyte)); in newGLObject()
130 result->normalArray = (GLfixed *)malloc(vertices * 3 * in newGLObject()
134 result->normalArray = NULL; in newGLObject()
135 if (result->vertexArray == NULL || in newGLObject()
[all …]
/development/samples/ApiDemos/src/com/example/android/apis/view/
DLabelView.java138 int result = 0; in measureWidth() local
144 result = specSize; in measureWidth()
147 result = (int) mTextPaint.measureText(mText) + getPaddingLeft() in measureWidth()
151 result = Math.min(result, specSize); in measureWidth()
155 return result; in measureWidth()
164 int result = 0; in measureHeight() local
171 result = specSize; in measureHeight()
174 result = (int) (-mAscent + mTextPaint.descent()) + getPaddingTop() in measureHeight()
178 result = Math.min(result, specSize); in measureHeight()
181 return result; in measureHeight()
/development/ndk/sources/android/ndk_helper/
Dvecmath.cpp321 Mat4 result; in Perspective() local
322 result.f_[0] = n2 / width; in Perspective()
323 result.f_[4] = 0; in Perspective()
324 result.f_[8] = 0; in Perspective()
325 result.f_[12] = 0; in Perspective()
326 result.f_[1] = 0; in Perspective()
327 result.f_[5] = n2 / height; in Perspective()
328 result.f_[9] = 0; in Perspective()
329 result.f_[13] = 0; in Perspective()
330 result.f_[2] = 0; in Perspective()
[all …]
/development/tools/mkstubs/tests/com/android/mkstubs/sourcer/
DSignatureSourcerTest.java49 String result = mSourcer.getReturnType().toString(); in testReturnMapNoArgs() local
53 result); in testReturnMapNoArgs()
61 String result = mSourcer.getReturnType().toString(); in testReturnVoid() local
65 result); in testReturnVoid()
91 String result = mSourcer.formalsToString(); in testFormalParameters1() local
94 result); in testFormalParameters1()
104 String result = mSourcer.formalsToString(); in testFormalParameters2() local
107 result); in testFormalParameters2()
122 String result = mSourcer.getReturnType().toString(); in testManyArgs() local
125 result); in testManyArgs()
/development/samples/browseable/ElizaChat/Application/src/com.example.android.wearable.elizachat/
DElizaResponder.java117 String result = ""; in elzTalk() local
160 result += question; in elzTalk()
161 if (result.endsWith("*")) { in elzTalk()
162 result = result.substring(0, result.length() - 1); in elzTalk()
163 result += " " + afterKeyword; in elzTalk()
166 return result; in elzTalk()
/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/authenticator/
DAuthenticator.java95 final Bundle result = new Bundle(); in getAuthToken() local
96 result.putString(AccountManager.KEY_ERROR_MESSAGE, "invalid authTokenType"); in getAuthToken()
97 return result; in getAuthToken()
107 final Bundle result = new Bundle(); in getAuthToken() local
108 result.putString(AccountManager.KEY_ACCOUNT_NAME, account.name); in getAuthToken()
109 result.putString(AccountManager.KEY_ACCOUNT_TYPE, Constants.ACCOUNT_TYPE); in getAuthToken()
110 result.putString(AccountManager.KEY_AUTHTOKEN, authToken); in getAuthToken()
111 return result; in getAuthToken()
141 final Bundle result = new Bundle(); in hasFeatures() local
142 result.putBoolean(AccountManager.KEY_BOOLEAN_RESULT, false); in hasFeatures()
[all …]
/development/samples/SimpleJNI/jni/
Dnative.cpp26 int result = a + b; in add() local
27 ALOGI("%d + %d = %d", a, b, result); in add()
28 return result; in add()
89 jint result = -1; in JNI_OnLoad() local
105 result = JNI_VERSION_1_4; in JNI_OnLoad()
108 return result; in JNI_OnLoad()
/development/samples/browseable/DisplayingBitmaps/src/com.example.android.displayingbitmaps/util/
DAsyncTask.java334 private void postResultIfNotInvoked(Result result) { in postResultIfNotInvoked() argument
337 postResult(result); in postResultIfNotInvoked()
341 private Result postResult(Result result) { in postResult() argument
344 new AsyncTaskResult<Result>(this, result)); in postResult()
346 return result; in postResult()
398 protected void onPostExecute(Result result) { in onPostExecute() argument
429 protected void onCancelled(Result result) { in onCancelled() argument
653 private void finish(Result result) { in finish() argument
655 onCancelled(result); in finish()
657 onPostExecute(result); in finish()
[all …]
/development/samples/browseable/BasicRenderScript/src/rs/
Dsaturation.rs31 float3 result = dot(f4.rgb, gMonoMult);
32 result = mix( result, f4.rgb, saturationValue );
34 return rsPackColorTo8888(result);
/development/samples/Home/src/com/example/android/home/
DApplicationInfo.java78 int result; in hashCode() local
79 result = (title != null ? title.hashCode() : 0); in hashCode()
81 result = 31 * result + (name != null ? name.hashCode() : 0); in hashCode()
82 return result; in hashCode()
/development/ndk/sources/android/libportable/arch-mips/
Dfcntl.c295 int result = 0; in WRAP() local
322 result = -1; in WRAP()
338 result = __fcntl64(fd, mips_cmd, (void *) &flock); in WRAP()
355 result = -1; in WRAP()
370 result = __fcntl64(fd, mips_cmd, (void *) &flock); in WRAP()
381 result = __fcntl64(fd, mips_cmd, (void *)flags); in WRAP()
385 result = __fcntl64(fd, mips_cmd, arg); in WRAP()
386 if (result != -1) in WRAP()
387 result = fcntl_flags_ntop(result); in WRAP()
403 result = __fcntl64(fd, mips_cmd, arg); in WRAP()
[all …]
/development/samples/browseable/BasicMediaDecoder/src/com.example.android.common.media/
DMediaCodecWrapper.java141 MediaCodecWrapper result = null; in fromVideoFormat() local
158 result = new MediaCodecWrapper(videoCodec); in fromVideoFormat()
162 return result; in fromVideoFormat()
190 boolean result = false; in writeSample()
217 result = true; in writeSample()
219 return result; in writeSample()
246 boolean result = false; in writeSample()
268 result = true; in writeSample()
270 return result; in writeSample()
284 boolean result = false; in peekSample()
[all …]
/development/samples/browseable/BasicRenderScript/src/com.example.android.common.media/
DMediaCodecWrapper.java141 MediaCodecWrapper result = null; in fromVideoFormat() local
158 result = new MediaCodecWrapper(videoCodec); in fromVideoFormat()
162 return result; in fromVideoFormat()
190 boolean result = false; in writeSample()
217 result = true; in writeSample()
219 return result; in writeSample()
246 boolean result = false; in writeSample()
268 result = true; in writeSample()
270 return result; in writeSample()
284 boolean result = false; in peekSample()
[all …]
/development/samples/browseable/MediaRecorder/src/com.example.android.common.media/
DMediaCodecWrapper.java141 MediaCodecWrapper result = null; in fromVideoFormat() local
158 result = new MediaCodecWrapper(videoCodec); in fromVideoFormat()
162 return result; in fromVideoFormat()
190 boolean result = false; in writeSample()
217 result = true; in writeSample()
219 return result; in writeSample()
246 boolean result = false; in writeSample()
268 result = true; in writeSample()
270 return result; in writeSample()
284 boolean result = false; in peekSample()
[all …]
/development/samples/browseable/FindMyPhone/Wearable/src/com.example.android.wearable.findphone/
DFindPhoneService.java75 DataItemBuffer result = Wearable.DataApi.getDataItems(mGoogleApiClient).await(); in onHandleIntent() local
76 if (result.getStatus().isSuccess()) { in onHandleIntent()
77 if (result.getCount() == 1) { in onHandleIntent()
78 alarmOn = DataMap.fromByteArray(result.get(0).getData()) in onHandleIntent()
83 + "\tActual: " + result.getCount()); in onHandleIntent()
88 result.close(); in onHandleIntent()
118 public void onConnectionFailed(ConnectionResult result) { in onConnectionFailed() argument
/development/samples/browseable/BasicRenderScript/src/com.example.android.basicrenderscript/
DMainActivity.java148 void updateView(Integer result) { in updateView() argument
149 if (result != -1) { in updateView()
151 mImageView.setImageBitmap(mBitmapsOut[result]); in updateView()
156 protected void onPostExecute(Integer result) { in onPostExecute() argument
157 updateView(result); in onPostExecute()
160 protected void onCancelled(Integer result) { in onCancelled() argument
162 updateView(result); in onCancelled()
/development/tools/labpretest/
Dlabpretest.sh195 local result=$($ADB -s $device shell getprop dev.bootcomplete)
196 local result_test=${result:1:1}
201 result=$($ADB -s $device shell getprop dev.bootcomplete)
202 result_test=${result:0:1}
538 result=$($ADB -s $device shell getprop dev.bootcomplete)
539 result_test=${result:1:1}
544 result=$($ADB -s $device shell getprop dev.bootcomplete)
545 result_test=${result:0:1}
550 result=$($ADB -s $device shell pm path android)
551 result_test=${result:0:7}
[all …]
/development/samples/USB/AdbTest/src/com/android/adb/
DAdbMessage.java152 String result = "Adb Message: " + commandName + " arg0: " + getArg0() + in toString() local
155 result += (" data: \"" + getDataString() + "\""); in toString()
157 return result; in toString()
161 int result = 0; in checksum() local
166 result += x; in checksum()
168 return result; in checksum()
/development/scripts/
Dsymbol.py146 result = {}
157 result[addr] = [(source_symbol, source_location, object_symbol_with_offset)
160 return result
191 result = {}
214 result[addr] = records
217 return result
283 result = {}
310 result[target_addr] = (current_symbol, i_target - current_symbol_addr)
316 return result
/development/samples/browseable/StorageProvider/src/com.example.android.storageprovider/
DMyCloudProvider.java111 final MatrixCursor result = new MatrixCursor(resolveRootProjection(projection)); in queryRoots() local
116 return result; in queryRoots()
122 final MatrixCursor.RowBuilder row = result.newRow(); in queryRoots()
148 return result; in queryRoots()
163 final MatrixCursor result = new MatrixCursor(resolveDocumentProjection(projection)); in queryRecentDocuments() local
198 includeFile(result, null, file); in queryRecentDocuments()
200 return result; in queryRecentDocuments()
211 final MatrixCursor result = new MatrixCursor(resolveDocumentProjection(projection)); in querySearchDocuments() local
227 while (!pending.isEmpty() && result.getCount() < MAX_SEARCH_RESULTS) { in querySearchDocuments()
236 includeFile(result, null, file); in querySearchDocuments()
[all …]
/development/samples/browseable/CardReader/src/com.example.android.cardreader/
DLoyaltyCardReader.java81 byte[] result = isoDep.transceive(command); in onTagDiscovered()
85 int resultLength = result.length; in onTagDiscovered()
86 byte[] statusWord = {result[resultLength-2], result[resultLength-1]}; in onTagDiscovered()
87 byte[] payload = Arrays.copyOf(result, resultLength-2); in onTagDiscovered()
/development/samples/TtsEngine/src/com/example/android/ttsengine/
DCheckVoiceData.java68 int result; in onCreate() local
71 result = TextToSpeech.Engine.CHECK_VOICE_DATA_FAIL; in onCreate()
75 result = TextToSpeech.Engine.CHECK_VOICE_DATA_MISSING_DATA; in onCreate()
78 result = TextToSpeech.Engine.CHECK_VOICE_DATA_PASS; in onCreate()
88 setResult(result, returnData); in onCreate()

123456789