Home
last modified time | relevance | path

Searched refs:getLength (Results 1 – 25 of 54) sorted by relevance

123

/cts/tests/tests/graphics/src/android/graphics/cts/
DPathMeasureTest.java95 assertEquals(0f, mPathMeasure.getLength(), 0.0f); in testGetLength()
98 assertEquals(8.0f, mPathMeasure.getLength(), 0.0f); in testGetLength()
128 assertEquals(0f, mPathMeasure.getLength(), 0.0f); in testGetSegment()
131 assertEquals(8f, mPathMeasure.getLength(), 0.0f); in testGetSegment()
133 assertTrue(mPathMeasure.getSegment(0, mPathMeasure.getLength(), dst, true)); in testGetSegment()
134 assertFalse(mPathMeasure.getSegment(mPathMeasure.getLength(), 0, dst, true)); in testGetSegment()
/cts/tests/tests/transition/src/android/transition/cts/
DPathMotionTest.java33 float expectedLength = expectedMeasure.getLength(); in assertPathMatches()
34 assertEquals("Lengths differ", expectedLength, pathMeasure.getLength(), 0.01f); in assertPathMatches()
36 float minLength = Math.min(expectedLength, pathMeasure.getLength()); in assertPathMatches()
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DCurrentApiHelper.java87 if (nodes != null && nodes.getLength() > 0) { in getPublicApis()
90 for (int i = 0; i < nodes.getLength(); ++i) { in getPublicApis()
137 if (nodeList != null && nodeList.getLength() > 0) { in getChildElementByName()
138 for (int i = 0; i < nodeList.getLength(); ++i) { in getChildElementByName()
150 if (nodes != null && nodes.getLength() > 0) { in getParamTypes()
151 int paramCount = nodes.getLength(); in getParamTypes()
/cts/tests/tests/media/src/android/media/cts/
DNativeEncoderTest.java80 fd.getParcelFileDescriptor().getFd(), fd.getStartOffset(), fd.getLength(), in testEncode()
116 fd.getParcelFileDescriptor().getFd(), fd.getStartOffset(), fd.getLength(), in testEncodeDynamicSyncFrame()
152 fd.getParcelFileDescriptor().getFd(), fd.getStartOffset(), fd.getLength(), in testEncodeDynamicBitrate()
188 fd.getParcelFileDescriptor().getFd(), fd.getStartOffset(), fd.getLength(), in testEncodePersistentSurface()
DNativeDecoderTest.java187 fd.getFileDescriptor(), fd.getStartOffset(), fd.getLength()); in testExtractor()
189 fd.getParcelFileDescriptor().getFd(), fd.getStartOffset(), fd.getLength()); in testExtractor()
282 fd.getParcelFileDescriptor().getFd(), fd.getStartOffset(), fd.getLength()); in testExtractorFileDurationNative()
285 ex.setDataSource(fd.getFileDescriptor(), fd.getStartOffset(), fd.getLength()); in testExtractorFileDurationNative()
383 fd.getFileDescriptor(), fd.getStartOffset(), fd.getLength()); in testDecoder()
385 fd.getFileDescriptor(), fd.getStartOffset(), fd.getLength()); in testDecoder()
387 fd.getParcelFileDescriptor().getFd(), fd.getStartOffset(), fd.getLength(), wrapFd, in testDecoder()
390 fd.getParcelFileDescriptor().getFd(), fd.getStartOffset(), fd.getLength(), wrapFd, in testDecoder()
585 fd.getParcelFileDescriptor().getFd(), fd.getStartOffset(), fd.getLength()); in testVideoPlayback()
654 infd.getParcelFileDescriptor().getFd(), infd.getStartOffset(), infd.getLength(), in testMuxer()
[all …]
DMediaMetadataRetrieverTest.java91 … mRetriever.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); in setDataSourceFd()
258 retriever.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); in testThumbnail()
436 retriever.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); in testGetFrameAt()
463 retriever.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); in testGetFrameAtEditList()
506 retriever.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); in testGetScaledFrameAtTime()
645 retriever.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); in testGetScaledFrameAtTime()
715 retriever.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); in testGetImage()
782 afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); in testGetImage()
DMediaPlayerSurfaceStubActivity.java46 afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); in onCreate()
DDecoderTest.java96 long masterLength = masterFd.getLength(); in setUp()
281 ex.setDataSource(fd.getFileDescriptor(), fd.getStartOffset(), fd.getLength()); in testBFrames()
482 ex.setDataSource(fd.getFileDescriptor(), fd.getStartOffset(), fd.getLength()); in testColorAspects()
577 ex1.setDataSource(fd1.getFileDescriptor(), fd1.getStartOffset(), fd1.getLength()); in testTrackSelection()
606 ex1.setDataSource(fd1.getFileDescriptor(), fd1.getStartOffset(), fd1.getLength()); in testTrackSelection()
626 ex1.setDataSource(fd1.getFileDescriptor(), fd1.getStartOffset(), fd1.getLength()); in testTrackSelection()
646 ex1.setDataSource(fd1.getFileDescriptor(), fd1.getStartOffset(), fd1.getLength()); in testTrackSelection()
677 ex1.setDataSource(fd1.getFileDescriptor(), fd1.getStartOffset(), fd1.getLength()); in testTrackSelection()
709 ex1.setDataSource(fd1.getFileDescriptor(), fd1.getStartOffset(), fd1.getLength()); in testTrackSelection()
785 infd.getStartOffset(), infd.getLength()); in testHdrStaticMetadata()
[all …]
DMediaMuxerTest.java486 srcFd.getLength()); in cloneMediaUsingMuxer()
586 testFd.getStartOffset(), testFd.getLength()); in verifyAttributesMatch()
665 testFd.getStartOffset(), testFd.getLength()); in verifySamplesMatch()
730 srcFd.getLength()); in simulateVideoFramesDropIssuesAndMux()
834 srcFd.getStartOffset(), srcFd.getLength()); in verifyAFewSamplesTimestamp()
900 srcFd.getLength()); in cloneMediaWithSamplesDropAndStartOffsets()
1009 srcFd.getStartOffset(), srcFd.getLength()); in verifyTimestampsWithSamplesDropSet()
DMediaPlayerTestBase.java112 afd.getLength()); in loadResource()
136 afd.getLength(), MediaPlayer.MEDIA_MIMETYPE_TEXT_SUBRIP); in loadSubtitleSource()
DAudioTrackOffloadTest.java83 long mp3ToOffloadLength = mp3ToOffload.getLength(); in testAudioTrackOffload()
DMediaPlayerTest.java149 mMediaPlayer.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); in testIfMediaServerDied()
169 mp2.setDataSource(afd2.getFileDescriptor(), afd2.getStartOffset(), afd2.getLength()); in testVorbisCrash()
178 mp.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); in testVorbisCrash()
314 mp.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength());
432 mp.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); in testPlayMidi()
606 player.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); in initMediaPlayer()
835 mp1.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); in testGapless()
846 mp2.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); in testGapless()
DMediaRandomTest.java168 afd.getLength()); in loadSource()
DDecoderConformanceTest.java138 … mExtractor.setDataSource(testFd.getFileDescriptor(), testFd.getStartOffset(), testFd.getLength()); in decodeTestVector()
/cts/tests/tests/location/src/android/location/cts/asn1/supl2/ulp/
DULP_PDU.java104 public ULP_PDU.lengthType getLength() { in getLength() method in ULP_PDU
175 return getLength() != null; in getComponents()
187 return getLength(); in getComponents()
210 + getLength().toIndentedString(indent); in getComponents()
/cts/tests/tests/security/src/android/security/cts/
DMediaMetadataRetrieverTest.java50 … mRetriever.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); in setDataSourceFd()
DStagefrightTest.java1298 fd.getLength()); in doStagefrightTestMediaPlayer()
1349 fd.getLength()); in doStagefrightTestMediaCodec()
1374 ex.setDataSource(fd.getFileDescriptor(), fd.getStartOffset(), fd.getLength()); in doStagefrightTestMediaCodec()
1518 fd.getLength()); in doStagefrightTestMediaMetadataRetriever()
1543 … retriever.setDataSource(fd.getFileDescriptor(), fd.getStartOffset(), fd.getLength()); in doStagefrightTestMediaMetadataRetriever()
1619 byte[] frameInfo = new byte[(int) fd.getLength()]; in getFrameSizes()
1671 fd.getLength()); in doStagefrightTestRawBlob()
1692 byte [] blob = new byte[(int)fd.getLength()]; in doStagefrightTestRawBlob()
1786 fd.getLength()); in doStagefrightTestRawBlob()
1807 byte [] blob = new byte[(int)fd.getLength()]; in doStagefrightTestRawBlob()
[all …]
DMediaServerCrashTest.java99 mMediaPlayer.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); in testIfMediaServerDied()
/cts/tests/tests/carrierapi/src/android/carrierapi/cts/
DFcpTemplate.java128 public int getLength() { in getLength() method in FcpTemplate.Tlv
/cts/tests/tests/content/src/android/content/res/cts/
DAssetFileDescriptorTest.java183 assertEquals(LENGTH, mAssetFileDes.getLength()); in testMiscMethod()
/cts/tests/tests/net/src/android/net/rtp/cts/
DAudioGroupTest.java82 assertEquals(packet.getLength(), length); in assertPacket()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DGestureDescriptionTest.java202 assertEquals(50, (int) measure.getLength()); in testStrokeDescriptionGetters_workAsExpected()
/cts/tests/tests/util/src/android/util/cts/
DXmlEncodingTest.java262 mVec.add(atts.getLength() + STR_EMPTY); in startElement()
263 for (int i = 0; i < atts.getLength(); i++) { in startElement()
/cts/tools/cts-device-info/src/com/android/cts/deviceinfo/
DCameraDeviceInfo.java143 for (int fi = 0; fi < Array.getLength(fmts); fi++) { in storeStreamConfigurationMap()
146 for (int si = 0; si < Array.getLength(sizes); si++) { in storeStreamConfigurationMap()
303 int arrayLen = Array.getLength(keyValue); in storeArrayEntry()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/
DItsSerializer.java141 for (int fi = 0; fi < Array.getLength(fmts); fi++) { in serializeStreamConfigurationMap()
144 for (int si = 0; si < Array.getLength(sizes); si++) { in serializeStreamConfigurationMap()
157 for (int si = 0; si < Array.getLength(sizes); si++) { in serializeStreamConfigurationMap()
381 int arrayLen = Array.getLength(keyValue); in serializeArrayEntry()

123