/aosp12/frameworks/base/core/tests/coretests/src/android/text/method/ |
H A D | BackspaceTest.java | 64 mTextView.setSelection(state.mSelectionStart, state.mSelectionEnd); in backspace() 80 backspace(state, 0); in testCombiningEnclosingKeycaps() 85 backspace(state, 0); in testCombiningEnclosingKeycaps() 87 backspace(state, 0); in testCombiningEnclosingKeycaps() 92 backspace(state, 0); in testCombiningEnclosingKeycaps() 97 backspace(state, 0); in testCombiningEnclosingKeycaps() 99 backspace(state, 0); in testCombiningEnclosingKeycaps() 109 backspace(state, 0); in testVariationSelector() 113 backspace(state, 0); in testVariationSelector() 118 backspace(state, 0); in testVariationSelector() [all …]
|
H A D | ForwardDeleteTest.java | 62 mTextView.setSelection(state.mSelectionStart, state.mSelectionEnd); in forwardDelete() 79 forwardDelete(state, 0); in testCombiningEnclosingKeycaps() 80 state.assertEquals("|"); in testCombiningEnclosingKeycaps() 84 forwardDelete(state, 0); in testCombiningEnclosingKeycaps() 85 state.assertEquals("|"); in testCombiningEnclosingKeycaps() 89 forwardDelete(state, 0); in testCombiningEnclosingKeycaps() 90 state.assertEquals("|"); in testCombiningEnclosingKeycaps() 99 forwardDelete(state, 0); in testVariationSelector() 100 state.assertEquals("|"); in testVariationSelector() 103 forwardDelete(state, 0); in testVariationSelector() [all …]
|
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
H A D | PackageVerificationStateTest.java | 35 state.isVerificationComplete()); in testPackageVerificationState_OnlyRequiredVerifier_AllowedInstall() 40 state.isVerificationComplete()); in testPackageVerificationState_OnlyRequiredVerifier_AllowedInstall() 43 state.isInstallAllowed()); in testPackageVerificationState_OnlyRequiredVerifier_AllowedInstall() 59 state.isInstallAllowed()); in testPackageVerificationState_OnlyRequiredVerifier_DeniedInstall() 85 state.isInstallAllowed()); in testPackageVerificationState_RequiredAndOneSufficient_RequiredDeniedInstall() 111 state.isInstallAllowed()); in testPackageVerificationState_RequiredAndOneSufficient_SufficientDeniedInstall() 138 state.isInstallAllowed()); in testPackageVerificationState_RequiredAndTwoSufficient_OneSufficientIsEnough() 170 state.isInstallAllowed()); in testPackageVerificationState_RequiredAndTwoSufficient_SecondSufficientIsEnough() 193 state.isInstallAllowed()); in testPackageVerificationState_RequiredAndTwoSufficient_RequiredOverrides() 201 state.isInstallAllowed()); in testPackageVerificationState_RequiredAndTwoSufficient_RequiredOverrides() [all …]
|
/aosp12/bionic/tests/ |
H A D | string_test.cpp | 522 memcpy(state.ptr, state.ptr1, state.MAX_LEN); in TEST() 546 memcpy(state.ptr, state.ptr1, state.MAX_LEN); in TEST() 568 memcpy(state.ptr, state.ptr2, state.MAX_LEN + state.len[i]); in TEST() 576 memcpy(state.ptr + state.MAX_LEN - 1, state.ptr1, state.len[i]); in TEST() 580 strlcat(state.ptr2, state.ptr1, state.MAX_LEN + state.len[i]); in TEST() 601 memcpy(state.ptr, state.ptr1, state.MAX_LEN); in TEST() 604 memcpy(state.ptr + state.MAX_LEN, state.ptr2, state.MAX_LEN); in TEST() 607 memcpy(state.ptr + state.MAX_LEN, state.ptr1, state.MAX_LEN); in TEST() 689 memcpy(state.ptr, state.ptr1, state.MAX_LEN); in TEST() 726 memcpy(state.ptr, state.ptr1, state.MAX_LEN); in TEST() [all …]
|
/aosp12/hardware/interfaces/confirmationui/support/test/ |
H A D | android_cbor_test.cpp | 83 state = writeTest(state); in TEST() 96 state = writeTest(state); in TEST() 108 state = write(state, text(malformed)); in TEST() 116 state = write(state, text(malformed)); in TEST() 124 state = write(state, text(neat)); in TEST() 132 state = write(state, text(neat)); in TEST() 140 state = write(state, text(neat)); in TEST() 148 state = write(state, text(malformed)); in TEST() 156 state = write(state, text(malformed)); in TEST() 163 state = writeHeader(state, Type::NUMBER, 23); in TEST() [all …]
|
/aosp12/frameworks/native/services/vibratorservice/benchmarks/ |
H A D | VibratorHalControllerBenchmarks.cpp | 40 void TearDown(State& state) override { turnVibratorOff(state); } in TearDown() argument 93 for (auto _ : state) { 102 for (auto _ : state) { 108 for (auto _ : state) { 117 for (auto _ : state) { 126 for (auto _ : state) { 141 for (auto _ : state) { 162 for (auto _ : state) { 194 for (auto _ : state) { 206 for (auto _ : state) { [all …]
|
/aosp12/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/metrics/ |
H A D | ServiceStateStatsTest.java | 130 assertFalse(state.isEndc); in conclude_inService() 161 assertFalse(state.isEndc); in conclude_outOfService() 228 assertFalse(state.isEndc); in conclude_noSimCardEmergencyOnly() 261 assertFalse(state.isEndc); in conclude_noSimCardOutOfService() 291 assertFalse(state.isEndc); in conclude_longOnGoingServiceState() 301 assertFalse(state.isEndc); in conclude_longOnGoingServiceState() 328 assertFalse(state.isEndc); in update_sameRats() 363 assertFalse(state.isEndc); in update_differentDataRats() 373 assertFalse(state.isEndc); in update_differentDataRats() 509 assertTrue(state.isEndc); in update_endc() [all …]
|
H A D | SimSlotStateTest.java | 80 assertEquals(0, state.numActiveSlots); in testEmptySlots() 81 assertEquals(0, state.numActiveSims); in testEmptySlots() 82 assertEquals(0, state.numActiveEsims); in testEmptySlots() 94 assertEquals(0, state.numActiveSlots); in testSingleSim_nullSlot() 95 assertEquals(0, state.numActiveSims); in testSingleSim_nullSlot() 96 assertEquals(0, state.numActiveEsims); in testSingleSim_nullSlot() 109 assertEquals(0, state.numActiveSims); in testSingleSim_inactiveSlot() 123 assertEquals(0, state.numActiveSims); in testSingleSim_noSimCard() 138 assertEquals(1, state.numActiveSims); in testSingleSim_physicalSimCard() 153 assertEquals(0, state.numActiveSims); in testSingleSim_physicalSimCardInErrorState() [all …]
|
/aosp12/bionic/benchmarks/ |
H A D | string_benchmark.cpp | 38 state.SetBytesProcessed(uint64_t(state.iterations()) * uint64_t(nbytes)); in BM_string_memcmp() 56 state.SetBytesProcessed(uint64_t(state.iterations()) * uint64_t(nbytes)); in BM_string_memcpy() 74 state.SetBytesProcessed(uint64_t(state.iterations()) * uint64_t(nbytes)); in BM_string_memmove_non_overlapping() 89 state.SetBytesProcessed(uint64_t(state.iterations()) * uint64_t(nbytes)); in BM_string_memmove_overlap_dst_before_src() 104 state.SetBytesProcessed(uint64_t(state.iterations()) * uint64_t(nbytes)); in BM_string_memmove_overlap_src_before_dst() 119 state.SetBytesProcessed(uint64_t(state.iterations()) * uint64_t(nbytes)); in BM_string_memset() 135 state.SetBytesProcessed(uint64_t(state.iterations()) * uint64_t(nbytes)); in BM_string_strlen() 158 state.SetBytesProcessed(uint64_t(state.iterations()) * uint64_t(nbytes)); in BM_string_strcat_copy_only() 179 state.SetBytesProcessed(uint64_t(state.iterations()) * uint64_t(nbytes)); in BM_string_strcat_seek_only() 205 state.SetBytesProcessed(uint64_t(state.iterations()) * uint64_t(nbytes)); in BM_string_strcat_half_copy_half_seek() [all …]
|
H A D | math_benchmark.cpp | 27 state.SetLabel(names[state.range(0)]); in SetLabel() 71 SetLabel(state); in BM_math_isfinite_macro() 81 SetLabel(state); in BM_math_isfinite() 91 SetLabel(state); in BM_math_isinf_macro() 101 SetLabel(state); in BM_math_isinf() 111 SetLabel(state); in BM_math_isnan_macro() 121 SetLabel(state); in BM_math_isnan() 131 SetLabel(state); in BM_math_isnormal_macro() 141 SetLabel(state); in BM_math_isnormal() 183 SetLabel(state); in BM_math_fpclassify() [all …]
|
H A D | malloc_map_benchmark.cpp | 69 for (auto _ : state) { in MapBenchmark() 71 state.PauseTiming(); in MapBenchmark() 75 state.ResumeTiming(); in MapBenchmark() 82 state.PauseTiming(); in MapBenchmark() 87 state.ResumeTiming(); in MapBenchmark() 93 state.counters["RSS_MB"] = rss_mb; in MapBenchmark() 97 static void BM_std_map_8(benchmark::State& state) { in BM_std_map_8() argument 102 static void BM_std_map_16(benchmark::State& state) { in BM_std_map_16() argument 107 static void BM_std_map_32(benchmark::State& state) { in BM_std_map_32() argument 112 static void BM_std_map_64(benchmark::State& state) { in BM_std_map_64() argument [all …]
|
H A D | time_benchmark.cpp | 28 while (state.KeepRunning()) { in BM_time_clock_gettime() 37 while (state.KeepRunning()) { in BM_time_clock_gettime_syscall() 46 while (state.KeepRunning()) { in BM_time_clock_gettime_MONOTONIC_COARSE() 55 while (state.KeepRunning()) { in BM_time_clock_gettime_MONOTONIC_RAW() 64 while (state.KeepRunning()) { in BM_time_clock_gettime_REALTIME() 73 while (state.KeepRunning()) { in BM_time_clock_gettime_REALTIME_COARSE() 82 while (state.KeepRunning()) { in BM_time_clock_gettime_BOOTTIME() 91 while (state.KeepRunning()) { in BM_time_clock_getres() 100 while (state.KeepRunning()) { in BM_time_clock_getres_syscall() 109 while (state.KeepRunning()) { in BM_time_clock_getres_MONOTONIC_COARSE() [all …]
|
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tileimpl/ |
H A D | QSTileViewImplTest.kt | 67 state.state = Tile.STATE_UNAVAILABLE 79 state.state = Tile.STATE_INACTIVE 91 state.state = Tile.STATE_ACTIVE 102 state.state = Tile.STATE_INACTIVE 113 state.state = Tile.STATE_ACTIVE 124 state.state = Tile.STATE_UNAVAILABLE 137 state.state = Tile.STATE_INACTIVE 150 state.state = Tile.STATE_ACTIVE 243 state.state = Tile.STATE_UNAVAILABLE 249 state.state = Tile.STATE_INACTIVE [all …]
|
/aosp12/packages/apps/Dialer/java/com/android/incallui/contactgrid/ |
H A D | TopRow.java | 76 if (state.state() == DialerCallState.INCOMING in getInfo() 77 || state.state() == DialerCallState.CALL_WAITING) { in getInfo() 97 } else if (state.state() == DialerCallState.PULLING) { in getInfo() 99 } else if (state.state() == DialerCallState.DIALING in getInfo() 100 || state.state() == DialerCallState.CONNECTING) { in getInfo() 104 } else if (state.state() == DialerCallState.ACTIVE && state.isRemotelyHeld()) { in getInfo() 106 } else if (state.state() == DialerCallState.ACTIVE in getInfo() 109 } else if (state.state() == DialerCallState.CALL_PENDING in getInfo() 147 } else if (state.isWifi() && !TextUtils.isEmpty(state.connectionLabel())) { in getLabelForIncoming() 192 if (!TextUtils.isEmpty(state.connectionLabel()) && !state.isWifi()) { in getLabelForDialing() [all …]
|
/aosp12/bionic/libc/bionic/ |
H A D | grp_pwd.cpp | 85 state->group_.gr_name = state->group_name_buffer_; in init_group_state() 86 state->group_.gr_mem = state->group_members_; in init_group_state() 87 state->group_.gr_mem[0] = state->group_.gr_name; in init_group_state() 98 state->passwd_.pw_name = state->name_buffer_; in init_passwd_state() 99 state->passwd_.pw_dir = state->dir_buffer_; in init_passwd_state() 100 state->passwd_.pw_shell = state->sh_buffer_; in init_passwd_state() 112 snprintf(state->dir_buffer_, sizeof(state->dir_buffer_), "/"); in android_iinfo_to_passwd() 637 if (state) { in setpwent() 693 return app_id_to_passwd(state->getpwent_idx, state); in getpwent() 774 if (state) { in setgrent() [all …]
|
/aosp12/frameworks/base/libs/input/ |
H A D | SpriteController.cpp | 128 update.state.surfaceWidth = update.state.icon.width(); in doUpdateSprites() 129 update.state.surfaceHeight = update.state.icon.height(); in doUpdateSprites() 133 update.state.surfaceWidth, update.state.surfaceHeight); in doUpdateSprites() 171 t.setLayerStack(update.state.surfaceControl, update.state.displayId); in doUpdateSprites() 183 if ((update.state.dirty & DIRTY_BITMAP) && update.state.surfaceDrawn) { in doUpdateSprites() 188 if (update.state.surfaceControl != NULL && !update.state.surfaceDrawn in doUpdateSprites() 224 update.state.positionX - update.state.icon.hotSpotX, in doUpdateSprites() 225 update.state.positionY - update.state.icon.hotSpotY); in doUpdateSprites() 290 update.state.surfaceWidth, update.state.surfaceHeight, in doUpdateSprites() 291 update.state.surfaceDrawn, update.state.surfaceVisible); in doUpdateSprites() [all …]
|
/aosp12/frameworks/base/cmds/incident_helper/tests/ |
H A D | CpuFreqParser_test.cpp | 64 state = cpu0->add_times(); in TEST_F() 67 state = cpu0->add_times(); in TEST_F() 70 state = cpu0->add_times(); in TEST_F() 76 state = cpu1->add_times(); in TEST_F() 79 state = cpu1->add_times(); in TEST_F() 82 state = cpu1->add_times(); in TEST_F() 88 state = cpu2->add_times(); in TEST_F() 91 state = cpu2->add_times(); in TEST_F() 94 state = cpu2->add_times(); in TEST_F() 97 state = cpu2->add_times(); in TEST_F() [all …]
|
/aosp12/frameworks/native/services/surfaceflinger/tests/unittests/ |
H A D | SurfaceFlinger_SetDisplayStateTest.cpp | 38 DisplayState state; in TEST_F() local 69 DisplayState state; in TEST_F() local 70 state.what = 0; in TEST_F() 102 DisplayState state; in TEST_F() local 139 DisplayState state; in TEST_F() local 173 DisplayState state; in TEST_F() local 207 DisplayState state; in TEST_F() local 241 DisplayState state; in TEST_F() local 244 state.flags = 1u; in TEST_F() 275 DisplayState state; in TEST_F() local [all …]
|
/aosp12/frameworks/base/core/java/android/text/method/ |
H A D | MetaKeyKeyListener.java | 445 return state; in resetLockedMeta() 522 state = (state & ~META_SHIFT_MASK) | META_SHIFT_ON | META_CAP_USED; in adjustMetaAfterKeypress() 528 state = (state & ~META_ALT_MASK) | META_ALT_ON | META_ALT_USED; in adjustMetaAfterKeypress() 534 state = (state & ~META_SYM_MASK) | META_SYM_ON | META_SYM_USED; in adjustMetaAfterKeypress() 538 return state; in adjustMetaAfterKeypress() 560 return state; in handleKeyDown() 568 state = (state &~ mask) | what | locked; in press() 576 return state; in press() 598 return state; in handleKeyUp() 616 return state; in release() [all …]
|
/aosp12/system/tools/xsdc/src/com/android/xsdc/ |
H A D | XsdHandler.java | 307 state.finalValue, state.nullability); in makeElement() 336 state.finalValue, state.nullability); in makeAttribute() 356 state.deprecated, state.finalValue, state.nullability); in makeAttributeGroup() 373 state.finalValue, state.nullability); in makeGroup() 453 return setDeprecatedAndFinal(content, state.deprecated, state.finalValue, in makeComplexContent() 501 elements, group), state.deprecated, state.finalValue, state.nullability); in makeGeneralRestriction() 549 return setDeprecatedAndFinal(type, state.deprecated, state.finalValue, state.nullability); in makeSimpleType() 566 state.finalValue, state.nullability); in makeSimpleTypeList() 582 state.finalValue, state.nullability); in makeSimpleTypeUnion() 649 state.finalValue, state.nullability); in makeEnumeration() [all …]
|
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/power/ |
H A D | PowerUITest.java | 578 state.mBucket = -1; in testShouldShowStandardWarning() 604 state.mBucket = -1; in testShouldShowStandardWarning() 613 state.mBucket = 0; in testShouldShowStandardWarning() 616 state.mBucket = 0; in testShouldShowStandardWarning() 622 state.mBucket = 0; in testShouldShowStandardWarning() 634 state.mBucket = 1; in testShouldShowStandardWarning() 659 state.mBucket = 0; in testShouldDismissStandardWarning() 661 state.mBucket = 1; in testShouldDismissStandardWarning() 668 state.mBucket = 0; in testShouldDismissStandardWarning() 674 state.mBucket = 0; in testShouldDismissStandardWarning() [all …]
|
/aosp12/frameworks/rs/ |
H A D | rsType.cpp | 82 mHal.state.lodCount = rsMax(mHal.state.lodCount, l2z); in compute() 96 mHal.state.lodDimX = new uint32_t[mHal.state.lodCount]; in compute() 97 mHal.state.lodDimY = new uint32_t[mHal.state.lodCount]; in compute() 98 mHal.state.lodDimZ = new uint32_t[mHal.state.lodCount]; in compute() 126 mHal.state.lodDimX[1] = mHal.state.lodDimX[0] / 2; in compute() 127 mHal.state.lodDimY[1] = mHal.state.lodDimY[0] / 2; in compute() 128 mHal.state.lodDimX[2] = mHal.state.lodDimX[0] / 2; in compute() 129 mHal.state.lodDimY[2] = mHal.state.lodDimY[0] / 2; in compute() 130 mCellCount += mHal.state.lodDimX[0] * mHal.state.lodDimY[0]; in compute() 131 mCellCount += mHal.state.lodDimX[1] * mHal.state.lodDimY[1]; in compute() [all …]
|
H A D | rsProgram.cpp | 48 mHal.state.textures = new Allocation*[mHal.state.texturesCount]; in Program() 49 mHal.state.samplers = new Sampler*[mHal.state.texturesCount]; in Program() 50 mHal.state.textureTargets = new RsTextureTarget[mHal.state.texturesCount]; in Program() 51 mHal.state.inputElements = new Element*[mHal.state.inputElementsCount]; in Program() 52 mHal.state.constantTypes = new Type*[mHal.state.constantsCount]; in Program() 53 mHal.state.constants = new Allocation*[mHal.state.constantsCount]; in Program() 96 delete[] mHal.state.textures; in ~Program() 97 delete[] mHal.state.samplers; in ~Program() 101 delete[] mHal.state.constants; in ~Program() 104 mHal.state.texturesCount = 0; in ~Program() [all …]
|
/aosp12/bootable/recovery/updater/ |
H A D | install.cpp | 87 if (!ReadArgs(state, argv, &args)) { in UIPrintFn() 92 state->updater->UiPrint(buffer); in UIPrintFn() 111 if (!ReadArgs(state, argv, &args)) { in PackageExtractFileFn() 162 if (!ReadArgs(state, argv, &args)) { in PackageExtractFileFn() 294 if (!ReadArgs(state, argv, &args)) { in MountFn() 322 auto updater = state->updater; in MountFn() 340 if (!ReadArgs(state, argv, &args)) { in IsMountedFn() 362 if (!ReadArgs(state, argv, &args)) { in UnmountFn() 371 auto updater = state->updater; in UnmountFn() 399 if (!ReadArgs(state, argv, &args)) { in FormatFn() [all …]
|
/aosp12/frameworks/av/media/libmediatranscoding/transcoder/benchmark/ |
H A D | MediaTranscoderBenchmark.cpp | 135 state.SkipWithError("Unable to open source file"); in TranscodeMediaFile() 139 state.SkipWithError("Unable to open destination file"); in TranscodeMediaFile() 143 for (auto _ : state) { in TranscodeMediaFile() 206 state.SkipWithError("Unable to configure track"); in TranscodeMediaFile() 213 state.SkipWithError("Unable to start transcoder"); in TranscodeMediaFile() 219 state.SkipWithError("Transcoder timed out"); in TranscodeMediaFile() 223 state.SkipWithError("Transcoder error when running"); in TranscodeMediaFile() 229 state.SetLabel(srcFileName + "," + in TranscodeMediaFile() 254 TranscodeMediaFile(state, srcFileName, dstFileName, in TranscodeMediaFile() 300 static void BM_TranscodeAvc2AvcAV2AV720P(benchmark::State& state) { in BM_TranscodeAvc2AvcAV2AV720P() argument [all …]
|