/aosp14/system/core/fastboot/ |
H A D | vendor_boot_img_utils.cpp | 213 if (auto res = check_vendor_boot_hdr(vendor_boot, 3); !res.ok()) return res.error(); in replace_default_vendor_ramdisk() local 225 if (auto res = updater.Copy(o); !res.ok()) return res.error(); in replace_default_vendor_ramdisk() local 245 if (auto res = updater.CheckOffset(o + p, o + new_p); !res.ok()) return res.error(); in replace_default_vendor_ramdisk() local 248 if (auto res = updater.Copy(q); !res.ok()) return res.error(); in replace_default_vendor_ramdisk() local 258 if (auto res = updater.Skip(r, new_r); !res.ok()) return res.error(); in replace_default_vendor_ramdisk() local 270 if (auto res = updater.Copy(s); !res.ok()) return res.error(); in replace_default_vendor_ramdisk() local 273 if (auto res = copy_avb_footer(&updater); !res.ok()) return res.error(); in replace_default_vendor_ramdisk() local 341 if (auto res = updater.Copy(o); !res.ok()) return res.error(); in replace_vendor_ramdisk_fragment() local 372 if (auto res = updater.Copy(q); !res.ok()) return res.error(); in replace_vendor_ramdisk_fragment() local 399 if (auto res = updater.Copy(s); !res.ok()) return res.error(); in replace_vendor_ramdisk_fragment() local [all …]
|
/aosp14/frameworks/base/core/java/android/content/ |
H A D | LoggingContentInterface.java | 82 return res; in setResult() 100 throw res; in query() 112 throw res; in getType() 125 throw res; in getStreamTypes() 137 throw res; in canonicalize() 149 throw res; in uncanonicalize() 162 throw res; in refresh() 175 throw res; in checkUriPermission() 188 throw res; in insert() 201 throw res; in bulkInsert() [all …]
|
/aosp14/frameworks/base/rs/java/android/renderscript/ |
H A D | Double3.java | 61 return res; in add() 95 res.x = a.x + b; in add() 96 res.y = a.y + b; in add() 97 res.z = a.z + b; in add() 99 return res; in add() 126 return res; in sub() 153 return res; in sub() 180 return res; in mul() 207 return res; in mul() 234 return res; in div() [all …]
|
H A D | Double4.java | 65 return res; in add() 101 res.x = a.x + b; in add() 102 res.y = a.y + b; in add() 103 res.z = a.z + b; in add() 106 return res; in add() 147 return res; in sub() 164 return res; in sub() 205 return res; in mul() 222 return res; in mul() 263 return res; in div() [all …]
|
H A D | Float4.java | 65 return res; in add() 101 res.x = a.x + b; in add() 102 res.y = a.y + b; in add() 103 res.z = a.z + b; in add() 106 return res; in add() 147 return res; in sub() 164 return res; in sub() 205 return res; in mul() 222 return res; in mul() 263 return res; in div() [all …]
|
H A D | Float3.java | 61 return res; in add() 95 res.x = a.x + b; in add() 96 res.y = a.y + b; in add() 97 res.z = a.z + b; in add() 99 return res; in add() 126 return res; in sub() 153 return res; in sub() 180 return res; in mul() 207 return res; in mul() 234 return res; in div() [all …]
|
H A D | Double2.java | 58 return res; in add() 90 res.x = a.x + b; in add() 91 res.y = a.y + b; in add() 93 return res; in add() 118 return res; in sub() 140 res.x = a.x - b; in sub() 143 return res; in sub() 168 return res; in mul() 193 return res; in mul() 218 return res; in div() [all …]
|
H A D | Float2.java | 57 return res; in add() 89 res.x = a.x + b; in add() 90 res.y = a.y + b; in add() 92 return res; in add() 117 return res; in sub() 139 res.x = a.x - b; in sub() 142 return res; in sub() 167 return res; in mul() 192 return res; in mul() 217 return res; in div() [all …]
|
/aosp14/frameworks/base/core/tests/coretests/src/android/content/res/ |
H A D | ConfigurationBoundResourceCacheTest.java | 17 package android.content.res; 47 final Resources res = getActivity().getResources(); in testGetEmpty() local 48 assertNull(mCache.getInstance(-1, res, null)); in testGetEmpty() 55 final Resources res = getActivity().getResources(); in testSetGet() local 100 int changes = calcConfigChanges(res, newCnf); in testVoidConfigChange() 114 res.getDisplayMetrics()); in testEffectiveConfigChange() 124 int changes = calcConfigChanges(res, newCnf); in testEffectiveConfigChange() 141 res.getDisplayMetrics()); in testConfigChangeMultipleResources() 153 int changes = calcConfigChanges(res, newCnf); in testConfigChangeMultipleResources() 182 res.getDisplayMetrics()); in testConfigChangeMultipleThemes() [all …]
|
/aosp14/frameworks/base/tests/BootImageProfileTest/src/com/android/bootimageprofile/ |
H A D | BootImageProfileTest.java | 71 assertTrue("profile boot class path not enabled: " + res, "true".equals(res)); in validateProperties() 72 res = getProperty("profilesystemserver"); in validateProperties() 73 assertTrue("profile system server not enabled: " + res, "true".equals(res)); in validateProperties() 74 res = getProperty("extra-opts"); in validateProperties() 75 assertTrue("extra options not set: " + res, DALVIK_VM_EXTRA_OPTS.equals(res)); in validateProperties() 85 return res.length() == 0; in forceSaveProfile() 91 String res; in testSystemServerProfile() local 117 assertTrue("stop shell: " + res, res.length() == 0); in testSystemServerProfile() 119 assertTrue("start shell: " + res, res.length() == 0); in testSystemServerProfile() 141 assertTrue(res, res.length() == 0); in testSystemServerProfile() [all …]
|
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/common/ |
H A D | DisplayLayoutTest.java | 33 import android.content.res.Configuration; 34 import android.content.res.Resources; 83 dl.recalcInsets(res); in testInsets() 89 dl.recalcInsets(res); in testInsets() 96 dl.recalcInsets(res); in testInsets() 102 dl.recalcInsets(res); in testInsets() 114 dl.recalcInsets(res); in testRotate() 120 dl.rotateTo(res, ROTATION_90); in testRotate() 125 res = createResources(40, 50, true); in testRotate() 128 dl.rotateTo(res, ROTATION_270); in testRotate() [all …]
|
/aosp14/frameworks/base/core/java/android/os/incremental/ |
H A D | IncrementalStorage.java | 83 if (res < 0) { in bind() 114 if (res < 0) { in bindPermanent() 130 if (res < 0) { in unBind() 146 if (res < 0) { in makeDirectory() 163 if (res < 0) { in makeDirectories() 217 if (res < 0) { in makeFileFromRange() 238 if (res < 0) { in makeLink() 254 if (res < 0) { in unlink() 273 if (res < 0) { in moveFile() 300 if (res < 0) { in moveDir() [all …]
|
/aosp14/frameworks/base/cmds/idmap2/tests/ |
H A D | ResourceMappingTests.cpp | 149 auto& res = *resources; in TEST() local 167 auto& res = *resources; in TEST() local 183 auto& res = *resources; in TEST() local 198 auto& res = *resources; in TEST() local 229 auto& res = *resources; in TEST() local 230 auto string_pool_data = res.GetStringPoolData(); in TEST() 253 auto& res = *resources; in TEST() local 272 auto& res = *resources; in TEST() local 292 auto& res = *resources; in TEST() local 326 auto& res = *resources; in TEST() local [all …]
|
/aosp14/frameworks/base/core/java/android/os/ |
H A D | RedactingFileDescriptor.java | 126 res = Arrays.copyOf(res, res.length + 4); in removeRange() 127 res[res.length - 4] = ranges[i]; in removeRange() 128 res[res.length - 3] = start; in removeRange() 129 res[res.length - 2] = end; in removeRange() 130 res[res.length - 1] = ranges[i + 1]; in removeRange() 133 res = Arrays.copyOf(res, res.length + 2); in removeRange() 135 res[res.length - 2] = Math.max(ranges[i], end); in removeRange() 137 res[res.length - 2] = ranges[i]; in removeRange() 140 res[res.length - 1] = Math.min(ranges[i + 1], start); in removeRange() 142 res[res.length - 1] = ranges[i + 1]; in removeRange() [all …]
|
/aosp14/frameworks/base/omapi/aidl/vts/functional/AccessControlApp/ |
H A D | VtsHalOmapiSeAccessControlTestCases.cpp | 96 ASSERT_TRUE(res.isOk()) << res.getMessage(); in testSelectableAid() 100 ASSERT_TRUE(res.isOk()) << res.getMessage(); in testSelectableAid() 104 ASSERT_TRUE(res.isOk()) << res.getMessage(); in testSelectableAid() 136 ASSERT_TRUE(res.isOk()) << res.getMessage(); in testUnauthorisedAid() 140 ASSERT_TRUE(res.isOk()) << res.getMessage(); in testUnauthorisedAid() 172 ASSERT_TRUE(res.isOk()) << res.getMessage(); in testTransmitAPDU() 176 ASSERT_TRUE(res.isOk()) << res.getMessage(); in testTransmitAPDU() 180 ASSERT_TRUE(res.isOk()) << res.getMessage(); in testTransmitAPDU() 217 ASSERT_TRUE(res.isOk()) << res.getMessage(); in testUnauthorisedAPDU() 221 ASSERT_TRUE(res.isOk()) << res.getMessage(); in testUnauthorisedAPDU() [all …]
|
/aosp14/frameworks/base/libs/hwui/jni/ |
H A D | graphics_jni_helpers.h | 50 jfieldID res = env->GetFieldID(clazz, field_name, field_signature); in GetFieldIDOrDie() local 52 return res; in GetFieldIDOrDie() 57 jmethodID res = env->GetMethodID(clazz, method_name, method_signature); in GetMethodIDOrDie() local 59 return res; in GetMethodIDOrDie() 66 return res; in GetStaticFieldIDOrDie() 73 return res; in GetStaticMethodIDOrDie() 78 jobject res = env->NewGlobalRef(in); in MakeGlobalRefOrDie() local 79 LOG_ALWAYS_FATAL_IF(res == NULL, "Unable to create global reference."); in MakeGlobalRefOrDie() 80 return static_cast<T>(res); in MakeGlobalRefOrDie() 86 LOG_ALWAYS_FATAL_IF(res < 0, "Unable to register native methods."); in RegisterMethodsOrDie() [all …]
|
/aosp14/frameworks/base/media/jni/ |
H A D | android_media_ImageWriter.cpp | 379 status_t res; in ImageWriter_init() local 409 __FUNCTION__, strerror(-res), res); in ImageWriter_init() 510 surfaceFormat, strerror(-res), res); in ImageWriter_init() 522 __FUNCTION__, strerror(-res), res); in ImageWriter_init() 607 __FUNCTION__, strerror(-res), res); in ImageWriter_close() 742 ALOGE("Attach image failed: %s (%d)", strerror(-res), res); in attachAndQeueuGraphicBuffer() 752 return res; in attachAndQeueuGraphicBuffer() 762 return res; in attachAndQeueuGraphicBuffer() 770 return res; in attachAndQeueuGraphicBuffer() 781 return res; in attachAndQeueuGraphicBuffer() [all …]
|
/aosp14/system/core/init/test_upgrade_mte/ |
H A D | mte_upgrade_test_helper.cpp | 28 int res = prctl(PR_GET_TAGGED_ADDR_CTRL, 0, 0, 0, 0); in MaybeDowngrade() local 29 if (res == -1) return 1; in MaybeDowngrade() 30 if (static_cast<unsigned long>(res) & PR_MTE_TCF_ASYNC) return 2; in MaybeDowngrade() 33 res = prctl(PR_GET_TAGGED_ADDR_CTRL, 0, 0, 0, 0); in MaybeDowngrade() 34 if (static_cast<unsigned long>(res) & PR_MTE_TCF_ASYNC) { in MaybeDowngrade() 46 int res = prctl(PR_GET_TAGGED_ADDR_CTRL, 0, 0, 0, 0); in main() local 47 if (res == -1) abort(); in main() 49 if (res & PR_MTE_TCF_ASYNC) { in main() 52 if (res & PR_MTE_TCF_SYNC) { in main() 58 if (res & PR_MTE_TCF_ASYNC && res & PR_MTE_TCF_SYNC) { in main() [all …]
|
/aosp14/frameworks/base/tools/aapt2/integration-tests/DumpTest/ |
H A D | components_full_proto.txt | 13 icon: "res/uF.xml" 16 value: "res/uF.xml" 20 value: "res/uF.xml" 24 value: "res/uF.xml" 28 value: "res/uF.xml" 32 value: "res/uF.xml" 36 value: "res/uF.xml" 165 resource_string: "res/dU.xml" 394 path: "res/Za.xml" 418 path: "res/3N.xml" [all …]
|
/aosp14/frameworks/base/core/jni/ |
H A D | core_jni_helpers.h | 49 jfieldID res = env->GetFieldID(clazz, field_name, field_signature); in GetFieldIDOrDie() local 52 return res; in GetFieldIDOrDie() 57 jmethodID res = env->GetMethodID(clazz, method_name, method_signature); in GetMethodIDOrDie() local 60 return res; in GetMethodIDOrDie() 68 return res; in GetStaticFieldIDOrDie() 76 return res; in GetStaticMethodIDOrDie() 81 jobject res = env->NewGlobalRef(in); in MakeGlobalRefOrDie() local 82 LOG_ALWAYS_FATAL_IF(res == NULL, "Unable to create global reference."); in MakeGlobalRefOrDie() 83 return static_cast<T>(res); in MakeGlobalRefOrDie() 89 LOG_ALWAYS_FATAL_IF(res < 0, "Unable to register native methods."); in RegisterMethodsOrDie() [all …]
|
/aosp14/frameworks/base/omapi/aidl/vts/functional/omapi/ |
H A D | VtsHalOmapiSeServiceV1_TargetTest.cpp | 64 ASSERT_TRUE(res.isOk()) << res.getMessage(); in testSelectableAid() 68 ASSERT_TRUE(res.isOk()) << res.getMessage(); in testSelectableAid() 72 ASSERT_TRUE(res.isOk()) << res.getMessage(); in testSelectableAid() 97 ASSERT_TRUE(res.isOk()) << res.getMessage(); in testNonSelectableAid() 101 ASSERT_TRUE(res.isOk()) << res.getMessage(); in testNonSelectableAid() 153 ASSERT_TRUE(res.isOk()) << res.getMessage(); in internalTransmitApdu() 157 ASSERT_TRUE(res.isOk()) << res.getMessage(); in internalTransmitApdu() 161 ASSERT_TRUE(res.isOk()) << res.getMessage(); in internalTransmitApdu() 340 ASSERT_TRUE(res.isOk()) << res.getMessage(); in TEST_P() 476 ASSERT_TRUE(res.isOk()) << res.getMessage(); in TEST_P() [all …]
|
/aosp14/frameworks/base/services/tests/RemoteProvisioningServiceTests/src/com/android/server/security/rkp/ |
H A D | RemoteProvisioningShellCommandTest.java | 119 assertThat(res.getErr()).isEmpty(); in list_zeroInstances() 120 assertThat(res.getCode()).isEqualTo(0); in list_zeroInstances() 121 assertThat(res.getOut()).isEmpty(); in list_zeroInstances() 129 assertThat(res.getErr()).isEmpty(); in list_oneInstances() 130 assertThat(res.getCode()).isEqualTo(0); in list_oneInstances() 141 assertThat(res.getErr()).isEmpty(); in list_twoInstances() 142 assertThat(res.getCode()).isEqualTo(0); in list_twoInstances() 173 assertThat(res.getErr()).isEmpty(); in csr_hwVersion1_withChallenge() 204 assertThat(res.getErr()).isEmpty(); in csr_hwVersion2_withChallenge() 221 assertThat(res.getErr()).isEmpty(); in csr_hwVersion3_withoutChallenge() [all …]
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/people/prediction/ |
H A D | ShareTargetPredictorTest.java | 177 assertEquals(4, res.size()); in testPredictTargets() 179 assertEquals("sc3", res.get(0).getId().getId()); in testPredictTargets() 183 assertEquals("sc2", res.get(1).getId().getId()); in testPredictTargets() 242 assertEquals(5, res.size()); in testPredictTargets_reachTargetsLimit() 298 assertEquals(4, res.size()); in testPredictTargets_noSharingHistoryRankedByShortcutRank() 366 assertEquals(5, res.size()); in testSortTargets() 367 checkAppTarget(appTarget4, res.get(0)); in testSortTargets() 368 checkAppTarget(appTarget3, res.get(1)); in testSortTargets() 369 checkAppTarget(appTarget2, res.get(2)); in testSortTargets() 370 checkAppTarget(appTarget1, res.get(3)); in testSortTargets() [all …]
|
/aosp14/frameworks/base/media/java/android/media/tv/tuner/filter/ |
H A D | TimeFilter.java | 69 int res = nativeSetTimestamp(timestamp); in setCurrentTimestamp() local 70 if (res == Tuner.RESULT_SUCCESS) { in setCurrentTimestamp() 73 return res; in setCurrentTimestamp() 85 int res = nativeClearTimestamp(); in clearTimestamp() local 86 if (res == Tuner.RESULT_SUCCESS) { in clearTimestamp() 89 return res; in clearTimestamp() 134 int res = nativeClose(); in close() local 135 if (res != Tuner.RESULT_SUCCESS) { in close() 136 TunerUtils.throwExceptionForResult(res, "Failed to close time filter."); in close()
|
/aosp14/frameworks/base/core/java/android/view/inputmethod/ |
H A D | ExtractedText.java | 121 ExtractedText res = new ExtractedText(); 122 res.text = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(source); 123 res.startOffset = source.readInt(); 124 res.partialStartOffset = source.readInt(); 125 res.partialEndOffset = source.readInt(); 126 res.selectionStart = source.readInt(); 127 res.selectionEnd = source.readInt(); 128 res.flags = source.readInt(); 129 res.hint = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(source); 130 return res;
|