/frameworks/libs/binary_translation/tests/ndk_program_tests/arm/ |
D | arm_test.cc | 67 int result; in TEST() local 73 : "=r"(result)::"r1"); in TEST() 74 EXPECT_EQ(result, -2); in TEST() 80 : "=r"(result)::"r1", "r2"); in TEST() 81 EXPECT_EQ(result, -2); in TEST() 86 : "=r"(result)::"r1"); in TEST() 87 EXPECT_EQ(result, -2); in TEST() 91 int result; in TEST() local 99 : "=r"(result), "=r"(flag)::"r1"); in TEST() 100 EXPECT_EQ(result, 0); in TEST() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | VisualVoicemailSmsParserTest.java | 28 WrappedMessageData result = VisualVoicemailSmsParser.parse("//VVM", in testParsing() local 31 assertEquals("STATUS", result.prefix); in testParsing() 32 assertEquals("R", result.fields.getString("st")); in testParsing() 33 assertEquals("0", result.fields.getString("rc")); in testParsing() 34 assertEquals("1", result.fields.getString("srv")); in testParsing() 35 assertEquals("1", result.fields.getString("dn")); in testParsing() 36 assertEquals("1", result.fields.getString("ipt")); in testParsing() 37 assertEquals("0", result.fields.getString("spt")); in testParsing() 38 assertEquals("eg@example.com", result.fields.getString("u")); in testParsing() 39 assertEquals("1", result.fields.getString("pw")); in testParsing() [all …]
|
/frameworks/native/libs/vr/libpdx/ |
D | serialization_tests.cpp | 86 MapType result; in MakeMap() local 88 result.emplace(i, i); in MakeMap() 90 return result; in MakeMap() 116 Payload result; in TEST() local 122 Serialize(value, &result); in TEST() 124 EXPECT_EQ(expected, result); in TEST() 125 result.Clear(); in TEST() 129 Serialize(value, &result); in TEST() 131 EXPECT_EQ(expected, result); in TEST() 132 result.Clear(); in TEST() [all …]
|
/frameworks/minikin/tests/unittest/ |
D | ScriptUtilsTest.cpp | 46 std::vector<Result> result; in splitByScript() local 48 result.emplace_back(range.getStart(), range.getEnd(), script); in splitByScript() 50 return result; in splitByScript() 59 auto result = splitByScript("abcde", 0, 5); in TEST() local 60 ASSERT_EQ(1u, result.size()); in TEST() 61 EXPECT_EQ(Result(0, 5, HB_SCRIPT_LATIN), result[0]); in TEST() 63 result = splitByScript("abcde", 0, 3); in TEST() 64 ASSERT_EQ(1u, result.size()); in TEST() 65 EXPECT_EQ(Result(0, 3, HB_SCRIPT_LATIN), result[0]); in TEST() 67 result = splitByScript("abcde", 2, 5); in TEST() [all …]
|
D | HyphenatorTest.cpp | 69 std::vector<HyphenationType> result; in TEST_P() local 70 hyphenator->hyphenate(word, &result); in TEST_P() 71 EXPECT_EQ((size_t)5, result.size()); in TEST_P() 72 EXPECT_EQ(HyphenationType::DONT_BREAK, result[0]); in TEST_P() 73 EXPECT_EQ(HyphenationType::DONT_BREAK, result[1]); in TEST_P() 74 EXPECT_EQ(HyphenationType::BREAK_AND_INSERT_HYPHEN, result[2]); in TEST_P() 75 EXPECT_EQ(HyphenationType::DONT_BREAK, result[3]); in TEST_P() 76 EXPECT_EQ(HyphenationType::DONT_BREAK, result[4]); in TEST_P() 83 std::vector<HyphenationType> result; in TEST_P() local 84 hyphenator->hyphenate(word, &result); in TEST_P() [all …]
|
/frameworks/wilhelm/tests/sandbox/ |
D | outputmix.c | 30 SLresult result; in main() local 31 result = slCreateEngine(&engineObject, 0, NULL, 0, NULL, NULL); in main() 32 assert(SL_RESULT_SUCCESS == result); in main() 35 result = (*engineObject)->Realize(engineObject, SL_BOOLEAN_FALSE); in main() 36 assert(SL_RESULT_SUCCESS == result); in main() 39 result = (*engineObject)->GetInterface(engineObject, SL_IID_ENGINE, &engineEngine); in main() 40 assert(SL_RESULT_SUCCESS == result); in main() 43 result = (*engineEngine)->QueryNumSupportedInterfaces(engineEngine, SL_OBJECTID_OUTPUTMIX, in main() 45 assert(SL_RESULT_SUCCESS == result); in main() 50 result = (*engineEngine)->QuerySupportedInterfaces(engineEngine, SL_OBJECTID_OUTPUTMIX, i, in main() [all …]
|
D | dim.c | 36 SLresult result; in main() local 40 result = slCreateEngine(&engineObject, 0, NULL, 0, NULL, NULL); in main() 41 assert(SL_RESULT_SUCCESS == result); in main() 43 result = (*engineObject)->Realize(engineObject, SL_BOOLEAN_FALSE); in main() 44 assert(SL_RESULT_SUCCESS == result); in main() 45 result = (*engineObject)->GetInterface(engineObject, SL_IID_ENGINE, &engineEngine); in main() 46 assert(SL_RESULT_SUCCESS == result); in main() 50 result = (*engineEngine)->CreateOutputMix(engineEngine, &outputMixObject, 0, NULL, NULL); in main() 51 assert(SL_RESULT_SUCCESS == result); in main() 55 result = (*outputMixObject)->GetInterface(outputMixObject, SL_IID_DYNAMICINTERFACEMANAGEMENT, in main() [all …]
|
D | object.c | 26 SLresult result; in main() local 31 result = slCreateEngine(&engineObject, 0, NULL, 0, NULL, NULL); in main() 32 assert(SL_RESULT_SUCCESS == result); in main() 33 result = (*engineObject)->Realize(engineObject, SL_BOOLEAN_FALSE); in main() 34 assert(SL_RESULT_SUCCESS == result); in main() 36 result = (*engineObject)->GetInterface(engineObject, SL_IID_ENGINE, &engineEngine); in main() 37 assert(SL_RESULT_SUCCESS == result); in main() 53 result = (*engineEngine)->QueryNumSupportedInterfaces(engineEngine, objectID, NULL); in main() 54 assert(SL_RESULT_PARAMETER_INVALID == result); in main() 56 result = (*engineEngine)->QueryNumSupportedInterfaces(engineEngine, objectID, in main() [all …]
|
D | multiplay.c | 63 static const char *result_to_string(SLresult result) in result_to_string() argument 66 if ( /* result >= 0 && */ result < sizeof(result_strings) / sizeof(result_strings[0])) in result_to_string() 67 return result_strings[result]; in result_to_string() 68 sprintf(buffer, "%d", (int) result); in result_to_string() 74 void check2(SLresult result, int line) in check2() argument 76 if (SL_RESULT_SUCCESS != result) { in check2() 77 fprintf(stderr, "error %s at line %d\n", result_to_string(result), line); in check2() 84 #define check(result) check2(result, __LINE__) argument 93 SLresult result; in prefetch_callback() local 98 result = (*caller)->GetFillLevel(caller, &level); in prefetch_callback() [all …]
|
/frameworks/native/libs/gui/ |
D | IGraphicBufferProducer.cpp | 100 status_t result = remote()->transact(REQUEST_BUFFER, data, &reply); in requestBuffer() local 101 if (result != NO_ERROR) { in requestBuffer() 102 return result; in requestBuffer() 107 result = reply.read(**buf); in requestBuffer() 108 if(result != NO_ERROR) { in requestBuffer() 110 return result; in requestBuffer() 113 result = reply.readInt32(); in requestBuffer() 114 return result; in requestBuffer() 123 status_t result = remote()->transact(REQUEST_BUFFERS, data, &reply); in requestBuffers() local 124 if (result != NO_ERROR) { in requestBuffers() [all …]
|
/frameworks/base/apct-tests/perftests/core/src/android/libcore/regression/ |
D | MathPerfTest.java | 50 double result = mDouble; in timeAbsD() local 53 result = Math.abs(mDouble); in timeAbsD() 59 float result = mFloat; in timeAbsF() local 62 result = Math.abs(mFloat); in timeAbsF() 68 int result = mInt; in timeAbsI() local 71 result = Math.abs(mInt); in timeAbsI() 77 long result = mLong; in timeAbsL() local 80 result = Math.abs(mLong); in timeAbsL() 86 double result = mDouble; in timeAcos() local 89 result = Math.acos(mDouble); in timeAcos() [all …]
|
/frameworks/compile/mclinker/unittests/ |
D | LEB128Test.cpp | 43 leb128::ByteType* result; in TEST_F() local 46 result = buffer; in TEST_F() 47 size = leb128::encode<uint32_t>(result, 2); in TEST_F() 49 ASSERT_EQ(result, buffer + 1); in TEST_F() 52 result = buffer; in TEST_F() 53 size = leb128::encode<uint32_t>(result, 127); in TEST_F() 55 ASSERT_EQ(result, buffer + 1); in TEST_F() 58 result = buffer; in TEST_F() 59 size = leb128::encode<uint32_t>(result, 128); in TEST_F() 62 ASSERT_EQ(result, buffer + 2); in TEST_F() [all …]
|
/frameworks/libs/binary_translation/intrinsics/riscv64_to_x86_64/include/berberis/intrinsics/ |
D | macro_assembler_bitmanip_impl.h | 29 void MacroAssembler<Assembler>::MacroClz(Register result, Register src) { in MacroClz() argument 30 Bsr<IntType>(result, src); in MacroClz() 31 Cmov<IntType>(Condition::kZero, result, {.disp = constants_pool::kBsrToClz<IntType>}); in MacroClz() 32 Xor<IntType>(result, sizeof(IntType) * CHAR_BIT - 1); in MacroClz() 37 void MacroAssembler<Assembler>::MacroCtz(Register result, Register src) { in MacroCtz() argument 38 Bsf<IntType>(result, src); in MacroCtz() 39 Cmov<IntType>(Condition::kZero, result, {.disp = constants_pool::kWidthInBits<IntType>}); in MacroCtz() 44 void MacroAssembler<Assembler>::MacroMax(Register result, Register src1, Register src2) { in MacroMax() argument 45 Mov<IntType>(result, src1); in MacroMax() 48 Cmov<IntType>(Condition::kLess, result, src2); in MacroMax() [all …]
|
/frameworks/base/cmds/idmap2/tests/ |
D | Idmap2BinaryTests.cpp | 90 auto result = ExecuteBinary({"idmap2", in TEST_F() local 97 ASSERT_TRUE((bool)result); in TEST_F() 98 ASSERT_EQ(result.status, EXIT_SUCCESS) << result.stderr_str; in TEST_F() 117 auto result = ExecuteBinary({"idmap2", in TEST_F() local 124 ASSERT_TRUE((bool)result); in TEST_F() 125 ASSERT_EQ(result.status, EXIT_SUCCESS) << result.stderr_str; in TEST_F() 128 result = ExecuteBinary({"idmap2", in TEST_F() 132 ASSERT_TRUE((bool)result); in TEST_F() 133 ASSERT_EQ(result.status, EXIT_SUCCESS) << result.stderr_str; in TEST_F() 135 ASSERT_NE(result.stdout_str.find(StringPrintf("0x%08x -> 0x%08x", R::target::integer::int1, in TEST_F() [all …]
|
/frameworks/wilhelm/tests/mimeUri/ |
D | slesTestPlayUri2.cpp | 29 void ExitOnError( SLresult result ) in ExitOnError() argument 31 if (SL_RESULT_SUCCESS != result) { in ExitOnError() 32 fprintf(stdout, "%u error code encountered, exiting\n", result); in ExitOnError() 65 SLresult result; in TestPlayUri() local 89 result = (*sl)->GetInterface(sl, SL_IID_ENGINE, (void*)&EngineItf); in TestPlayUri() 90 ExitOnError(result); in TestPlayUri() 108 result = (*EngineItf)->CreateOutputMix(EngineItf, &outputMix, 0, iidArray, required); in TestPlayUri() 109 ExitOnError(result); in TestPlayUri() 112 result = (*outputMix)->Realize(outputMix, SL_BOOLEAN_FALSE); in TestPlayUri() 113 ExitOnError(result); in TestPlayUri() [all …]
|
/frameworks/base/packages/WallpaperBackup/test/src/com/android/wallpaperbackup/ |
D | WallpaperEventLoggerTest.java | 83 BackupRestoreEventLogger.DataTypeResult result = getLogsForType(WALLPAPER_IMG_SYSTEM); in onSystemImgWallpaperBackedUp_logsSuccess() local 85 assertThat(result).isNotNull(); in onSystemImgWallpaperBackedUp_logsSuccess() 86 assertThat(result.getSuccessCount()).isEqualTo(1); in onSystemImgWallpaperBackedUp_logsSuccess() 94 BackupRestoreEventLogger.DataTypeResult result = getLogsForType(WALLPAPER_IMG_LOCK); in onLockImgWallpaperBackedUp_logsSuccess() local 96 assertThat(result).isNotNull(); in onLockImgWallpaperBackedUp_logsSuccess() 97 assertThat(result.getSuccessCount()).isEqualTo(1); in onLockImgWallpaperBackedUp_logsSuccess() 105 BackupRestoreEventLogger.DataTypeResult result = getLogsForType(WALLPAPER_LIVE_SYSTEM); in onSystemLiveWallpaperBackedUp_logsSuccess() local 107 assertThat(result).isNotNull(); in onSystemLiveWallpaperBackedUp_logsSuccess() 108 assertThat(result.getSuccessCount()).isEqualTo(1); in onSystemLiveWallpaperBackedUp_logsSuccess() 116 BackupRestoreEventLogger.DataTypeResult result = getLogsForType(WALLPAPER_LIVE_LOCK); in onLockLiveWallpaperBackedUp_logsSuccess() local [all …]
|
/frameworks/libs/binary_translation/intrinsics/common_to_x86/ |
D | intrinsics_float_test.cc | 148 uint32_t result = bit_cast<uint32_t, Float32>(bit_cast<Float32, uint32_t>(kPlusInfinity32) + in TEST() local 150 EXPECT_EQ(result, kPlusInfinity32); in TEST() 152 result = bit_cast<uint32_t, Float32>(bit_cast<Float32, uint32_t>(kMinusInfinity32) + in TEST() 154 EXPECT_EQ(result, kMinusInfinity32); in TEST() 156 result = bit_cast<uint32_t, Float32>(bit_cast<Float32, uint32_t>(kPlusInfinity32) + in TEST() 158 EXPECT_EQ(result, kDefaultNan32); in TEST() 160 result = bit_cast<uint32_t, Float32>(bit_cast<Float32, uint32_t>(kMinusInfinity32) + in TEST() 162 EXPECT_EQ(result, kDefaultNan32); in TEST() 167 uint64_t result = bit_cast<uint64_t, Float64>(bit_cast<Float64, uint64_t>(kPlusInfinity64) + in TEST() local 169 EXPECT_EQ(result, kPlusInfinity64); in TEST() [all …]
|
/frameworks/libs/binary_translation/tools/nogrod/ |
D | leb128_tests.cc | 39 int64_t result = 42; in TEST() local 41 ASSERT_EQ(1U, DecodeSleb128(array_0, sizeof(array_0), &result)); in TEST() 42 ASSERT_EQ(0, result); in TEST() 43 ASSERT_EQ(1U, DecodeSleb128(array_neg1, sizeof(array_neg1), &result)); in TEST() 44 ASSERT_EQ(-1, result); in TEST() 45 ASSERT_EQ(1U, DecodeSleb128(array_63, sizeof(array_63), &result)); in TEST() 46 ASSERT_EQ(63, result); in TEST() 47 ASSERT_EQ(2U, DecodeSleb128(array_64, sizeof(array_64), &result)); in TEST() 48 ASSERT_EQ(64, result); in TEST() 49 ASSERT_EQ(2U, DecodeSleb128(array_neg64, sizeof(array_neg64), &result)); in TEST() [all …]
|
D | byte_input_stream.cc | 42 uint16_t result; in ReadUint16() local 43 CHECK(offset_ + sizeof(result) <= size_); in ReadUint16() 44 memcpy(&result, buffer_ + offset_, sizeof(result)); in ReadUint16() 45 offset_ += sizeof(result); in ReadUint16() 47 return result; in ReadUint16() 51 uint32_t result = 0; in ReadUint24() local 53 memcpy(&result, buffer_ + offset_, 3); in ReadUint24() 56 return result; in ReadUint24() 60 uint32_t result; in ReadUint32() local 61 CHECK(offset_ + sizeof(result) <= size_); in ReadUint32() [all …]
|
/frameworks/native/services/surfaceflinger/TimeStats/timestatsproto/ |
D | TimeStatsHelper.cpp | 71 std::string result; in toString() local 75 StringAppendF(&result, "%dms=%d ", bucket, count); in toString() 77 result.back() = '\n'; in toString() 78 return result; in toString() 82 std::string result; in toString() local 83 StringAppendF(&result, "totalTimelineFrames = %d\n", totalFrames); in toString() 84 StringAppendF(&result, "jankyFrames = %d\n", totalJankyFrames); in toString() 85 StringAppendF(&result, "sfLongCpuJankyFrames = %d\n", totalSFLongCpu); in toString() 86 StringAppendF(&result, "sfLongGpuJankyFrames = %d\n", totalSFLongGpu); in toString() 87 StringAppendF(&result, "sfUnattributedJankyFrames = %d\n", totalSFUnattributed); in toString() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/scroll/ |
D | FakeSessionTest.java | 55 ScrollCaptureClient.CaptureResult result = getUnchecked(session.requestTile(0)); in testNonEmptyResult_hasImage() local 56 assertNotNull("result.image", result.image); in testNonEmptyResult_hasImage() 57 assertNotNull("result.image.getHardwareBuffer()", result.image.getHardwareBuffer()); in testNonEmptyResult_hasImage() 71 ScrollCaptureClient.CaptureResult result = getUnchecked(session.requestTile(-100)); in testEmptyResult_hasNullImage() local 72 assertNull("result.image", result.image); in testEmptyResult_hasNullImage() 87 ScrollCaptureClient.CaptureResult result = getUnchecked(session.requestTile(0)); in testCaptureAtZero() local 88 assertEquals("requested top", 0, result.requested.top); in testCaptureAtZero() 89 assertEquals("requested bottom", 10, result.requested.bottom); in testCaptureAtZero() 90 assertEquals("captured top", 0, result.captured.top); in testCaptureAtZero() 91 assertEquals("captured bottom", 10, result.captured.bottom); in testCaptureAtZero() [all …]
|
/frameworks/libs/binary_translation/intrinsics/common_to_x86/include/berberis/intrinsics/common_to_x86/ |
D | intrinsics_float.h | 32 Float32 result; \ 33 asm(#guest_name "ss %2,%0" : "=x"(result.value_) : "0"(v1.value_), "x"(v2.value_)); \ 34 return result; \ 43 Float64 result; \ 44 asm(#guest_name "sd %2,%0" : "=x"(result.value_) : "0"(v1.value_), "x"(v2.value_)); \ 45 return result; \ 61 bool result; variable 62 asm("ucomiss %1,%2\n seta %0" : "=q"(result) : "x"(v1.value_), "x"(v2.value_) : "cc"); 63 return result; 67 bool result; variable [all …]
|
/frameworks/libs/binary_translation/heavy_optimizer/riscv64/ |
D | call_intrinsic_tests.cc | 104 void CallOneArgumentIntrinsicUseIntegral(IntrinsicFunc func, T argument, uint64_t* result) { in CallOneArgumentIntrinsicUseIntegral() argument 116 builder.Gen<x86_64::MovqRegImm>(result_value_addr_reg, bit_cast<uintptr_t>(result)); in CallOneArgumentIntrinsicUseIntegral() 125 void CallOneArgumentIntrinsicUseRegister(IntrinsicFunc func, uint64_t argument, uint64_t* result) { in CallOneArgumentIntrinsicUseRegister() argument 140 builder.Gen<x86_64::MovqRegImm>(result_value_addr_reg, bit_cast<uintptr_t>(result)); in CallOneArgumentIntrinsicUseRegister() 149 uint64_t result = 0; in TEST() local 152 &result); in TEST() 153 EXPECT_EQ(result, 0xffff'ffff'cccc'eeffULL); in TEST() 155 result = 0; in TEST() 158 &result); in TEST() 159 EXPECT_EQ(result, 0x5ccc'eeffULL); in TEST() [all …]
|
/frameworks/av/media/libaaudio/src/binding/ |
D | AAudioBinderAdapter.cpp | 36 aaudio_handle_t result; in openStream() local 40 &result); in openStream() 42 result = AAudioConvert_androidToAAudioResult(statusTFromBinderStatus(status)); in openStream() 45 return {mServiceLifetimeId, result}; in openStream() 52 aaudio_result_t result; in closeStream() local 53 Status status = mDelegate->closeStream(streamHandleInfo.getHandle(), &result); in closeStream() 55 result = AAudioConvert_androidToAAudioResult(statusTFromBinderStatus(status)); in closeStream() 57 return result; in closeStream() 65 aaudio_result_t result; in getStreamDescription() local 69 &result); in getStreamDescription() [all …]
|
/frameworks/wilhelm/tests/examples/ |
D | slesTestSendToPresetReverb.cpp | 39 void ExitOnErrorFunc( SLresult result , int line) in ExitOnErrorFunc() argument 41 if (SL_RESULT_SUCCESS != result) { in ExitOnErrorFunc() 42 fprintf(stderr, "%u error code encountered at line %d, exiting\n", result, line); in ExitOnErrorFunc() 56 SLresult result; in prefetch_callback() local 58 result = (*caller)->GetFillLevel(caller, &level); in prefetch_callback() 59 ExitOnError(result); in prefetch_callback() 61 result = (*caller)->GetPrefetchStatus(caller, &status); in prefetch_callback() 62 ExitOnError(result); in prefetch_callback() 75 SLresult result; in TestSendToPresetReverb() local 106 result = (*sl)->GetInterface(sl, SL_IID_ENGINE, (void*)&EngineItf); in TestSendToPresetReverb() [all …]
|