/frameworks/base/core/jni/ |
H A D | android_view_VelocityTracker.cpp | 199 bool result = state->getEstimator(id, &estimator); local 212 return result;
|
H A D | fd_utils-inl.h | 262 static bool Readlink(const int fd, std::string* result) { argument 277 result->assign(buf, len); 288 static bool GetSocketName(const int fd, std::string* result) { argument 325 result->assign(unix_addr->sun_path, path_len);
|
/frameworks/base/libs/androidfw/ |
H A D | CursorWindow.cpp | 48 status_t result; local 51 result = -errno; 53 result = ashmem_set_prot_region(ashmemFd, PROT_READ | PROT_WRITE); 54 if (result >= 0) { 57 result = -errno; 59 result = ashmem_set_prot_region(ashmemFd, PROT_READ); 60 if (result >= 0) { 63 result = window->clear(); 64 if (!result) { 82 return result; 88 status_t result; local [all...] |
H A D | ZipUtils.cpp | 57 bool result = false; local 142 result = true; 148 return result;
|
/frameworks/base/libs/hwui/ |
H A D | PathParser.cpp | 52 * @param result the result of the extraction, including the position of the 101 static float parseFloat(PathParser::ParseResult* result, const char* startPtr, size_t expectedLength) { argument 105 result->failureOccurred = true; 106 result->failureMessage = "Float out of range: "; 107 result->failureMessage.append(startPtr, expectedLength); 111 result->failureOccurred = true; 112 result->failureMessage = "Float format error when parsing: "; 113 result->failureMessage.append(startPtr, expectedLength); 124 static void getFloats(std::vector<float>* outPoints, PathParser::ParseResult* result, argument 165 getPathDataFromAsciiString(PathData* data, ParseResult* result, const char* pathStr, size_t strLen) argument 238 parseAsciiStringForSkPath(SkPath* skPath, ParseResult* result, const char* pathStr, size_t strLen) argument [all...] |
H A D | ShadowTessellator.cpp | 153 Vector2 result = p2 - p1; local 154 if (result.x != 0 || result.y != 0) { 155 result.normalize(); 157 float tempy = result.y; 158 result.y = result.x; 159 result.x = -tempy; 161 return result;
|
/frameworks/base/libs/hwui/renderthread/ |
H A D | RenderThread.cpp | 280 int result = mLooper->pollOnce(timeoutMillis); local 281 LOG_ALWAYS_FATAL_IF(result == Looper::POLL_ERROR, 310 // of bad timing and slow drawing can result in dropping a stale vsync
|
/frameworks/base/libs/hwui/tests/unit/ |
H A D | BakedOpDispatcherTests.cpp | 128 int result = 0; local 129 testUnmergedGlopDispatch(renderThread, op, [&result] (const Glop& glop) { 130 result = glop.transform.transformFlags; 132 return result;
|
H A D | VectorDrawableTests.cpp | 250 PathParser::ParseResult result; local 254 PathParser::getPathDataFromAsciiString(&pathData, &result, testData.pathString, length); 259 PathParser::ParseResult result; local 262 PathParser::getPathDataFromAsciiString(&pathData, &result, 264 EXPECT_EQ(stringPath.isValid, !result.failureOccurred); 280 PathParser::ParseResult result; local 284 PathParser::parseAsciiStringForSkPath(&actualPath, &result, testData.pathString, length); 285 bool hasValidData = !result.failureOccurred; 293 PathParser::ParseResult result; local 295 PathParser::parseAsciiStringForSkPath(&skPath, &result, stringPat [all...] |
/frameworks/base/libs/hwui/utils/ |
H A D | LinearAllocator.cpp | 244 static const char* toSize(size_t value, float& result) { argument 246 result = value; 250 result = value / 1024.0f; 253 result = value / 1048576.0f;
|
/frameworks/base/media/jni/ |
H A D | android_media_ExifInterface.cpp | 346 jobject result = getRawAttributes(env, stream.get(), false); local 349 if (result == NULL) { 352 return result;
|
H A D | android_media_MediaCrypto.cpp | 246 bool result = JCrypto::IsCryptoSchemeSupported((const uint8_t *)uuid); local 251 return result ? JNI_TRUE : JNI_FALSE; 274 bool result = crypto->requiresSecureDecoderComponent(mime); local 279 return result ? JNI_TRUE : JNI_FALSE;
|
/frameworks/base/media/jni/soundpool/ |
H A D | android_media_SoundPool.cpp | 300 jint result = -1; local 305 return result; 312 return result; 318 return result; 325 return result; 333 return result; 339 return result; 353 return result;
|
/frameworks/base/media/mca/filterfw/jni/ |
H A D | jni_gl_environment.cpp | 149 int result = gl_env->FindSurfaceIdForWindow(winHandle); local 150 if (result == -1) { 184 result = gl_env->AddWindowSurface(egl_surface, winHandle); 188 return result; 218 int result = gl_env->FindSurfaceIdForWindow(winHandle); local 219 if (result == -1) { 253 result = gl_env->AddWindowSurface(egl_surface, winHandle); 257 return result; 311 int result = gl_env->FindSurfaceIdForWindow(winHandle); local 313 if (result ! [all...] |
H A D | jni_gl_frame.cpp | 31 void ConvertFloatsToRGBA(const float* floats, int length, uint8_t* result) { argument 33 result[i] = static_cast<uint8_t>(floats[i] * 255.0); 37 void ConvertRGBAToFloats(const uint8_t* rgba, int length, float* result) { argument 39 result[i] = rgba[i] / 255.0; 132 jbyteArray result = env->NewByteArray(frame->Size()); local 133 jbyte* data = env->GetByteArrayElements(result, NULL); 135 env->ReleaseByteArrayElements(result, data, 0); 136 return result; 161 jintArray result = env->NewIntArray(frame->Size() / sizeof(jint)); local 162 jint* data = env->GetIntArrayElements(result, NUL 198 jfloatArray result = env->NewFloatArray(frame->Size()); local 223 const int result = AndroidBitmap_lockPixels(env, bitmap, reinterpret_cast<void**>(&pixels)); local 239 const int result = AndroidBitmap_lockPixels(env, bitmap, reinterpret_cast<void**>(&pixels)); local [all...] |
H A D | jni_native_frame.cpp | 80 jbyteArray result = env->NewByteArray(size); 81 env->SetByteArrayRegion(result, 0, size, reinterpret_cast<const jbyte*>(data)); 82 return result; 125 jintArray result = env->NewIntArray(count); local 126 env->SetIntArrayRegion(result, 0, count, reinterpret_cast<const jint*>(data)); 127 return result; 159 jfloatArray result = env->NewFloatArray(count); local 160 env->SetFloatArrayRegion(result, 0, count, reinterpret_cast<const jfloat*>(data)); 161 return result; 180 const int result local 224 const int result = AndroidBitmap_lockPixels(env, bitmap, reinterpret_cast<void**>(&dst_ptr)); local [all...] |
H A D | jni_util.h | 133 const int result = env->GetIntField(j_object, id_field); local 135 return result; 171 jobject result = env->NewObject(cls, constructor, JNI_NULL); local 173 return result; 224 jobject result = pool->CreateJavaObject(env); local 225 if (WrapObjectInJava(c_object, env, result, owns)) 226 return result;
|
/frameworks/base/media/mca/filterfw/native/core/ |
H A D | gl_env.cpp | 109 const bool result = eglSwapBuffers(display(), surface()) == EGL_TRUE; local 110 return !CheckEGLError("eglSwapBuffers") && result; 352 GLint result; local 353 glGetIntegerv(GL_CURRENT_PROGRAM, &result); 354 ALOG_ASSERT(result >= 0); 355 return static_cast<GLuint>(result);
|
H A D | value.cpp | 45 Value result; local 46 result.type = TYPEID; 47 result.value = malloc(sizeof(POD)); 48 result.count = 1; 49 *reinterpret_cast<POD*>(result.value) = value; 50 return result; 55 Value result; local 56 result.type = TYPEID; 57 result.value = malloc(sizeof(BASE) * count); 58 memcpy(result 151 Value result; local 175 Value result; local 187 Value result; local [all...] |
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/ |
H A D | Camera2Focuser.java | 68 * The callback interface to notify auto focus result. 91 * @param listener The auto focus listener to notify AF result 137 public synchronized void onAutoFocusSuccess(CaptureResult result, boolean locked) { argument 147 public synchronized void onAutoFocusFail(CaptureResult result, boolean locked) { argument 157 public synchronized void onAutoFocusScan(CaptureResult result) { argument 163 public synchronized void onAutoFocusInactive(CaptureResult result) { argument 352 CaptureResult result) { 353 // In case of a partial result, send to focuser if necessary 355 if (result.get(CaptureResult.CONTROL_AF_STATE) != null && 356 result [all...] |
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/integration/ |
H A D | CameraBinderTest.java | 232 public void onResultReceived(CameraMetadataNative result, CaptureResultExtras resultExtras) argument
|
H A D | CameraDeviceBinderTest.java | 56 // Wait for capture result timeout value: 1500ms 133 public void onResultReceived(CameraMetadataNative result, CaptureResultExtras resultExtras) argument
|
/frameworks/base/native/android/ |
H A D | choreographer.cpp | 94 status_t result = gChoreographer->initialize(); local 95 if (result != OK) {
|
/frameworks/base/packages/CaptivePortalLogin/src/com/android/captiveportallogin/ |
H A D | CaptivePortalLoginActivity.java | 151 private void done(Result result) { argument 156 switch (result) {
|
/frameworks/base/packages/DocumentsUI/perf-tests/src/com/android/documentsui/ |
H A D | StressProvider.java | 133 final MatrixCursor result = new MatrixCursor(DEFAULT_ROOT_PROJECTION); 135 includeRoot(result, root); 137 return result; 143 final MatrixCursor result = new MatrixCursor(DEFAULT_DOCUMENT_PROJECTION); 145 includeDocument(result, document); 146 return result; 153 final MatrixCursor result = new MatrixCursor(DEFAULT_DOCUMENT_PROJECTION); 157 includeDocument(result, document); 160 return result; 178 private void includeRoot(MatrixCursor result, StubRoo argument 186 includeDocument(MatrixCursor result, StubDocument document) argument [all...] |