Home
last modified time | relevance | path

Searched refs:result (Results 1 – 25 of 2635) sorted by relevance

12345678910>>...106

/frameworks/native/libs/vr/libpdx/
Dserialization_tests.cpp86 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/
DHyphenatorTest.cpp51 std::vector<HyphenationType> result; in TEST() local
52 hyphenator->hyphenate(word, &result); in TEST()
53 EXPECT_EQ((size_t)5, result.size()); in TEST()
54 EXPECT_EQ(HyphenationType::DONT_BREAK, result[0]); in TEST()
55 EXPECT_EQ(HyphenationType::DONT_BREAK, result[1]); in TEST()
56 EXPECT_EQ(HyphenationType::BREAK_AND_INSERT_HYPHEN, result[2]); in TEST()
57 EXPECT_EQ(HyphenationType::DONT_BREAK, result[3]); in TEST()
58 EXPECT_EQ(HyphenationType::DONT_BREAK, result[4]); in TEST()
65 std::vector<HyphenationType> result; in TEST() local
66 hyphenator->hyphenate(word, &result); in TEST()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DVisualVoicemailSmsParserTest.java28 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 …]
DSimulatedCommands.java210 public void getIccCardStatus(Message result) { in getIccCardStatus() argument
211 SimulatedCommandsVerifier.getInstance().getIccCardStatus(result); in getIccCardStatus()
213 resultSuccess(result, mIccCardStatus); in getIccCardStatus()
215 resultFail(result, null, new RuntimeException("IccCardStatus not set")); in getIccCardStatus()
224 public void getIccSlotsStatus(Message result) { in getIccSlotsStatus() argument
225 SimulatedCommandsVerifier.getInstance().getIccSlotsStatus(result); in getIccSlotsStatus()
227 resultSuccess(result, mIccSlotStatus); in getIccSlotsStatus()
229 resultFail(result, null, in getIccSlotsStatus()
235 public void setLogicalToPhysicalSlotMapping(int[] physicalSlots, Message result) { in setLogicalToPhysicalSlotMapping() argument
236 unimplemented(result); in setLogicalToPhysicalSlotMapping()
[all …]
/frameworks/wilhelm/tests/sandbox/
Doutputmix.c30 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 …]
Ddim.c36 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 …]
Dobject.c26 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 …]
Dreverb.c192 SLresult result; in prefetch_callback() local
195 result = (*caller)->GetFillLevel(caller, &level); in prefetch_callback()
196 assert(SL_RESULT_SUCCESS == result); in prefetch_callback()
198 result = (*caller)->GetPrefetchStatus(caller, &status); in prefetch_callback()
199 assert(SL_RESULT_SUCCESS == result); in prefetch_callback()
224 SLresult result; in main() local
311 result = slCreateEngine(&engineObject, 0, NULL, 0, NULL, NULL); in main()
312 assert(SL_RESULT_SUCCESS == result); in main()
313 result = (*engineObject)->Realize(engineObject, SL_BOOLEAN_FALSE); in main()
314 assert(SL_RESULT_SUCCESS == result); in main()
[all …]
Dmultiplay.c63 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 …]
Dxaplay.c97 XAresult result; in prefetchStatusCallback() local
98 result = (*caller)->GetFillLevel(caller, &level); in prefetchStatusCallback()
99 assert(XA_RESULT_SUCCESS == result); in prefetchStatusCallback()
101 result = (*caller)->GetPrefetchStatus(caller, &status); in prefetchStatusCallback()
102 assert(XA_RESULT_SUCCESS == result); in prefetchStatusCallback()
135 XAresult result; in playEventCallback() local
137 result = (*caller)->GetPosition(caller, &position); in playEventCallback()
138 assert(XA_RESULT_SUCCESS == result); in playEventCallback()
204 XAresult result; in bufferQueueCallback() local
207 result = (*caller)->Enqueue(caller, NULL, &packets[curPacket], in bufferQueueCallback()
[all …]
/frameworks/native/libs/vr/libdisplay/
Dvsync_service.cpp15 status_t result = data.readInt64(&vsync_timestamp); in onTransact() local
16 if (result != OK) { in onTransact()
17 ALOGE("onVsync failed to readInt64: %d", result); in onTransact()
18 return result; in onTransact()
37 status_t result = data.writeInterfaceToken( in onVsync() local
39 if (result != OK) { in onVsync()
40 ALOGE("onVsync failed to writeInterfaceToken: %d", result); in onVsync()
41 return result; in onVsync()
43 result = data.writeInt64(vsync_timestamp); in onVsync()
44 if (result != OK) { in onVsync()
[all …]
/frameworks/base/cmds/idmap2/tests/
DIdmap2BinaryTests.cpp88 auto result = ExecuteBinary({"idmap2", in TEST_F() local
94 ASSERT_THAT(result, NotNull()); in TEST_F()
95 ASSERT_EQ(result->status, EXIT_SUCCESS) << result->stderr; in TEST_F()
114 auto result = ExecuteBinary({"idmap2", in TEST_F() local
120 ASSERT_THAT(result, NotNull()); in TEST_F()
121 ASSERT_EQ(result->status, EXIT_SUCCESS) << result->stderr; in TEST_F()
124 result = ExecuteBinary({"idmap2", in TEST_F()
128 ASSERT_THAT(result, NotNull()); in TEST_F()
129 ASSERT_EQ(result->status, EXIT_SUCCESS) << result->stderr; in TEST_F()
130 ASSERT_NE(result->stdout.find("0x7f010000 -> 0x7f010000 integer/int1"), std::string::npos); in TEST_F()
[all …]
/frameworks/compile/mclinker/unittests/
DLEB128Test.cpp43 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/native/libs/gui/
DISurfaceComposer.cpp127 status_t result = remote()->transact(BnSurfaceComposer::CAPTURE_SCREEN, data, &reply); in captureScreen() local
128 if (result != NO_ERROR) { in captureScreen()
129 ALOGE("captureScreen failed to transact: %d", result); in captureScreen()
130 return result; in captureScreen()
132 result = reply.readInt32(); in captureScreen()
133 if (result != NO_ERROR) { in captureScreen()
134 ALOGE("captureScreen failed to readInt32: %d", result); in captureScreen()
135 return result; in captureScreen()
142 return result; in captureScreen()
150 status_t result = remote()->transact(BnSurfaceComposer::CAPTURE_SCREEN_BY_ID, data, &reply); in captureScreen() local
[all …]
DIGraphicBufferProducer.cpp92 status_t result =remote()->transact(REQUEST_BUFFER, data, &reply); in requestBuffer() local
93 if (result != NO_ERROR) { in requestBuffer()
94 return result; in requestBuffer()
99 result = reply.read(**buf); in requestBuffer()
100 if(result != NO_ERROR) { in requestBuffer()
102 return result; in requestBuffer()
105 result = reply.readInt32(); in requestBuffer()
106 return result; in requestBuffer()
114 status_t result = remote()->transact(SET_MAX_DEQUEUED_BUFFER_COUNT, in setMaxDequeuedBufferCount() local
116 if (result != NO_ERROR) { in setMaxDequeuedBufferCount()
[all …]
/frameworks/wilhelm/tests/mimeUri/
DslesTestPlayUri2.cpp29 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 …]
DslesTestPlayStreamType.cpp36 void ExitOnErrorFunc( SLresult result , int line) in ExitOnErrorFunc() argument
38 if (SL_RESULT_SUCCESS != result) { in ExitOnErrorFunc()
39 fprintf(stdout, "%u error code encountered at line %d, exiting\n", result, line); in ExitOnErrorFunc()
50 SLresult result; in TestStreamTypeConfiguration() local
76 result = (*sl)->GetInterface(sl, SL_IID_ENGINE, (void*)&EngineItf); in TestStreamTypeConfiguration()
77 ExitOnError(result); in TestStreamTypeConfiguration()
89 result = (*EngineItf)->CreateOutputMix(EngineItf, &outputMix, 0, iidArray, required); in TestStreamTypeConfiguration()
90 ExitOnError(result); in TestStreamTypeConfiguration()
93 result = (*outputMix)->Realize(outputMix, SL_BOOLEAN_FALSE); in TestStreamTypeConfiguration()
94 ExitOnError(result); in TestStreamTypeConfiguration()
[all …]
/frameworks/base/packages/Tethering/tests/unit/src/com/android/networkstack/tethering/
DTetheringServiceTest.java122 void runTetheringCall(TestTetheringResult result) throws Exception; in runTetheringCall() argument
158 private void runTether(final TestTetheringResult result) throws Exception { in runTether() argument
160 mTetheringConnector.tether(TEST_IFACE_NAME, TEST_CALLER_PKG, TEST_ATTRIBUTION_TAG, result); in runTether()
163 result.assertResult(TETHER_ERROR_NO_ERROR); in runTether()
168 runAsNoPermission((result) -> { in testTether() argument
170 result); in testTether()
172 result.assertResult(TETHER_ERROR_NO_CHANGE_TETHERING_PERMISSION); in testTether()
176 runAsTetherPrivileged((result) -> { in testTether() argument
177 runTether(result); in testTether()
181 runAsWriteSettings((result) -> { in testTether() argument
[all …]
/frameworks/wilhelm/tests/examples/
DslesTestSendToPresetReverb.cpp39 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 …]
DslesTestEqFdPath.cpp38 void ExitOnErrorFunc( SLresult result , int line) in ExitOnErrorFunc() argument
40 if (SL_RESULT_SUCCESS != result) { in ExitOnErrorFunc()
41 fprintf(stderr, "%u error code encountered at line %d, exiting\n", result, line); in ExitOnErrorFunc()
57 SLresult result; in TestEQPathFromFD() local
85 result = (*sl)->GetInterface(sl, SL_IID_ENGINE, (void*)&EngineItf); in TestEQPathFromFD()
86 ExitOnError(result); in TestEQPathFromFD()
98 result = (*EngineItf)->CreateOutputMix(EngineItf, &outputMix, 1, iidArray, required); in TestEQPathFromFD()
99 ExitOnError(result); in TestEQPathFromFD()
102 result = (*outputMix)->Realize(outputMix, SL_BOOLEAN_FALSE); in TestEQPathFromFD()
103 ExitOnError(result); in TestEQPathFromFD()
[all …]
/frameworks/wilhelm/tests/listening/
DslesTest_playMuteSolo.cpp43 void ExitOnErrorFunc( SLresult result , int line) in ExitOnErrorFunc() argument
45 if (SL_RESULT_SUCCESS != result) { in ExitOnErrorFunc()
46 fprintf(stdout, "%u error code encountered at line %d, exiting\n", result, line); in ExitOnErrorFunc()
72 SLresult result; in prefetch_callback() local
75 result = (*caller)->GetFillLevel(caller, &level); in prefetch_callback()
76 assert(SL_RESULT_SUCCESS == result); in prefetch_callback()
78 result = (*caller)->GetPrefetchStatus(caller, &status); in prefetch_callback()
79 assert(SL_RESULT_SUCCESS == result); in prefetch_callback()
165 SLresult result; in TestPlayUri() local
189 result = (*sl)->GetInterface(sl, SL_IID_ENGINE, (void*)&EngineItf); in TestPlayUri()
[all …]
/frameworks/base/cmds/bootanimation/
Daudioplay.cpp97 SLresult result; in createEngine() local
100 result = slCreateEngine(&engineObject, 0, nullptr, 0, nullptr, nullptr); in createEngine()
101 if (result != SL_RESULT_SUCCESS) { in createEngine()
102 ALOGE("slCreateEngine failed with result %d", result); in createEngine()
105 (void)result; in createEngine()
108 result = (*engineObject)->Realize(engineObject, SL_BOOLEAN_FALSE); in createEngine()
109 if (result != SL_RESULT_SUCCESS) { in createEngine()
110 ALOGE("sl engine Realize failed with result %d", result); in createEngine()
113 (void)result; in createEngine()
116 result = (*engineObject)->GetInterface(engineObject, SL_IID_ENGINE, &engineEngine); in createEngine()
[all …]
/frameworks/native/libs/ui/
DRect.cpp84 const Rect result(left + rhs.x, top + rhs.y, right + rhs.x, bottom + rhs.y); in operator +() local
85 return result; in operator +()
89 const Rect result(left - rhs.x, top - rhs.y, right - rhs.x, bottom - rhs.y); in operator -() local
90 return result; in operator -()
93 bool Rect::intersect(const Rect& with, Rect* result) const { in intersect()
94 result->left = max(left, with.left); in intersect()
95 result->top = max(top, with.top); in intersect()
96 result->right = min(right, with.right); in intersect()
97 result->bottom = min(bottom, with.bottom); in intersect()
98 return !(result->isEmpty()); in intersect()
[all …]
/frameworks/av/services/oboeservice/
DAAudioServiceStreamBase.cpp67 std::stringstream result; in dump() local
69 result << " 0x" << std::setfill('0') << std::setw(8) << std::hex << mHandle in dump()
71 result << std::setw(6) << mMmapClient.clientUid; in dump()
72 result << std::setw(7) << mClientHandle; in dump()
73 result << std::setw(4) << (isRunning() ? "yes" : " no"); in dump()
74 result << std::setw(6) << getState(); in dump()
75 result << std::setw(7) << getFormat(); in dump()
76 result << std::setw(6) << mFramesPerBurst; in dump()
77 result << std::setw(5) << getSamplesPerFrame(); in dump()
78 result << std::setw(9) << getBufferCapacity(); in dump()
[all …]
/frameworks/base/core/java/android/util/
DDebugUtils.java135 float result = number; in printSizeValue() local
137 if (result > 900) { in printSizeValue()
139 result = result / 1024; in printSizeValue()
141 if (result > 900) { in printSizeValue()
143 result = result / 1024; in printSizeValue()
145 if (result > 900) { in printSizeValue()
147 result = result / 1024; in printSizeValue()
149 if (result > 900) { in printSizeValue()
151 result = result / 1024; in printSizeValue()
153 if (result > 900) { in printSizeValue()
[all …]

12345678910>>...106