Home
last modified time | relevance | path

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

12345678910>>...95

/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/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DVisualVoicemailSmsParserTest.java26 WrappedMessageData result = VisualVoicemailSmsParser.parse("//VVM", in testParsing() local
29 assertEquals("STATUS", result.prefix); in testParsing()
30 assertEquals("R", result.fields.getString("st")); in testParsing()
31 assertEquals("0", result.fields.getString("rc")); in testParsing()
32 assertEquals("1", result.fields.getString("srv")); in testParsing()
33 assertEquals("1", result.fields.getString("dn")); in testParsing()
34 assertEquals("1", result.fields.getString("ipt")); in testParsing()
35 assertEquals("0", result.fields.getString("spt")); in testParsing()
36 assertEquals("eg@example.com", result.fields.getString("u")); in testParsing()
37 assertEquals("1", result.fields.getString("pw")); in testParsing()
[all …]
/frameworks/minikin/tests/unittest/
DHyphenatorTest.cpp56 std::vector<HyphenationType> result; in TEST_F() local
57 hyphenator->hyphenate(&result, word, NELEM(word), usLocale); in TEST_F()
58 EXPECT_EQ((size_t) 5, result.size()); in TEST_F()
59 EXPECT_EQ(HyphenationType::DONT_BREAK, result[0]); in TEST_F()
60 EXPECT_EQ(HyphenationType::DONT_BREAK, result[1]); in TEST_F()
61 EXPECT_EQ(HyphenationType::BREAK_AND_INSERT_HYPHEN, result[2]); in TEST_F()
62 EXPECT_EQ(HyphenationType::DONT_BREAK, result[3]); in TEST_F()
63 EXPECT_EQ(HyphenationType::DONT_BREAK, result[4]); in TEST_F()
70 std::vector<HyphenationType> result; in TEST_F() local
71 hyphenator->hyphenate(&result, word, NELEM(word), catalanLocale); in TEST_F()
[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 …]
Dengine.c27 SLresult result; in main() local
29 result = slQueryNumSupportedEngineInterfaces(&numSupportedInterfaces); in main()
30 assert(SL_RESULT_SUCCESS == result); in main()
31 result = slQueryNumSupportedEngineInterfaces(NULL); in main()
32 assert(SL_RESULT_PARAMETER_INVALID == result); in main()
45 result = slQuerySupportedEngineInterfaces(index, &interfaceID); in main()
47 assert(SL_RESULT_SUCCESS == result); in main()
53 assert(SL_RESULT_PARAMETER_INVALID == result); in main()
55 result = slQuerySupportedEngineInterfaces(index, NULL); in main()
56 assert(SL_RESULT_PARAMETER_INVALID == result); in main()
[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/
DIGraphicBufferProducer.cpp83 status_t result =remote()->transact(REQUEST_BUFFER, data, &reply); in requestBuffer() local
84 if (result != NO_ERROR) { in requestBuffer()
85 return result; in requestBuffer()
90 result = reply.read(**buf); in requestBuffer()
91 if(result != NO_ERROR) { in requestBuffer()
93 return result; in requestBuffer()
96 result = reply.readInt32(); in requestBuffer()
97 return result; in requestBuffer()
105 status_t result = remote()->transact(SET_MAX_DEQUEUED_BUFFER_COUNT, in setMaxDequeuedBufferCount() local
107 if (result != NO_ERROR) { in setMaxDequeuedBufferCount()
[all …]
DISurfaceComposer.cpp150 int32_t result = 0; in authenticateSurfaceTexture() local
151 err = reply.readInt32(&result); in authenticateSurfaceTexture()
157 return result != 0; in authenticateSurfaceTexture()
182 int32_t result = 0; in getSupportedFrameTimestamps() local
183 err = reply.readInt32(&result); in getSupportedFrameTimestamps()
187 if (result != NO_ERROR) { in getSupportedFrameTimestamps()
188 return result; in getSupportedFrameTimestamps()
207 sp<IDisplayEventConnection> result; in createDisplayEventConnection() local
211 return result; in createDisplayEventConnection()
220 return result; in createDisplayEventConnection()
[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/cmds/bootanimation/
Daudioplay.cpp92 SLresult result; in createEngine() local
95 result = slCreateEngine(&engineObject, 0, NULL, 0, NULL, NULL); in createEngine()
96 if (result != SL_RESULT_SUCCESS) { in createEngine()
97 ALOGE("slCreateEngine failed with result %d", result); in createEngine()
100 (void)result; in createEngine()
103 result = (*engineObject)->Realize(engineObject, SL_BOOLEAN_FALSE); in createEngine()
104 if (result != SL_RESULT_SUCCESS) { in createEngine()
105 ALOGE("sl engine Realize failed with result %d", result); in createEngine()
108 (void)result; in createEngine()
111 result = (*engineObject)->GetInterface(engineObject, SL_IID_ENGINE, &engineEngine); in createEngine()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/
DSimulatedCommands.java168 public void getIccCardStatus(Message result) { in getIccCardStatus() argument
170 resultSuccess(result, mIccCardStatus); in getIccCardStatus()
172 resultFail(result, null, new RuntimeException("IccCardStatus not set")); in getIccCardStatus()
177 public void supplyIccPin(String pin, Message result) { in supplyIccPin() argument
183 resultFail(result, null, ex); in supplyIccPin()
193 resultSuccess(result, null); in supplyIccPin()
198 if (result != null) { in supplyIccPin()
210 resultFail(result, null, ex); in supplyIccPin()
215 public void supplyIccPuk(String puk, String newPin, Message result) { in supplyIccPuk() argument
221 resultFail(result, null, ex); in supplyIccPuk()
[all …]
/frameworks/layoutlib/bridge/src/libcore/icu/
DICU_Delegate.java184 /*package*/ static boolean initLocaleDataNative(String locale, LocaleData result) { in initLocaleDataNative() argument
187 result.firstDayOfWeek = 1; in initLocaleDataNative()
188 result.minimalDaysInFirstWeek = 1; in initLocaleDataNative()
191 result.amPm = new String[] { "AM", "PM" }; in initLocaleDataNative()
192 result.eras = new String[] { "BC", "AD" }; in initLocaleDataNative()
194 result.longMonthNames = new String[] { "January", "February", "March", "April", "May", in initLocaleDataNative()
196 result.shortMonthNames = new String[] { "Jan", "Feb", "Mar", "Apr", "May", in initLocaleDataNative()
198 result.longStandAloneMonthNames = result.longMonthNames; in initLocaleDataNative()
199 result.shortStandAloneMonthNames = result.shortMonthNames; in initLocaleDataNative()
203 result.longWeekdayNames = new String[] { in initLocaleDataNative()
[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 …]
DslesTestPlayFdPath.cpp40 void ExitOnErrorFunc( SLresult result , int line) in ExitOnErrorFunc() argument
42 if (SL_RESULT_SUCCESS != result) { in ExitOnErrorFunc()
43 fprintf(stdout, "%u error code encountered at line %d, exiting\n", result, line); in ExitOnErrorFunc()
55 SLresult result; in PrefetchEventCallback() local
56 result = (*caller)->GetFillLevel(caller, &level); in PrefetchEventCallback()
57 ExitOnError(result); in PrefetchEventCallback()
59 result = (*caller)->GetPrefetchStatus(caller, &status); in PrefetchEventCallback()
60 ExitOnError(result); in PrefetchEventCallback()
73 SLresult result; in TestPlayPathFromFD() local
96 result = (*sl)->GetInterface(sl, SL_IID_ENGINE, (void*)&EngineItf); in TestPlayPathFromFD()
[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/native/libs/ui/
DRect.cpp76 const Rect result(left + rhs.x, top + rhs.y, right + rhs.x, bottom + rhs.y); in operator +() local
77 return result; in operator +()
81 const Rect result(left - rhs.x, top - rhs.y, right - rhs.x, bottom - rhs.y); in operator -() local
82 return result; in operator -()
85 bool Rect::intersect(const Rect& with, Rect* result) const { in intersect()
86 result->left = max(left, with.left); in intersect()
87 result->top = max(top, with.top); in intersect()
88 result->right = min(right, with.right); in intersect()
89 result->bottom = min(bottom, with.bottom); in intersect()
90 return !(result->isEmpty()); in intersect()
[all …]
/frameworks/av/services/oboeservice/
DAAudioServiceStreamBase.cpp68 std::stringstream result; in dump() local
70 result << " 0x" << std::setfill('0') << std::setw(8) << std::hex << mHandle in dump()
72 result << std::setw(6) << mMmapClient.clientUid; 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()
80 return result.str(); in dump()
[all …]
/frameworks/base/core/java/android/util/
DDebugUtils.java131 float result = number; in printSizeValue() local
133 if (result > 900) { in printSizeValue()
135 result = result / 1024; in printSizeValue()
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()
[all …]

12345678910>>...95