/aosp12/frameworks/av/media/libstagefright/foundation/tests/ |
H A D | Flagged_test.cpp | 206 using helper = _Flagged_helper; in TEST_F() typedef 271 static_assert(helper::lshift(0U, 0) == 0U, ""); in TEST_F() 272 static_assert(helper::lshift(0U, 30) == 0U, ""); in TEST_F() 273 static_assert(helper::lshift(1U, 0) == 1U, ""); in TEST_F() 274 static_assert(helper::lshift(1U, 10) == 1024U, ""); in TEST_F() 275 static_assert(helper::lshift(10U, 10) == 10240U, ""); in TEST_F() 276 static_assert(helper::lshift(10, 10) == 10240, ""); in TEST_F() 277 static_assert(helper::lshift(-10, 0) == -10, ""); in TEST_F() 286 static_assert(helper::minMask(~0U) == ~0U, "all bits"); in TEST_F() 308 static_assert(helper::getShift(0u, 1u, 0u, 0, 1u) == 0, in TEST_F() [all …]
|
/aosp12/frameworks/base/core/tests/coretests/src/android/util/ |
H A D | MonthDisplayHelperTest.java | 54 helper.getDigitsForRow(0)); in testMonthRows() 56 helper.getDigitsForRow(1)); in testMonthRows() 58 helper.getDigitsForRow(5)); in testMonthRows() 68 helper.getDigitsForRow(0)); in testMonthRowsWeekStartsMonday() 70 helper.getDigitsForRow(1)); in testMonthRowsWeekStartsMonday() 72 helper.getDigitsForRow(4)); in testMonthRowsWeekStartsMonday() 74 helper.getDigitsForRow(5)); in testMonthRowsWeekStartsMonday() 83 helper.getDigitsForRow(0)); in testMonthRowsWeekStartsSaturday() 120 helper.previousMonth(); in testPrevMonth() 132 helper.previousMonth(); in testPrevMonthRollOver() [all …]
|
/aosp12/art/runtime/interpreter/mterp/x86_64/ |
H A D | object.S | 1 %def field(helper=""): 5 .extern $helper 11 call SYMBOL($helper) 32 % field(helper=helper) 35 % op_iget(helper="MterpIGetU8") 38 % op_iget(helper="MterpIGetI8") 41 % op_iget(helper="MterpIGetU16") 47 % op_iget(helper="MterpIGetI16") 77 % field(helper=helper) 113 % field(helper=helper) [all …]
|
H A D | invoke.S | 1 %def invoke(helper="UndefinedInvokeHandler"): 7 .extern $helper 14 call SYMBOL($helper) 30 .extern $helper 37 call SYMBOL($helper) 48 % invoke(helper="MterpInvokeCustom") 54 % invoke(helper="MterpInvokeDirect") 60 % invoke(helper="MterpInvokeInterface") 79 % invoke(helper="MterpInvokeStatic") 86 % invoke(helper="MterpInvokeSuper") [all …]
|
/aosp12/art/runtime/interpreter/mterp/x86/ |
H A D | object.S | 1 %def field(helper=""): 5 .extern $helper 13 call SYMBOL($helper) 40 % field(helper=helper) 43 % op_iget(helper="MterpIGetU8") 46 % op_iget(helper="MterpIGetI8") 49 % op_iget(helper="MterpIGetU16") 55 % op_iget(helper="MterpIGetI16") 89 % field(helper=helper) 128 % field(helper=helper) [all …]
|
H A D | invoke.S | 1 %def invoke(helper="UndefinedInvokeHandler"): 7 .extern $helper 16 call SYMBOL($helper) 33 .extern $helper 42 call SYMBOL($helper) 54 % invoke(helper="MterpInvokeCustom") 60 % invoke(helper="MterpInvokeDirect") 66 % invoke(helper="MterpInvokeInterface") 85 % invoke(helper="MterpInvokeStatic") 92 % invoke(helper="MterpInvokeSuper") [all …]
|
/aosp12/art/runtime/interpreter/mterp/arm64/ |
H A D | object.S | 1 %def field(helper=""): 5 .extern $helper 11 bl $helper 126 % field(helper=helper) 129 % op_iput(helper="MterpIPutU8") 132 % op_iput(helper="MterpIPutI8") 162 % field(helper=helper) 165 % op_sget(helper="MterpSGetU8") 168 % op_sget(helper="MterpSGetI8") 183 % field(helper=helper) [all …]
|
H A D | invoke.S | 1 %def invoke(helper="UndefinedInvokeHandler"): 7 .extern $helper 13 bl $helper 28 .extern $helper 34 bl $helper 43 % invoke(helper="MterpInvokeCustom") 49 % invoke(helper="MterpInvokeDirect") 55 % invoke(helper="MterpInvokeInterface") 74 % invoke(helper="MterpInvokeStatic") 81 % invoke(helper="MterpInvokeSuper") [all …]
|
/aosp12/frameworks/opt/car/setupwizard/library/main/tests/robotests/src/com/android/car/setupwizardlib/partner/ |
H A D | PartnerConfigHelperTest.java | 73 PartnerConfigHelper helper = PartnerConfigHelper.get(application); in getDimension_withWrongConfigType_shouldThrowException() local 75 helper.getDimension(application, TEST_COLOR_RESOURCE_NAME); in getDimension_withWrongConfigType_shouldThrowException() 80 PartnerConfigHelper helper = PartnerConfigHelper.get(application); in getDimension_shouldReturnExpectedDimension() local 114 helper.getColorStateList(application, TEST_COLOR_RESOURCE_NAME); in getColor_whenCacheHasColorStateList_shouldReturnExpectedColor() 130 assertThat(helper.mPartnerResourceCache) in getColorStateList_shouldReturnExpectedColorStateList() 133 ColorStateList colorStateList = helper.getColorStateList( in getColorStateList_shouldReturnExpectedColorStateList() 137 assertThat(helper.mPartnerResourceCache) in getColorStateList_shouldReturnExpectedColorStateList() 149 assertThat(helper.mPartnerResourceCache) in getColorStateList_whenCacheHasColorValue_shouldReturnExpectedColorStateList() 153 helper.getColor(application, TEST_COLOR_RESOURCE_NAME); in getColorStateList_whenCacheHasColorValue_shouldReturnExpectedColorStateList() 156 ColorStateList colorStateList = helper.getColorStateList( in getColorStateList_whenCacheHasColorValue_shouldReturnExpectedColorStateList() [all …]
|
/aosp12/art/runtime/interpreter/mterp/arm/ |
H A D | invoke.S | 1 %def invoke(helper="UndefinedInvokeHandler"): 7 .extern $helper 13 bl $helper 30 .extern $helper 36 bl $helper 47 % invoke(helper="MterpInvokeCustom") 60 % invoke(helper="MterpInvokeDirect") 66 % invoke(helper="MterpInvokeInterface") 85 % invoke(helper="MterpInvokeStatic") 92 % invoke(helper="MterpInvokeSuper") [all …]
|
/aosp12/bionic/tests/ |
H A D | dl_test.cpp | 128 std::string helper = GetTestlibRoot() + in TEST() local 144 std::string helper = GetTestlibRoot() + in TEST() local 170 std::string helper = GetTestlibRoot() + in TEST() local 182 std::string helper = GetTestlibRoot() + in TEST() local 197 std::string helper = GetTestlibRoot() + in TEST() local 199 chmod(helper.c_str(), 0755); in TEST() 211 chmod(helper.c_str(), 0755); in TEST() 241 chmod(helper.c_str(), 0755); in TEST() 296 chmod(helper.c_str(), 0755); in TEST() 334 chmod(helper.c_str(), 0755); in TEST() [all …]
|
H A D | sys_thread_properties_test.cpp | 26 std::string helper = GetTestLibRoot() + "tls_properties_helper/tls_properties_helper"; in TEST() local 27 chmod(helper.c_str(), 0755); // TODO: "x" lost in CTS, b/34945607 in TEST() 30 eth.SetArgs({helper.c_str(), nullptr}); in TEST() 31 eth.Run([&]() { execve(helper.c_str(), eth.GetArgs(), eth.GetEnv()); }, 0, expected_out); in TEST() 39 std::string helper = GetTestLibRoot() + "thread_exit_cb_helper/thread_exit_cb_helper"; in TEST() local 40 chmod(helper.c_str(), 0755); // TODO: "x" lost in CTS, b/34945607 in TEST() 43 eth.SetArgs({helper.c_str(), nullptr}); in TEST() 44 eth.Run([&]() { execve(helper.c_str(), eth.GetArgs(), eth.GetEnv()); }, 0, expected_out); in TEST()
|
/aosp12/frameworks/base/core/java/com/android/internal/infra/ |
H A D | GlobalWhitelistState.java | 58 WhitelistHelper helper = mWhitelisterHelpers.get(userId); in setWhitelist() local 59 if (helper == null) { in setWhitelist() 60 helper = new WhitelistHelper(); in setWhitelist() 61 mWhitelisterHelpers.put(userId, helper); in setWhitelist() 63 helper.setWhitelist(packageNames, components); in setWhitelist() 73 final WhitelistHelper helper = mWhitelisterHelpers.get(userId); in isWhitelisted() 74 return helper == null ? false : helper.isWhitelisted(packageName); in isWhitelisted() 84 final WhitelistHelper helper = mWhitelisterHelpers.get(userId); in isWhitelisted() 85 return helper == null ? false : helper.isWhitelisted(componentName); in isWhitelisted() 97 return helper == null ? null : helper.getWhitelistedComponents(packageName); in getWhitelistedComponents() [all …]
|
/aosp12/packages/apps/CertInstaller/robotests/src/com/android/certinstaller/ |
H A D | CertInstallerRoboTest.java | 52 assertThat(helper.getName()).isEqualTo("name"); in testNameNotNullPass() 61 assertThat(helper.getReferrer()).isEqualTo("referrer"); in testReferrerNotNullPass() 78 assertThat(helper.getUid()).isEqualTo(Process.WIFI_UID); in testUidUsageEqualWifiPass() 95 assertThat(helper.getUid()).isEqualTo(KeyStore.UID_SELF); in testUidUsageNotNullPass() 96 assertThat(helper.getCertUsageSelected()).isEqualTo("usage"); in testUidUsageNotNullPass() 110 assertThat(helper.getUid()).isEqualTo(100); in testUidUsageNullPass() 130 assertThat(!helper.containsAnyRawData()).isTrue(); in testIntentNullPass() 131 assertThat(helper.getName()).isEqualTo(""); in testIntentNullPass() 132 assertThat(helper.getUid()).isEqualTo(Process.INVALID_UID); in testIntentNullPass() 133 assertThat(helper.getReferrer()).isEqualTo(""); in testIntentNullPass() [all …]
|
/aosp12/art/runtime/interpreter/mterp/x86_64ng/ |
H A D | invoke.S | 1 %def invoke(helper="NterpUnimplemented"): 2 call SYMBOL($helper) 27 jmp $helper 74 %def invoke_interface(helper="", range=""): 96 jmp $helper 123 %def invoke_static(helper=""): 127 jmp $helper 134 jmp $helper 137 % invoke_static(helper="NterpCommonInvokeStatic") 148 %def invoke_virtual(helper="", range=""): [all …]
|
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/pm/ |
H A D | InstallSessionTracker.java | 58 InstallSessionHelper helper = mWeakHelper.get(); in onCreated() local 60 if (callback == null || helper == null) { in onCreated() 68 helper.tryQueuePromiseAppIcon(sessionInfo); in onCreated() 73 InstallSessionHelper helper = mWeakHelper.get(); in onFinished() local 75 if (callback == null || helper == null) { in onFinished() 94 helper.removePromiseIconId(sessionId); in onFinished() 101 InstallSessionHelper helper = mWeakHelper.get(); in onProgressChanged() local 103 if (callback == null || helper == null) { in onProgressChanged() 119 if (callback == null || helper == null) { in onBadgingChanged() 124 helper.tryQueuePromiseAppIcon(sessionInfo); in onBadgingChanged() [all …]
|
/aosp12/art/libartbase/base/ |
H A D | hiddenapi_flags.h | 36 namespace helper { 131 static_assert(helper::ToUint(Value::kMax) < helper::ToUint(Value::kInvalid)); 177 if (value == helper::ToUint(Value::kInvalid)) { in GetValue() 179 } else if (value > helper::ToUint(Value::kMax)) { in GetValue() 183 DCHECK_GE(value, helper::ToUint(Value::kMin)); in GetValue() 211 uint32_t GetIntValue() const { return helper::ToUint(GetValue()) - helper::ToUint(Value::kMin); } in GetIntValue() 217 return ApiList(helper::GetEnumAt<Value>(i)); in FromName() 226 static_assert(helper::ToUint(Value::kMax) + 1 < helper::ToUint(Value::kInvalid)); in FromName() 227 return ApiList(helper::ToUint(Value::kMax) + 1); in FromName() 331 return helper::MatchesBitMask(helper::ToBit(DomainApi::kTestApi), dex_flags_); in IsTestApi() [all …]
|
/aosp12/frameworks/base/core/java/android/app/backup/ |
H A D | BackupHelperDispatcher.java | 44 public void addHelper(String keyPrefix, BackupHelper helper) { in addHelper() argument 45 mHelpers.put(keyPrefix, helper); in addHelper() 63 if (helper != null) { in performBackup() 77 BackupHelper helper = entry.getValue(); in performBackup() local 78 doOneBackup(oldState, data, newState, header, helper); in performBackup() 97 helper.performBackup(oldState, data, newState); in doOneBackup() 119 BackupHelper helper = mHelpers.get(prefix); in performRestore() local 120 if (helper != null) { in performRestore() 123 helper.restoreEntity(stream); in performRestore() 140 for (BackupHelper helper: mHelpers.values()) { in performRestore() [all …]
|
/aosp12/art/runtime/interpreter/mterp/arm64ng/ |
H A D | invoke.S | 11 %def invoke_direct_or_super(helper="", range="", is_super=""): 23 b $helper 128 %def invoke_static(helper=""): 132 b $helper 138 b $helper 141 % invoke_static(helper="NterpCommonInvokeStatic") 144 % invoke_static(helper="NterpCommonInvokeStaticRange") 146 %def invoke_virtual(helper="", range=""): 160 b $helper 170 % invoke_virtual(helper="NterpCommonInvokeInstance", range="0") [all …]
|
/aosp12/packages/apps/Dialer/java/com/android/voicemail/impl/ |
H A D | ActivationTask.java | 138 OmtpVvmCarrierConfigHelper helper; in onExecuteInBackgroundThread() local 140 helper = configForTest; in onExecuteInBackgroundThread() 144 if (!helper.isValid()) { in onExecuteInBackgroundThread() 151 if (helper.isLegacyModeEnabled()) { in onExecuteInBackgroundThread() 153 helper.activateSmsFilter(); in onExecuteInBackgroundThread() 164 .setType(helper.getVvmType()) in onExecuteInBackgroundThread() 175 helper.activateSmsFilter(); in onExecuteInBackgroundThread() 179 helper.handleEvent( in onExecuteInBackgroundThread() 186 helper.handleEvent( in onExecuteInBackgroundThread() 193 helper.activateSmsFilter(); in onExecuteInBackgroundThread() [all …]
|
/aosp12/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/recyclerview/ |
H A D | CarUiSnapHelper.java | 187 final int containerTop = helper.getStartAfterPadding(); in distanceToTopMargin() 204 return helper.getDecoratedMeasurement(view) <= helper.getTotalSpace(); in isValidSnapView() 216 int start = helper.getStartAfterPadding(); in getPercentageVisible() 217 int end = helper.getEndAfterPadding(); in getPercentageVisible() 219 int viewStart = helper.getDecoratedStart(view); in getPercentageVisible() 220 int viewEnd = helper.getDecoratedEnd(view); in getPercentageVisible() 319 float distancePerChild = computeDistancePerChild(helper.getLayoutManager(), helper); in estimateNextPositionDiffForScrollDistance() 343 OrientationHelper helper) { in computeDistancePerChild() argument 372 helper.getDecoratedStart(maxPosView)); in computeDistancePerChild() 373 int end = Math.max(helper.getDecoratedEnd(minPosView), in computeDistancePerChild() [all …]
|
/aosp12/packages/apps/Car/libs/car-ui-lib/referencedesign/plugin/src/main/java/com/chassis/car/ui/plugin/recyclerview/ |
H A D | SnapHelper.java | 186 final int childTop = helper.getDecoratedStart(targetView); in distanceToTopMargin() 187 final int containerTop = helper.getStartAfterPadding(); in distanceToTopMargin() 204 return helper.getDecoratedMeasurement(view) <= helper.getTotalSpace(); in isValidSnapView() 216 int start = helper.getStartAfterPadding(); in getPercentageVisible() 217 int end = helper.getEndAfterPadding(); in getPercentageVisible() 219 int viewStart = helper.getDecoratedStart(view); in getPercentageVisible() 220 int viewEnd = helper.getDecoratedEnd(view); in getPercentageVisible() 319 float distancePerChild = computeDistancePerChild(helper.getLayoutManager(), helper); in estimateNextPositionDiffForScrollDistance() 372 helper.getDecoratedStart(maxPosView)); in computeDistancePerChild() 373 int end = Math.max(helper.getDecoratedEnd(minPosView), in computeDistancePerChild() [all …]
|
/aosp12/art/runtime/interpreter/mterp/armng/ |
H A D | invoke.S | 11 %def invoke_direct_or_super(helper="", range="", is_super=""): 24 b $helper 135 %def invoke_static(helper=""): 139 b $helper 145 b $helper 148 % invoke_static(helper="NterpCommonInvokeStatic") 151 % invoke_static(helper="NterpCommonInvokeStaticRange") 153 %def invoke_virtual(helper="", range=""): 167 b $helper 177 % invoke_virtual(helper="NterpCommonInvokeInstance", range="0") [all …]
|
/aosp12/packages/providers/MediaProvider/tests/src/com/android/providers/media/ |
H A D | DatabaseHelperTest.java | 85 SQLiteDatabase db = helper.getWritableDatabaseForTest(); in testFilterVolumeNames() 127 assertThat(queryValues(helper, "audio", "title")) in testFilterVolumeNames() 135 assertThat(queryValues(helper, "audio_genres", "name")) in testFilterVolumeNames() 144 assertThat(queryValues(helper, "audio_genres", "name")) in testFilterVolumeNames() 153 assertThat(queryValues(helper, "audio_genres", "name")) in testFilterVolumeNames() 157 helper.setFilterVolumeNames(ImmutableSet.of()); in testFilterVolumeNames() 208 assertThat(queryValues(helper, "audio", "title")) in testArtistsAndAlbumsIncludeOnlyMusic() 229 helper.beginTransaction(); in testTransactions() 231 helper.setTransactionSuccessful(); in testTransactions() 233 helper.endTransaction(); in testTransactions() [all …]
|
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/rollback/ |
H A D | AppDataRollbackHelperTest.java | 67 doReturn(true).when(helper).isUserCredentialLocked(eq(10)); in testSnapshotAppData() 68 doReturn(true).when(helper).isUserCredentialLocked(eq(11)); in testSnapshotAppData() 70 helper.snapshotAppData(5, info, new int[]{10, 11}); in testSnapshotAppData() 84 doReturn(false).when(helper).isUserCredentialLocked(eq(10)); in testSnapshotAppData() 85 doReturn(true).when(helper).isUserCredentialLocked(eq(11)); in testSnapshotAppData() 89 helper.snapshotAppData(7, info2, new int[]{10, 11}); in testSnapshotAppData() 155 doReturn(true).when(helper).isUserCredentialLocked(eq(10)); in testRestoreAppDataSnapshot_availableBackupForLockedUser() 179 doReturn(false).when(helper).isUserCredentialLocked(eq(10)); in testRestoreAppDataSnapshot_availableBackupForUnlockedUser() 202 helper.destroyAppDataSnapshot(5 /* rollbackId */, info, 10 /* userId */); in destroyAppData() 203 helper.destroyAppDataSnapshot(5 /* rollbackId */, info, 11 /* userId */); in destroyAppData() [all …]
|