Home
last modified time | relevance | path

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

12

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DByteArrayRingBufferTest.java54 final byte[] data2 = {1}; in canAddAndRetrieveMultipleElements()
56 assertTrue(rb.appendBuffer(data2)); in canAddAndRetrieveMultipleElements()
59 assertSame(data2, rb.getBuffer(1)); in canAddAndRetrieveMultipleElements()
66 final byte[] data2 = {6, 7, 8, 9, 10}; in canFillToCapacityWithMultipleElements()
67 assertEquals(MAX_BYTES, data1.length + data2.length); in canFillToCapacityWithMultipleElements()
69 assertTrue(rb.appendBuffer(data2)); in canFillToCapacityWithMultipleElements()
96 final byte[] data2 = {11}; in appendPrunesBufferIfNecessary()
97 assertTrue(rb.appendBuffer(data2)); in appendPrunesBufferIfNecessary()
99 assertSame(data2, rb.getBuffer(0)); in appendPrunesBufferIfNecessary()
106 final byte[] data2 = {6, 7, 8, 9, 10}; in appendPrunesMultipleBuffersIfNecessary()
[all …]
/frameworks/base/cmds/idmap2/tests/
DBinaryStreamVisitorTests.cpp56 const auto& data2 = idmap2->GetData()[0]; in TEST() local
58 ASSERT_EQ(data1->GetHeader()->GetTargetPackageId(), data2->GetHeader()->GetTargetPackageId()); in TEST()
60 ASSERT_EQ(data1->GetTypeEntries().size(), data2->GetTypeEntries().size()); in TEST()
61 ASSERT_EQ(data1->GetTypeEntries()[0]->GetEntry(0), data2->GetTypeEntries()[0]->GetEntry(0)); in TEST()
62 ASSERT_EQ(data1->GetTypeEntries()[0]->GetEntry(1), data2->GetTypeEntries()[0]->GetEntry(1)); in TEST()
63 ASSERT_EQ(data1->GetTypeEntries()[0]->GetEntry(2), data2->GetTypeEntries()[0]->GetEntry(2)); in TEST()
64 ASSERT_EQ(data1->GetTypeEntries()[1]->GetEntry(0), data2->GetTypeEntries()[1]->GetEntry(0)); in TEST()
65 ASSERT_EQ(data1->GetTypeEntries()[1]->GetEntry(1), data2->GetTypeEntries()[1]->GetEntry(1)); in TEST()
66 ASSERT_EQ(data1->GetTypeEntries()[1]->GetEntry(2), data2->GetTypeEntries()[1]->GetEntry(2)); in TEST()
/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/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.cpp875 Parcel data, data2; in TEST_F() local
884 data2.writeStrongBinder(callBack2); in TEST_F()
885 data2.writeInt32(0); // delay in us in TEST_F()
892 ret = pollServer->transact(BINDER_LIB_TEST_DELAYED_CALL_BACK, data2, nullptr, TF_ONE_WAY); in TEST_F()
1011 Parcel data2, reply2; in TEST_F() local
1013 data2.writeInterfaceToken(binderLibTestServiceName); in TEST_F()
1014 ret2 = m_server->transact(BINDER_LIB_TEST_GET_WORK_SOURCE_TRANSACTION, data2, &reply2); in TEST_F()
1160 Parcel data2; in onTransact() local
1161 data2.writeInt32(UNKNOWN_ERROR); in onTransact()
1163 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);
5817 int32_t event, data1, data2; in onOMXMessage() local
[all …]
/frameworks/av/media/libstagefright/omx/include/media/stagefright/omx/1.0/
DConversion.h197 t->data.eventData.data2 = l.u.event_data.data2; in wrapAs()
243 l->u.event_data.data2 = t.data.eventData.data2; in wrapAs()
/frameworks/av/media/libstagefright/omx/tests/
DOMXHarness.cpp343 && msg.u.event_data.data2 == OMX_StateIdle, in testStateTransitions()
356 && msg.u.event_data.data2 == OMX_StateExecuting, in testStateTransitions()
376 && msg.u.event_data.data2 == 1, in testStateTransitions()
402 && msg.u.event_data.data2 == OMX_StateIdle, in testStateTransitions()
447 && msg.u.event_data.data2 == OMX_StateLoaded, in testStateTransitions()
/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/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/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DSimUtilsTest.java30 byte[] data, data2; in testBasic()
/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.cpp1636 ParametersData *data2 = (ParametersData *)command2->mParam.get(); in insertCommand_l() local
1637 if (data->mIO != data2->mIO) break; in insertCommand_l()
1639 data2->mKeyValuePairs.string(), data->mKeyValuePairs.string()); in insertCommand_l()
1641 AudioParameter param2 = AudioParameter(data2->mKeyValuePairs); in insertCommand_l()
1662 data2->mKeyValuePairs = param2.toString(); in insertCommand_l()
1672 VolumeData *data2 = (VolumeData *)command2->mParam.get(); in insertCommand_l() local
1673 if (data->mIO != data2->mIO) break; in insertCommand_l()
1674 if (data->mStream != data2->mStream) break; in insertCommand_l()
1686 VoiceVolumeData *data2 = (VoiceVolumeData *)command2->mParam.get(); in insertCommand_l() local
1688 data2->mVolume, data->mVolume); in insertCommand_l()
/frameworks/av/media/libmedia/include/media/omx/1.0/
DConversion.h339 t->data.eventData.data2 = l.u.event_data.data2; in wrapAs()
385 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);
/frameworks/av/media/libmedia/include/media/
DIOMX.h190 OMX_U32 data2; member

12