Home
last modified time | relevance | path

Searched refs:header (Results 1 – 25 of 144) sorted by relevance

123456

/cts/tests/tests/opengl/src/android/opengl/cts/
DCompressedTextureLoader.java140 PVRHeader header = new PVRHeader(); in readPVRHeader() local
142 header.mHeaderSize = headerBuffer.getInt(); in readPVRHeader()
143 header.mHeight = headerBuffer.getInt(); in readPVRHeader()
144 header.mWidth = headerBuffer.getInt(); in readPVRHeader()
145 header.mMipMapCount = headerBuffer.getInt(); in readPVRHeader()
146 header.mpfFlags = headerBuffer.getInt(); in readPVRHeader()
147 header.mDataSize = headerBuffer.getInt(); in readPVRHeader()
148 header.mBitCount = headerBuffer.getInt(); in readPVRHeader()
149 header.mRBitMask = headerBuffer.getInt(); in readPVRHeader()
150 header.mGBitMask = headerBuffer.getInt(); in readPVRHeader()
[all …]
/cts/tests/tests/widget/src/android/widget/cts/
DHeaderViewListAdapterTest.java69 ArrayList<ListView.FixedViewInfo> header = new ArrayList<ListView.FixedViewInfo>(); in testConstructor() local
71 new HeaderViewListAdapter(header, footer, null); in testConstructor()
73 new HeaderViewListAdapter(header, footer, mEmptyAdapter); in testConstructor()
82 ArrayList<ListView.FixedViewInfo> header = new ArrayList<ListView.FixedViewInfo>(4); in testGetHeadersCount() local
83 header.add(lv.new FixedViewInfo()); in testGetHeadersCount()
84 headerViewListAdapter = new HeaderViewListAdapter(header, null, null); in testGetHeadersCount()
116 ArrayList<ListView.FixedViewInfo> header = new ArrayList<ListView.FixedViewInfo>(4); in testRemoveHeader() local
123 header.add(info1); in testRemoveHeader()
124 header.add(info2); in testRemoveHeader()
125 HeaderViewListAdapter headerViewListAdapter = new HeaderViewListAdapter(header, null, null); in testRemoveHeader()
[all …]
DExpandableListWithHeaders.java45 Button header = new Button(this); in onCreate() local
46 header.setText("Header View"); in onCreate()
47 expandableListView.addHeaderView(header); in onCreate()
DListViewTest.java688 final AttachDetachAwareView header = new AttachDetachAwareView(mActivity); in testFullDetachHeaderViewOnScroll() local
691 mListView.addHeaderView(header); in testFullDetachHeaderViewOnScroll()
693 assertEquals("test sanity", 1, header.mOnAttachCount); in testFullDetachHeaderViewOnScroll()
694 assertEquals("test sanity", 0, header.mOnDetachCount); in testFullDetachHeaderViewOnScroll()
698 assertNull("test sanity, header should be removed", header.getParent()); in testFullDetachHeaderViewOnScroll()
699 assertEquals("header view should be detached", 1, header.mOnDetachCount); in testFullDetachHeaderViewOnScroll()
700 assertFalse(header.isTemporarilyDetached()); in testFullDetachHeaderViewOnScroll()
706 final AttachDetachAwareView header = new AttachDetachAwareView(mActivity); in testFullDetachHeaderViewOnRelayout() local
709 mListView.addHeaderView(header); in testFullDetachHeaderViewOnRelayout()
711 assertEquals("test sanity", 1, header.mOnAttachCount); in testFullDetachHeaderViewOnRelayout()
[all …]
/cts/tests/tests/net/src/android/net/cts/
DPacketUtils.java62 byte[] getPacketBytes(IpHeader header) throws Exception; in getPacketBytes() argument
64 void addPacketBytes(IpHeader header, ByteBuffer resultBuffer) throws Exception; in addPacketBytes() argument
212 public byte[] getPacketBytes(IpHeader header) { in getPacketBytes() argument
215 addPacketBytes(header, bb); in getPacketBytes()
219 public void addPacketBytes(IpHeader header, ByteBuffer resultBuffer) { in addPacketBytes() argument
248 public byte[] getPacketBytes(IpHeader header) throws Exception { in getPacketBytes() argument
251 addPacketBytes(header, bb); in getPacketBytes()
255 public void addPacketBytes(IpHeader header, ByteBuffer resultBuffer) throws Exception { in addPacketBytes() argument
265 payload.addPacketBytes(header, payloadBuffer); in addPacketBytes()
269 resultBuffer.putShort(calculateChecksum(header, payloadBytes)); in addPacketBytes()
[all …]
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/
DXmpDepthDecode.java278 private static boolean hasHeader(byte[] data, String header) { in hasHeader() argument
279 if (data.length < header.length()) { in hasHeader()
283 byte[] buffer = new byte[header.length()]; in hasHeader()
284 System.arraycopy(data, 0, buffer, 0, header.length()); in hasHeader()
285 if (new String(buffer, "UTF-8").equals(header)) { in hasHeader()
305 byte[] header = new byte[XMP_EXTENSION_HEADER_GUID_SIZE]; in readSection()
306 is.read(header, 0, header.length); in readSection()
308 if (hasHeader(header, XMP_EXTENSION_HEADER) && skipExtendedContent) { in readSection()
311 section.length = header.length + 2; in readSection()
312 section.data = header; in readSection()
[all …]
/cts/suite/audio_quality/lib/src/
DSignalProcessingImpl.cpp158 int32_t header[4]; // id 0 - no of types - id 0x10 - ExecutionResult in run() local
159 if (!read((char*)header, sizeof(header))) { in run()
163 if (header[0] != 0) { in run()
167 if (header[2] != EExecutionResult) { in run()
171 if (header[3] == TaskGeneric::EResultError) { in run()
172 LOGE("script returned error %d", header[3]); in run()
173 return (TaskGeneric::ExecutionResult)header[3]; in run()
175 if ((header[1] - 1) != nOutputs) { in run()
238 return (TaskGeneric::ExecutionResult)header[3]; in run()
/cts/tests/tests/content/jni/
DNativeCursorWindow.cpp101 struct Header *header = (struct Header *) data; in Java_android_content_cts_CursorWindowContentProvider_makeNativeCursorWindowFd() local
107 header->numRows = 1; in Java_android_content_cts_CursorWindowContentProvider_makeNativeCursorWindowFd()
108 header->numColumns = 1; in Java_android_content_cts_CursorWindowContentProvider_makeNativeCursorWindowFd()
109 header->firstChunkOffset = rowSlotChunkOffset; in Java_android_content_cts_CursorWindowContentProvider_makeNativeCursorWindowFd()
/cts/hostsidetests/securitybulletin/securityPatch/Bug-115739809/
Dpoc.cpp45 outMsg->header.type = msg.header.type; in sanitizeMessage()
48 switch(msg.header.type) { in sanitizeMessage()
146 serverMsg.header.type = type; in checkMessage()
162 if (serverMsg.header.type != clientMsg.header.type) { in checkMessage()
167 if (clientMsg.header.padding != 0) { in checkMessage()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/hce/
DHceUtils.java42 public static String getHexBytes(String header, byte[] bytes) { in getHexBytes() argument
44 if (header != null) { in getHexBytes()
45 sb.append(header + ": "); in getHexBytes()
/cts/tests/tests/widget/src/android/widget/cts/util/
DListScenario.java308 TextView header = mHeadersFocusable ? in onCreate() local
311 header.setText("Header: " + i); in onCreate()
312 mListView.addHeaderView(header); in onCreate()
316 TextView header = new TextView(this); in onCreate() local
317 header.setText("Footer: " + i); in onCreate()
318 mListView.addFooterView(header); in onCreate()
/cts/suite/audio_quality/test_description/
Dprocessing_main.py68 header = self.readI32()
69 if header == CMD_TERMINATE:
73 if header == CMD_HEADER:
/cts/libs/testserver/src/android/webkit/cts/
DTestWebServer.java420 for (Pair<String, String> header : response.mResponseHeaders) { in getResponse()
421 httpResponse.addHeader(header.first, header.second); in getResponse()
431 for (Pair<String, String> header : response.mResponseHeaders) { in getResponse()
432 httpResponse.addHeader(header.first, header.second); in getResponse()
/cts/tests/leanbackjank/app/src/android/leanbackjank/app/ui/
DMainFragment.java193 HeaderItem header = new HeaderItem(i, entry.getKey());
195 mRowsAdapter.add(new ListRow(header, listRowAdapter));
/cts/tools/vm-tests-tf/src/dot/junit/format/f1/d/
DT_f1_1.dfh3 // DEX file header:
DT_f1_9.dfh4 // DEX file header:
DT_f1_8.dfh3 // DEX file header:
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/
DVpnTest.java304 byte[] header; in checkPing()
311 header = new byte[] { (byte) 0x80, (byte) 0x00, (byte) 0x00, (byte) 0x00 }; in checkPing()
315 header = new byte[] { (byte) 0x08, (byte) 0x00, (byte) 0x00, (byte) 0x00 }; in checkPing()
317 System.arraycopy(header, 0, packet, 0, header.length); in checkPing()
/cts/tests/autofillservice/src/android/autofillservice/cts/
DUiBot.java292 public UiObject2 assertDatasetsWithBorders(String header, String footer, String...names)
296 if (header != null) {
302 .containsExactlyElementsIn(Arrays.asList(header)).inOrder();
304 expectedChild.add(header);
DCannedFillResponse.java463 public Builder setHeader(RemoteViews header) { in setHeader() argument
465 mHeader = header; in setHeader()
/cts/tests/tests/webkit/src/android/webkit/cts/
DWebViewTest.java339 Header header = matchingHeaders[0]; in testLoadUrl() local
340 assertEquals(mWebView.getContext().getApplicationInfo().packageName, header.getValue()); in testLoadUrl()
414 Header header = matchingHeaders[0]; in testAppInjectedXRequestedWithHeaderIsNotOverwritten() local
415 assertEquals(requester, header.getValue()); in testAppInjectedXRequestedWithHeaderIsNotOverwritten()
437 Header header = matchingHeaders[0]; in testAppCanInjectHeadersViaImmutableMap() local
438 assertEquals(requester, header.getValue()); in testAppCanInjectHeadersViaImmutableMap()
460 String header = value.getKey(); in testCanInjectHeaders() local
461 Header[] matchingHeaders = request.getHeaders(header); in testCanInjectHeaders()
462 assertEquals("header " + header + " not found", 1, matchingHeaders.length); in testCanInjectHeaders()
/cts/tests/tests/media/src/android/media/cts/
DNativeDecoderTest.java151 Header[] header = req.getHeaders(key); in testExtractor() local
152 assertTrue("expecting " + key + ":" + value + ", saw " + Arrays.toString(header), in testExtractor()
153 header.length == 1 && header[0].getValue().equals(value)); in testExtractor()
/cts/tools/vm-tests-tf/src/dot/junit/verify/a1/d/
DT_a1_1.dfh3 // DEX file header:
/cts/tools/vm-tests-tf/src/dot/junit/verify/a3/d/
DT_a3_1.dfh3 // DEX file header:
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/goto_16/d/
DT_goto_16_3.dfh3 // DEX file header:

123456