Home
last modified time | relevance | path

Searched refs:data2 (Results 1 – 25 of 38) sorted by relevance

12

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DByteArrayRingBufferTest.java56 final byte[] data2 = {1}; in canAddAndRetrieveMultipleElements()
58 assertTrue(rb.appendBuffer(data2)); in canAddAndRetrieveMultipleElements()
61 assertSame(data2, rb.getBuffer(1)); in canAddAndRetrieveMultipleElements()
68 final byte[] data2 = {6, 7, 8, 9, 10}; in canFillToCapacityWithMultipleElements()
69 assertEquals(MAX_BYTES, data1.length + data2.length); in canFillToCapacityWithMultipleElements()
71 assertTrue(rb.appendBuffer(data2)); in canFillToCapacityWithMultipleElements()
98 final byte[] data2 = {11}; in appendPrunesBufferIfNecessary()
99 assertTrue(rb.appendBuffer(data2)); in appendPrunesBufferIfNecessary()
101 assertSame(data2, rb.getBuffer(0)); in appendPrunesBufferIfNecessary()
108 final byte[] data2 = {6, 7, 8, 9, 10}; in appendPrunesMultipleBuffersIfNecessary()
[all …]
/frameworks/base/tools/aapt2/format/
DArchive_test.cpp93 std::unique_ptr<uint8_t[]> data2 = MakeTestArray(); in TEST_F() local
101 ASSERT_TRUE(writer->Write(static_cast<const void*>(data2.get()), kTestDataLength)); in TEST_F()
108 VerifyDirectory(output_path, "test2", data2.get()); in TEST_F()
119 std::unique_ptr<uint8_t[]> data2 = MakeTestArray(); in TEST_F() local
121 std::copy(data2.get(), data2.get() + kTestDataLength, data2_copy.get()); in TEST_F()
134 VerifyDirectory(output_path, "test2", data2.get()); in TEST_F()
153 std::unique_ptr<uint8_t[]> data2 = MakeTestArray(); in TEST_F() local
161 ASSERT_TRUE(writer->Write(static_cast<const void*>(data2.get()), kTestDataLength)); in TEST_F()
168 VerifyZipFile(output_path, "test2", data2.get()); in TEST_F()
179 std::unique_ptr<uint8_t[]> data2 = MakeTestArray(); in TEST_F() local
[all …]
/frameworks/base/cmds/incident_helper/tests/
Dih_util_test.cpp107 string data2 = "Swap: abc "; in TEST() local
108 EXPECT_FALSE(stripPrefix(&data2, "Total:")); in TEST()
109 EXPECT_THAT(data2, StrEq("Swap: abc ")); in TEST()
125 string data2 = " 243%abc"; in TEST() local
126 EXPECT_FALSE(stripSuffix(&data2, "Not right")); in TEST()
127 EXPECT_THAT(data2, StrEq(" 243%abc")); in TEST()
/frameworks/base/cmds/idmap2/tests/
DBinaryStreamVisitorTests.cpp68 const std::unique_ptr<const IdmapData>& data2 = data_blocks2[0]; in TEST() local
69 ASSERT_THAT(data2, NotNull()); in TEST()
72 const auto& target_entries2 = data2->GetTargetEntries(); in TEST()
84 const auto& overlay_entries2 = data2->GetOverlayEntries(); in TEST()
/frameworks/av/media/mtp/
DMtpFfsCompatHandle.cpp168 unsigned char *data2 = mIobuf[1].bufs.data(); in receiveFile() local
231 std::swap(data, data2); in receiveFile()
259 unsigned char *data2 = mIobuf[1].bufs.data(); in sendFile() local
305 std::swap(data, data2); in sendFile()
323 if (writeHandle(mBulkIn, data2, ret) == -1) { in sendFile()
/frameworks/native/libs/binder/tests/
DbinderLibTest.cpp874 Parcel data, data2; in TEST_F() local
883 data2.writeStrongBinder(callBack2); in TEST_F()
884 data2.writeInt32(0); // delay in us in TEST_F()
891 ret = pollServer->transact(BINDER_LIB_TEST_DELAYED_CALL_BACK, data2, nullptr, TF_ONE_WAY); in TEST_F()
1010 Parcel data2, reply2; in TEST_F() local
1012 data2.writeInterfaceToken(binderLibTestServiceName); in TEST_F()
1013 ret2 = m_server->transact(BINDER_LIB_TEST_GET_WORK_SOURCE_TRANSACTION, data2, &reply2); in TEST_F()
1171 Parcel data2; in onTransact() local
1172 data2.writeInt32(UNKNOWN_ERROR); in onTransact()
1174 callback->transact(BINDER_LIB_TEST_CALL_BACK, data2, nullptr, TF_ONE_WAY); in onTransact()
[all …]
/frameworks/base/core/tests/coretests/src/android/app/servertransaction/
DTestUtils.java61 Intent data2 = new Intent("action2"); in resultInfoList() local
62 ResultInfo resultInfo2 = new ResultInfo(resultWho2, requestCode2, resultCode2, data2); in resultInfoList()
/frameworks/base/media/java/android/media/
DClosedCaptionRenderer.java523 static StyleCode fromByte(byte data2) { in fromByte() argument
525 int color = (data2 >> 1) & 0x7; in fromByte()
527 if ((data2 & 0x1) != 0) { in fromByte()
578 static PAC fromBytes(byte data1, byte data2) { in fromBytes() argument
580 int row = rowTable[data1 & 0x07] + ((data2 & 0x20) >> 5); in fromBytes()
582 if ((data2 & 1) != 0) { in fromBytes()
585 if ((data2 & 0x10) != 0) { in fromBytes()
587 int indent = (data2 >> 1) & 0x7; in fromBytes()
591 int color = (data2 >> 1) & 0x7; in fromBytes()
1044 CCData(byte type, byte data1, byte data2) { in CCData() argument
[all …]
/frameworks/base/tools/aapt2/xml/
DXmlPullParser.cpp142 return event_queue_.front().data2; in namespace_uri()
177 return event_queue_.front().data2; in element_name()
233 SplitName(name, &data.data1, &data.data2); in StartElementHandler()
265 SplitName(name, &data.data1, &data.data2); in EndElementHandler()
/frameworks/av/media/libstagefright/
DACodec.cpp196 msg->setInt32("data2", omx_msg.u.event_data.data2); in onMessages()
275 virtual bool onOMXEvent(OMX_EVENTTYPE event, OMX_U32 data1, OMX_U32 data2);
382 virtual bool onOMXEvent(OMX_EVENTTYPE event, OMX_U32 data1, OMX_U32 data2);
398 virtual bool onOMXEvent(OMX_EVENTTYPE event, OMX_U32 data1, OMX_U32 data2);
426 virtual bool onOMXEvent(OMX_EVENTTYPE event, OMX_U32 data1, OMX_U32 data2);
445 virtual bool onOMXEvent(OMX_EVENTTYPE event, OMX_U32 data1, OMX_U32 data2);
461 virtual bool onOMXEvent(OMX_EVENTTYPE event, OMX_U32 data1, OMX_U32 data2);
483 virtual bool onOMXEvent(OMX_EVENTTYPE event, OMX_U32 data1, OMX_U32 data2);
498 virtual bool onOMXEvent(OMX_EVENTTYPE event, OMX_U32 data1, OMX_U32 data2);
5883 int32_t event, data1, data2; in onOMXMessage() local
[all …]
/frameworks/av/media/libstagefright/omx/include/media/stagefright/omx/1.0/
DConversion.h196 t->data.eventData.data2 = l.u.event_data.data2; in wrapAs()
242 l->u.event_data.data2 = t.data.eventData.data2; in wrapAs()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DSimUtilsTest.java30 byte[] data, data2; in testBasic()
/frameworks/base/core/tests/coretests/src/android/widget/
DSimpleCursorAdapterTest.java121 ArrayList<ArrayList> data2 = createTestList(5, 2); in testChangeCursorLive() local
122 Cursor c2 = createCursor(mFrom, data2); in testChangeCursorLive()
/frameworks/av/media/libstagefright/omx/tests/
DOMXHarness.cpp354 && msg.u.event_data.data2 == OMX_StateIdle, in testStateTransitions()
367 && msg.u.event_data.data2 == OMX_StateExecuting, in testStateTransitions()
387 && msg.u.event_data.data2 == 1, in testStateTransitions()
413 && msg.u.event_data.data2 == OMX_StateIdle, in testStateTransitions()
458 && msg.u.event_data.data2 == OMX_StateLoaded, in testStateTransitions()
/frameworks/wilhelm/src/android/
DMediaPlayer_to_android.cpp29 static void player_handleMediaPlayerEventNotifications(int event, int data1, int data2, void* user) in player_handleMediaPlayerEventNotifications() argument
53 "user=%p) from AVPlayer", u.c[3], u.c[2], u.c[1], u.c[0], event, data1, data2, user); in player_handleMediaPlayerEventNotifications()
103 data1, data2, mp); in player_handleMediaPlayerEventNotifications()
119 streamInfo.videoInfo.height = (XAuint32)data2; in player_handleMediaPlayerEventNotifications()
Dandroid_defs.h101 typedef void (*notif_cbf_t)(int event, int data1, int data2, void* notifUser);
Dandroid_GenericPlayer.cpp298 void GenericPlayer::notify(const char* event, int data1, int data2, bool async) { in notify() argument
299 SL_LOGV("GenericPlayer::notify(event=%s, data1=%d, data2=%d, async=%s)", event, data1, data2, in notify()
302 msg->setRect(event, 0, 0, (int32_t)data1, (int32_t)data2); in notify()
Dandroid_GenericPlayer.h128 virtual void notify(const char* event, int data1, int data2, bool async);
/frameworks/av/media/libstagefright/omx/
DSoftOMXComponent.cpp89 OMX_U32 data1, OMX_U32 data2, OMX_PTR data) { in notify() argument
95 data2, in notify()
/frameworks/base/libs/protoutil/tests/
DProtoOutputStream_test.cpp186 const char data2[4] = { 'f', 'o', 'o', 'd' }; in TEST() local
201 EXPECT_TRUE(proto.write(FIELD_TYPE_BYTES | ComplexProto::Log::kDataFieldNumber, data2, 4)); in TEST()
225 const char data2[4] = { 'f', 'o', 'o', 'd' }; in TEST() local
240 EXPECT_TRUE(proto.write(FIELD_TYPE_BYTES | ComplexProto::Log::kDataFieldNumber, data2, 4)); in TEST()
/frameworks/av/services/audiopolicy/service/
DAudioPolicyService.cpp1714 ParametersData *data2 = (ParametersData *)command2->mParam.get(); in insertCommand_l() local
1715 if (data->mIO != data2->mIO) break; in insertCommand_l()
1717 data2->mKeyValuePairs.string(), data->mKeyValuePairs.string()); in insertCommand_l()
1719 AudioParameter param2 = AudioParameter(data2->mKeyValuePairs); in insertCommand_l()
1740 data2->mKeyValuePairs = param2.toString(); in insertCommand_l()
1750 VolumeData *data2 = (VolumeData *)command2->mParam.get(); in insertCommand_l() local
1751 if (data->mIO != data2->mIO) break; in insertCommand_l()
1752 if (data->mStream != data2->mStream) break; in insertCommand_l()
1764 VoiceVolumeData *data2 = (VoiceVolumeData *)command2->mParam.get(); in insertCommand_l() local
1766 data2->mVolume, data->mVolume); in insertCommand_l()
/frameworks/av/media/libmedia/include/media/omx/1.0/
DConversion.h338 t->data.eventData.data2 = l.u.event_data.data2; in wrapAs()
384 l->u.event_data.data2 = t.data.eventData.data2; in wrapAs()
/frameworks/native/libs/vr/libdvr/tests/
Ddvr_display_manager-test.cpp887 auto data2 = GetConfigData(DVR_CONFIGURATION_DATA_LENS_METRICS); in TEST_F() local
889 ASSERT_STATUS_OK(data2); in TEST_F()
890 ASSERT_NE(0u, data2.get().size()); in TEST_F()
892 ASSERT_STATUS_ERROR(data2); in TEST_F()
/frameworks/av/media/codec2/sfplugin/
DOmx2IGraphicBufferSource.cpp79 msg.u.event_data.data2 = aspects; in dispatchDataSpaceChanged()
/frameworks/av/media/libstagefright/omx/include/media/stagefright/omx/
DSoftOMXComponent.h53 OMX_U32 data1, OMX_U32 data2, OMX_PTR data);

12