Home
last modified time | relevance | path

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

12

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DByteArrayRingBufferTest.java53 final byte[] data1 = {0}; in canAddAndRetrieveMultipleElements()
55 assertTrue(rb.appendBuffer(data1)); in canAddAndRetrieveMultipleElements()
58 assertSame(data1, rb.getBuffer(0)); in canAddAndRetrieveMultipleElements()
65 final byte[] data1 = {1, 2, 3, 4, 5}; in canFillToCapacityWithMultipleElements()
67 assertEquals(MAX_BYTES, data1.length + data2.length); in canFillToCapacityWithMultipleElements()
68 assertTrue(rb.appendBuffer(data1)); in canFillToCapacityWithMultipleElements()
93 final byte[] data1 = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}; in appendPrunesBufferIfNecessary()
94 assertTrue(rb.appendBuffer(data1)); in appendPrunesBufferIfNecessary()
105 final byte[] data1 = {1, 2, 3, 4, 5}; in appendPrunesMultipleBuffersIfNecessary()
107 assertTrue(rb.appendBuffer(data1)); in appendPrunesMultipleBuffersIfNecessary()
[all …]
/frameworks/base/cmds/idmap2/tests/
DBinaryStreamVisitorTests.cpp55 const auto& data1 = idmap1->GetData()[0]; in TEST() local
58 ASSERT_EQ(data1->GetHeader()->GetTargetPackageId(), data2->GetHeader()->GetTargetPackageId()); in TEST()
59 ASSERT_EQ(data1->GetTypeEntries().size(), 2U); 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/core/tests/coretests/src/com/android/internal/app/procstats/
DSparseMappingTableTest.java54 final SparseMappingTable data1 = new SparseMappingTable(); in testParcelingEmpty() local
55 data1.readFromParcel(dataParcel); in testParcelingEmpty()
60 final SparseMappingTable.Table table1 = new SparseMappingTable.Table(data1); in testParcelingEmpty()
88 final SparseMappingTable data1 = new SparseMappingTable(); in testParceling() local
89 data1.readFromParcel(dataParcel); in testParceling()
94 final SparseMappingTable.Table table1 = new SparseMappingTable.Table(data1); in testParceling()
135 final SparseMappingTable data1 = new SparseMappingTable(); in testParcelingWithReset() local
136 data1.readFromParcel(dataParcel); in testParcelingWithReset()
141 final SparseMappingTable.Table table1 = new SparseMappingTable.Table(data1); in testParcelingWithReset()
152 Log.d(TAG, " after: " + data1.dumpInternalState(true)); in testParcelingWithReset()
/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()
70 if (PLAYER_SUCCESS == data1) { in player_handleMediaPlayerEventNotifications()
78 SL_LOGE(ERROR_PLAYER_PREFETCH_d, data1); in player_handleMediaPlayerEventNotifications()
103 data1, data2, mp); in player_handleMediaPlayerEventNotifications()
118 streamInfo.videoInfo.width = (XAuint32)data1; in player_handleMediaPlayerEventNotifications()
186 SL_LOGV("kEventChannelCount channels = %d", data1); in player_handleMediaPlayerEventNotifications()
188 if (UNKNOWN_NUMCHANNELS == mp->mNumChannels && UNKNOWN_NUMCHANNELS != data1) { in player_handleMediaPlayerEventNotifications()
189 mp->mNumChannels = data1; in player_handleMediaPlayerEventNotifications()
210 mp->mPrefetchStatus.mLevel = (SLpermille)data1; in player_handleMediaPlayerEventNotifications()
[all …]
Dandroid_GenericPlayer.h127 virtual void notify(const char* event, int data1, bool async);
128 virtual void notify(const char* event, int data1, int data2, bool async);
DAudioPlayer_to_android.cpp758 static void sfplayer_handlePrefetchEvent(int event, int data1, int data2, void* user) { in sfplayer_handlePrefetchEvent() argument
777 "SfAudioPlayer", u.c[3], u.c[2], u.c[1], u.c[0], event, data1, data2, user); in sfplayer_handlePrefetchEvent()
794 if (PLAYER_SUCCESS == data1) { in sfplayer_handlePrefetchEvent()
802 SL_LOGE(ERROR_PLAYER_PREFETCH_d, data1); in sfplayer_handlePrefetchEvent()
838 ap->mPrefetchStatus.mLevel = (SLpermille)data1; in sfplayer_handlePrefetchEvent()
862 if (data1 >= android::kStatusIntermediate) { in sfplayer_handlePrefetchEvent()
864 } else if (data1 < android::kStatusIntermediate) { in sfplayer_handlePrefetchEvent()
887 if (UNKNOWN_NUMCHANNELS == ap->mNumChannels && UNKNOWN_NUMCHANNELS != data1) { in sfplayer_handlePrefetchEvent()
888 ap->mNumChannels = data1; in sfplayer_handlePrefetchEvent()
905 SLuint32 event = (SLuint32) data1; // SL_PLAYEVENT_HEAD* in sfplayer_handlePrefetchEvent()
[all …]
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()
/frameworks/base/cmds/incident_helper/tests/
Dih_util_test.cpp103 string data1 = "Swap: abc "; in TEST() local
104 EXPECT_TRUE(stripPrefix(&data1, "Swap:")); in TEST()
105 EXPECT_THAT(data1, StrEq("abc")); in TEST()
121 string data1 = " 243%abc"; in TEST() local
122 EXPECT_TRUE(stripSuffix(&data1, "abc")); in TEST()
123 EXPECT_THAT(data1, StrEq("243%")); in TEST()
/frameworks/base/tools/aapt2/xml/
DXmlPullParser.cpp111 return event_queue_.front().data1; in comment()
124 return event_queue_.front().data1; in text()
133 return event_queue_.front().data1; in namespace_prefix()
168 return event_queue_.front().data1; in element_namespace()
233 SplitName(name, &data.data1, &data.data2); in StartElementHandler()
265 SplitName(name, &data.data1, &data.data2); in EndElementHandler()
/frameworks/base/core/tests/coretests/src/android/app/servertransaction/
DTestUtils.java55 Intent data1 = new Intent("action1"); in resultInfoList() local
56 ResultInfo resultInfo1 = new ResultInfo(resultWho1, requestCode1, resultCode1, data1); in resultInfoList()
/frameworks/av/media/libstagefright/codecs/amrnb/common/src/
Dvad1.cpp181 Word16 data1; in first_filter_stage() local
184 data1 = data[1]; in first_filter_stage()
195 temp3 = mult(COEFF5_2, data1, pOverflow); in first_filter_stage()
201 temp2 = add(data1, temp2, pOverflow); in first_filter_stage()
213 data1 = mult(COEFF5_2, temp3, pOverflow); in first_filter_stage()
215 data1 = sub(temp2, data1, pOverflow); in first_filter_stage()
217 temp2 = mult(COEFF5_2, data1, pOverflow); in first_filter_stage()
225 data[1] = data1; in first_filter_stage()
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DKernelCpuUidBpfMapReaderTest.java114 final SparseArray<long[]> data1 = getTestSparseArray(180, 70); in testConcurrent() local
142 testOpenAndReadData(data1); in testConcurrent()
155 mReader.setData(data1); in testConcurrent()
DKernelCpuProcStringReaderTest.java244 final String data1 = getTestString(180, 120); in testConcurrent() local
246 final String[] lines1 = data1.split("\n"); in testConcurrent()
301 w.write(data1); in testConcurrent()
/frameworks/av/media/libstagefright/
DACodec.cpp195 msg->setInt32("data1", omx_msg.u.event_data.data1); 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.h196 t->data.eventData.data1 = l.u.event_data.data1; in wrapAs()
242 l->u.event_data.data1 = t.data.eventData.data1; in wrapAs()
/frameworks/av/media/libstagefright/omx/tests/
DOMXHarness.cpp342 && msg.u.event_data.data1 == OMX_CommandStateSet in testStateTransitions()
355 && msg.u.event_data.data1 == OMX_CommandStateSet in testStateTransitions()
375 && msg.u.event_data.data1 == OMX_CommandFlush in testStateTransitions()
401 && msg.u.event_data.data1 == OMX_CommandStateSet in testStateTransitions()
446 && msg.u.event_data.data1 == OMX_CommandStateSet in testStateTransitions()
/frameworks/av/media/libstagefright/omx/
DSoftOMXComponent.cpp89 OMX_U32 data1, OMX_U32 data2, OMX_PTR data) { in notify() argument
94 data1, in notify()
/frameworks/base/libs/protoutil/tests/
DProtoOutputStream_test.cpp185 const char data1[6] = { 'f', 'u', 'n', 'n', 'y', '!' }; in TEST() local
196 EXPECT_TRUE(proto.write(FIELD_TYPE_BYTES | ComplexProto::Log::kDataFieldNumber, data1, 5)); in TEST()
224 const char data1[6] = { 'f', 'u', 'n', 'n', 'y', '!' }; in TEST() local
235 EXPECT_TRUE(proto.write(FIELD_TYPE_BYTES | ComplexProto::Log::kDataFieldNumber, data1, 5)); in TEST()
/frameworks/av/media/libmedia/include/media/omx/1.0/
DConversion.h338 t->data.eventData.data1 = l.u.event_data.data1; in wrapAs()
384 l->u.event_data.data1 = t.data.eventData.data1; in wrapAs()
/frameworks/av/media/codec2/sfplugin/
DOmx2IGraphicBufferSource.cpp78 msg.u.event_data.data1 = dataSpace; 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.h189 OMX_U32 data1; member
/frameworks/base/media/java/android/media/
DClosedCaptionRenderer.java578 static PAC fromBytes(byte data1, byte data2) { in fromBytes() argument
580 int row = rowTable[data1 & 0x07] + ((data2 & 0x20) >> 5); in fromBytes()
1044 CCData(byte type, byte data1, byte data2) { in CCData() argument
1046 mData1 = data1; in CCData()
/frameworks/av/media/libstagefright/omx/1.0/
DWGraphicBufferSource.cpp67 tMsg.data.eventData.data1 = dataSpace; in dispatchDataSpaceChanged()

12