Home
last modified time | relevance | path

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

1234567891011

/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/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/browseable/ElizaChat/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/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/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/python-packages/gdbrunner/
D__init__.py52 result = super(ArgumentParser, self).parse_args(args, namespace)
54 adb_path = result.adb_path or "adb"
62 if not result.adb_path:
67 if result.device == "-a":
68 result.device = adb.get_device(adb_path=adb_path)
69 elif result.device == "-d":
70 result.device = adb.get_usb_device(adb_path=adb_path)
71 elif result.device == "-e":
72 result.device = adb.get_emulator_device(adb_path=adb_path)
74 result.device = adb.get_device(result.serial, adb_path=adb_path)
[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/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/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/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/RuntimePermissionsBasic/src/com.example.android.basicpermissions/camera/
DCameraPreview.java132 int result; in calculatePreviewOrientation() local
134 result = (info.orientation + degrees) % 360; in calculatePreviewOrientation()
135 result = (360 - result) % 360; // compensate the mirror in calculatePreviewOrientation()
137 result = (info.orientation - degrees + 360) % 360; in calculatePreviewOrientation()
140 return result; in calculatePreviewOrientation()
/development/samples/browseable/FindMyPhone/Wearable/src/com.example.android.wearable.findphone/
DFindPhoneService.java75 DataItemBuffer result = Wearable.DataApi.getDataItems(mGoogleApiClient).await(); in onHandleIntent() local
77 if (result.getStatus().isSuccess()) { in onHandleIntent()
78 if (result.getCount() == 1) { in onHandleIntent()
79 alarmOn = DataMap.fromByteArray(result.get(0).getData()) in onHandleIntent()
84 + "\tActual: " + result.getCount()); in onHandleIntent()
90 result.release(); in onHandleIntent()
122 public void onConnectionFailed(ConnectionResult result) { in onConnectionFailed() argument
/development/samples/browseable/RuntimePermissions/src/com.example.android.system.runtimepermissions/camera/
DCameraPreview.java132 int result; in calculatePreviewOrientation() local
134 result = (info.orientation + degrees) % 360; in calculatePreviewOrientation()
135 result = (360 - result) % 360; // compensate the mirror in calculatePreviewOrientation()
137 result = (info.orientation - degrees + 360) % 360; in calculatePreviewOrientation()
140 return result; in calculatePreviewOrientation()
/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/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/
DAlbumArtCache.java71 Bitmap[] result = mCache.get(artUrl); in getBigImage() local
72 return result == null ? null : result[BIG_BITMAP_INDEX]; in getBigImage()
76 Bitmap[] result = mCache.get(artUrl); in getIconImage() local
77 return result == null ? null : result[ICON_BITMAP_INDEX]; in getIconImage()
/development/samples/Support4Demos/src/com/example/android/supportv4/media/
DAlbumArtCache.java71 Bitmap[] result = mCache.get(artUrl); in getBigImage() local
72 return result == null ? null : result[BIG_BITMAP_INDEX]; in getBigImage()
76 Bitmap[] result = mCache.get(artUrl); in getIconImage() local
77 return result == null ? null : result[ICON_BITMAP_INDEX]; in getIconImage()
/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 …]

1234567891011