Home
last modified time | relevance | path

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

12

/cts/tests/tests/graphics/src/android/graphics/cts/
DPathMeasureTest.java94 assertEquals(0f, mPathMeasure.getLength(), 0.0f); in testGetLength()
97 assertEquals(8.0f, mPathMeasure.getLength(), 0.0f); in testGetLength()
127 assertEquals(0f, mPathMeasure.getLength(), 0.0f); in testGetSegment()
130 assertEquals(8f, mPathMeasure.getLength(), 0.0f); in testGetSegment()
132 assertTrue(mPathMeasure.getSegment(0, mPathMeasure.getLength(), dst, true)); in testGetSegment()
133 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.java120 fd.getFileDescriptor(), fd.getStartOffset(), fd.getLength()); in testExtractor()
122 fd.getParcelFileDescriptor().getFd(), fd.getStartOffset(), fd.getLength()); in testExtractor()
197 fd.getParcelFileDescriptor().getFd(), fd.getStartOffset(), fd.getLength()); in testExtractorFileDurationNative()
200 ex.setDataSource(fd.getFileDescriptor(), fd.getStartOffset(), fd.getLength()); in testExtractorFileDurationNative()
276 fd.getFileDescriptor(), fd.getStartOffset(), fd.getLength()); in testDecoder()
278 fd.getParcelFileDescriptor().getFd(), fd.getStartOffset(), fd.getLength(), wrapFd, in testDecoder()
479 fd.getParcelFileDescriptor().getFd(), fd.getStartOffset(), fd.getLength()); in testVideoPlayback()
548 infd.getParcelFileDescriptor().getFd(), infd.getStartOffset(), infd.getLength(), in testMuxer()
554 infd.getStartOffset(), infd.getLength()); in testMuxer()
664 fd.getStartOffset(), fd.getLength()); in testPssh()
[all …]
DMediaPlayerSurfaceStubActivity.java46 afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); in onCreate()
DMediaMetadataRetrieverTest.java93 … mRetriever.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); in setDataSourceFd()
247 retriever.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); in testThumbnail()
391 retriever.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); in testGetFrameAt()
435 retriever.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); in testGetScaledFrameAtTime()
574 retriever.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); in testGetScaledFrameAtTime()
649 retriever.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); in testGetImage()
716 afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); in testGetImage()
DMediaPlayer2TestBase.java164 .setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()) in createMediaPlayer2()
332 .setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()) in loadResource()
357 .setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()) in createDataSourceDesc()
369 afd.getLength(), MediaPlayer2.MEDIA_MIMETYPE_TEXT_SUBRIP); in loadSubtitleSource()
DMediaPlayerTestBase.java112 afd.getLength()); in loadResource()
136 afd.getLength(), MediaPlayer.MEDIA_MIMETYPE_TEXT_SUBRIP); in loadSubtitleSource()
DMediaMuxerTest.java269 srcFd.getLength()); in cloneMediaUsingMuxer()
390 testFd.getStartOffset(), testFd.getLength()); in verifyAttributesMatch()
436 testFd.getStartOffset(), testFd.getLength()); in verifySamplesMatch()
DMediaRandomTest.java170 afd.getLength()); in loadSource()
DDecoderConformanceTest.java138 … mExtractor.setDataSource(testFd.getFileDescriptor(), testFd.getStartOffset(), testFd.getLength()); in decodeTestVector()
DMediaPlayerTest.java152 mMediaPlayer.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); in testIfMediaServerDied()
172 mp2.setDataSource(afd2.getFileDescriptor(), afd2.getStartOffset(), afd2.getLength()); in testVorbisCrash()
181 mp.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); in testVorbisCrash()
305 mp.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength());
423 mp.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); in testPlayMidi()
597 player.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); in initMediaPlayer()
826 mp1.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); in testGapless()
837 mp2.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); in testGapless()
DAudioTrackSurroundTest.java161 long masterLength = masterFd.getLength(); in loadRawResourceBytes()
174 long masterLength = masterFd.getLength(); in loadRawResourceShorts()
/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.java1091 fd.getLength()); in doStagefrightTestMediaPlayer()
1141 fd.getLength()); in doStagefrightTestMediaCodec()
1166 ex.setDataSource(fd.getFileDescriptor(), fd.getStartOffset(), fd.getLength()); in doStagefrightTestMediaCodec()
1308 fd.getLength()); in doStagefrightTestMediaMetadataRetriever()
1333 … retriever.setDataSource(fd.getFileDescriptor(), fd.getStartOffset(), fd.getLength()); in doStagefrightTestMediaMetadataRetriever()
1400 byte[] frameInfo = new byte[(int) fd.getLength()]; in getFrameSizes()
1452 fd.getLength()); in doStagefrightTestRawBlob()
1473 byte [] blob = new byte[(int)fd.getLength()]; in doStagefrightTestRawBlob()
1567 fd.getLength()); in doStagefrightTestRawBlob()
1588 byte [] blob = new byte[(int)fd.getLength()]; in doStagefrightTestRawBlob()
[all …]
DMediaServerCrashTest.java103 mMediaPlayer.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); in testIfMediaServerDied()
/cts/tests/tests/net/src/android/net/rtp/cts/
DAudioGroupTest.java81 assertEquals(packet.getLength(), length); in assertPacket()
/cts/tests/tests/content/src/android/content/res/cts/
DAssetFileDescriptorTest.java183 assertEquals(LENGTH, mAssetFileDes.getLength()); in testMiscMethod()
/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()
/cts/tools/utils/
DDescriptionGenerator.java355 for (int i = 0; i < nodelist.getLength(); i++) { in getUnmutableChildNodes()
407 for (int i = 0; i < children.getLength(); i++) { in getSuiteChildren()

12