/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/common/src/test/java/com/google/android/exoplayer2/util/ |
D | UtilTest.java | 18 import static com.google.android.exoplayer2.util.Util.binarySearchCeil; 19 import static com.google.android.exoplayer2.util.Util.binarySearchFloor; 20 import static com.google.android.exoplayer2.util.Util.escapeFileName; 21 import static com.google.android.exoplayer2.util.Util.getCodecsOfType; 22 import static com.google.android.exoplayer2.util.Util.getStringForTime; 23 import static com.google.android.exoplayer2.util.Util.gzip; 24 import static com.google.android.exoplayer2.util.Util.maxValue; 25 import static com.google.android.exoplayer2.util.Util.minValue; 26 import static com.google.android.exoplayer2.util.Util.parseXsDateTime; 27 import static com.google.android.exoplayer2.util.Util.parseXsDuration; [all …]
|
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/common/src/test/java/com/google/android/exoplayer2/util/ |
D | UtilTest.java | 18 import static com.google.android.exoplayer2.util.Util.binarySearchCeil; 19 import static com.google.android.exoplayer2.util.Util.binarySearchFloor; 20 import static com.google.android.exoplayer2.util.Util.escapeFileName; 21 import static com.google.android.exoplayer2.util.Util.getCodecsOfType; 22 import static com.google.android.exoplayer2.util.Util.getStringForTime; 23 import static com.google.android.exoplayer2.util.Util.gzip; 24 import static com.google.android.exoplayer2.util.Util.minValue; 25 import static com.google.android.exoplayer2.util.Util.parseXsDateTime; 26 import static com.google.android.exoplayer2.util.Util.parseXsDuration; 27 import static com.google.android.exoplayer2.util.Util.unescapeFileName; [all …]
|
/external/javapoet/src/test/java/com/squareup/javapoet/ |
D | UtilTest.java | 24 assertEquals("a", Util.characterLiteralWithoutSingleQuotes('a')); in characterLiteral() 25 assertEquals("b", Util.characterLiteralWithoutSingleQuotes('b')); in characterLiteral() 26 assertEquals("c", Util.characterLiteralWithoutSingleQuotes('c')); in characterLiteral() 27 assertEquals("%", Util.characterLiteralWithoutSingleQuotes('%')); in characterLiteral() 29 assertEquals("\\b", Util.characterLiteralWithoutSingleQuotes('\b')); in characterLiteral() 30 assertEquals("\\t", Util.characterLiteralWithoutSingleQuotes('\t')); in characterLiteral() 31 assertEquals("\\n", Util.characterLiteralWithoutSingleQuotes('\n')); in characterLiteral() 32 assertEquals("\\f", Util.characterLiteralWithoutSingleQuotes('\f')); in characterLiteral() 33 assertEquals("\\r", Util.characterLiteralWithoutSingleQuotes('\r')); in characterLiteral() 34 assertEquals("\"", Util.characterLiteralWithoutSingleQuotes('"')); in characterLiteral() [all …]
|
/external/libese/ready_se/google/keymint/KM300/Applet/AndroidSEProvider/src/com/android/javacard/keymaster/ |
D | KMUtils.java | 19 import javacard.framework.Util; 82 Util.arrayFillNonAtomic(scratchPad, (short) 0, (short) 256, (byte) 0); in convertToDate() 83 Util.arrayCopyNonAtomic( in convertToDate() 105 Util.arrayCopyNonAtomic(firstJan2020, (short) 0, scratchPad, (short) 8, (short) 8); in convertToDate() 107 Util.arrayCopyNonAtomic(scratchPad, (short) 16, scratchPad, (short) 0, (short) 8); in convertToDate() 110 Util.arrayCopyNonAtomic(firstJan2050, (short) 0, scratchPad, (short) 8, (short) 8); in convertToDate() 112 Util.arrayCopyNonAtomic(scratchPad, (short) 16, scratchPad, (short) 0, (short) 8); in convertToDate() 117 Util.arrayCopyNonAtomic(fourYrsMsec, (short) 0, scratchPad, (short) 8, (short) 8); in convertToDate() 122 Util.arrayCopyNonAtomic(scratchPad, (short) 16, scratchPad, (short) 0, (short) 8); in convertToDate() 141 Util.arrayCopyNonAtomic(leapYearMsec, (short) 0, scratchPad, (short) 8, (short) 8); in convertToDate() [all …]
|
/external/libese/ready_se/google/keymint/KM200/Applet/AndroidSEProvider/src/com/android/javacard/keymaster/ |
D | KMUtils.java | 19 import javacard.framework.Util; 82 Util.arrayFillNonAtomic(scratchPad, (short) 0, (short) 256, (byte) 0); in convertToDate() 83 Util.arrayCopyNonAtomic( in convertToDate() 105 Util.arrayCopyNonAtomic(firstJan2020, (short) 0, scratchPad, (short) 8, (short) 8); in convertToDate() 107 Util.arrayCopyNonAtomic(scratchPad, (short) 16, scratchPad, (short) 0, (short) 8); in convertToDate() 110 Util.arrayCopyNonAtomic(firstJan2050, (short) 0, scratchPad, (short) 8, (short) 8); in convertToDate() 112 Util.arrayCopyNonAtomic(scratchPad, (short) 16, scratchPad, (short) 0, (short) 8); in convertToDate() 117 Util.arrayCopyNonAtomic(fourYrsMsec, (short) 0, scratchPad, (short) 8, (short) 8); in convertToDate() 122 Util.arrayCopyNonAtomic(scratchPad, (short) 16, scratchPad, (short) 0, (short) 8); in convertToDate() 141 Util.arrayCopyNonAtomic(leapYearMsec, (short) 0, scratchPad, (short) 8, (short) 8); in convertToDate() [all …]
|
/external/slf4j/slf4j-api/src/main/java/org/slf4j/ |
D | LoggerFactory.java | 39 import org.slf4j.helpers.Util; 149 Util.report("Failed to load class \"org.slf4j.impl.StaticLoggerBinder\"."); in bind() 150 Util.report("Defaulting to no-operation (NOP) logger implementation"); in bind() 151 Util.report("See " + NO_STATICLOGGERBINDER_URL + " for further details."); in bind() 160 Util.report("slf4j-api 1.6.x (or later) is incompatible with this binding."); in bind() 161 Util.report("Your binding is version 1.5.5 or earlier."); in bind() 162 Util.report("Upgrade your binding to version 1.6.x."); in bind() 173 Util.report("Failed to instantiate SLF4J LoggerFactory", t); in failedBinding() 183 Util.report("The following set of substitute loggers may have been accessed"); in fixSubstitutedLoggers() 184 Util.report("during the initialization phase. Logging calls during this"); in fixSubstitutedLoggers() [all …]
|
/external/libese/ready_se/google/keymint/KM300/Applet/src/com/android/javacard/keymaster/ |
D | KMMap.java | 21 import javacard.framework.Util; 48 Util.setShort(heap, (short) (ptr + TLV_HEADER_SIZE), (short) 0); in exp() 49 Util.setShort(heap, (short) (ptr + TLV_HEADER_SIZE + 2), ANY_MAP_LENGTH); in exp() 55 Util.setShort(heap, (short) (ptr + TLV_HEADER_SIZE), (short) 0); in instance() 56 Util.setShort(heap, (short) (ptr + TLV_HEADER_SIZE + 2), length); in instance() 62 Util.setShort(heap, (short) (ptr + TLV_HEADER_SIZE), type); in instance() 84 Util.setShort(heap, keyIndex, keyPtr); in add() 85 Util.setShort(heap, (short) (keyIndex + 2), valPtr); in add() 93 return Util.getShort( in getKey() 107 return Util.getShort( in getKeyValue() [all …]
|
D | KMArray.java | 21 import javacard.framework.Util; 51 Util.setShort(heap, (short) (ptr + TLV_HEADER_SIZE), KMType.INVALID_VALUE); in exp() 52 Util.setShort(heap, (short) (ptr + TLV_HEADER_SIZE + 2), ANY_ARRAY_LENGTH); in exp() 58 Util.setShort(heap, (short) (ptr + TLV_HEADER_SIZE), type); in exp() 59 Util.setShort(heap, (short) (ptr + TLV_HEADER_SIZE + 2), ANY_ARRAY_LENGTH); in exp() 65 Util.setShort(heap, (short) (ptr + TLV_HEADER_SIZE), KMType.INVALID_VALUE); in instance() 66 Util.setShort(heap, (short) (ptr + TLV_HEADER_SIZE + 2), length); in instance() 72 Util.setShort(heap, (short) (ptr + TLV_HEADER_SIZE), type); in instance() 88 Util.setShort(heap, (short) (getStartOff() + (short) (index * 2)), objPtr); in add() 96 return Util.getShort(heap, (short) (getStartOff() + (short) (index * 2))); in get() [all …]
|
D | KMByteBlob.java | 21 import javacard.framework.Util; 51 Util.setShort( in instance() 53 Util.setShort(heap, (short) (ptr + 1), length); in instance() 60 Util.arrayCopyNonAtomic( in instance() 70 if (Util.getShort(heap, (short) (ptr + 1)) == INVALID_VALUE) { in cast() 96 return Util.getShort(heap, (short) (getBaseOffset() + TLV_HEADER_SIZE)); in getStartOff() 100 Util.setShort(heap, (short) (getBaseOffset() + TLV_HEADER_SIZE), offset); in setStartOff() 105 return Util.getShort(heap, (short) (getBaseOffset() + 1)); in length() 114 Util.arrayCopyNonAtomic(heap, getStartOff(), destBuf, destStart, destLength); in getValue() 119 Util.arrayCopyNonAtomic(heap, getStartOff(), destBuf, destStart, destLength); in getValues() [all …]
|
D | KMBignumTag.java | 21 import javacard.framework.Util; 46 Util.setShort(heap, (short) (ptr + TLV_HEADER_SIZE), BIGNUM_TAG); in exp() 47 Util.setShort(heap, (short) (ptr + TLV_HEADER_SIZE + 2), INVALID_TAG); in exp() 48 Util.setShort(heap, (short) (ptr + TLV_HEADER_SIZE + 4), blobPtr); in exp() 60 Util.setShort(heap, (short) (ptr + TLV_HEADER_SIZE), BIGNUM_TAG); in instance() 61 Util.setShort(heap, (short) (ptr + TLV_HEADER_SIZE + 2), key); in instance() 62 Util.setShort(heap, (short) (ptr + TLV_HEADER_SIZE + 4), byteBlob); in instance() 70 if (Util.getShort(heap, (short) (ptr + TLV_HEADER_SIZE)) != BIGNUM_TAG) { in cast() 91 return Util.getShort( in getKey() 100 return Util.getShort( in getValue() [all …]
|
D | KMByteTag.java | 21 import javacard.framework.Util; 46 Util.setShort(heap, (short) (ptr + TLV_HEADER_SIZE), BYTES_TAG); in exp() 47 Util.setShort(heap, (short) (ptr + TLV_HEADER_SIZE + 2), INVALID_TAG); in exp() 48 Util.setShort(heap, (short) (ptr + TLV_HEADER_SIZE + 4), blobPtr); in exp() 60 Util.setShort(heap, (short) (ptr + TLV_HEADER_SIZE), BYTES_TAG); in instance() 61 Util.setShort(heap, (short) (ptr + TLV_HEADER_SIZE + 2), key); in instance() 62 Util.setShort(heap, (short) (ptr + TLV_HEADER_SIZE + 4), byteBlob); in instance() 70 if (Util.getShort(heap, (short) (ptr + TLV_HEADER_SIZE)) != BYTES_TAG) { in cast() 127 return Util.getShort( in getKey() 136 return Util.getShort( in getValue() [all …]
|
/external/libese/ready_se/google/keymint/KM200/Applet/src/com/android/javacard/keymaster/ |
D | KMMap.java | 21 import javacard.framework.Util; 48 Util.setShort(heap, (short) (ptr + TLV_HEADER_SIZE), (short) 0); in exp() 49 Util.setShort(heap, (short) (ptr + TLV_HEADER_SIZE + 2), ANY_MAP_LENGTH); in exp() 55 Util.setShort(heap, (short) (ptr + TLV_HEADER_SIZE), (short) 0); in instance() 56 Util.setShort(heap, (short) (ptr + TLV_HEADER_SIZE + 2), length); in instance() 62 Util.setShort(heap, (short) (ptr + TLV_HEADER_SIZE), type); in instance() 84 Util.setShort(heap, keyIndex, keyPtr); in add() 85 Util.setShort(heap, (short) (keyIndex + 2), valPtr); in add() 93 return Util.getShort( in getKey() 107 return Util.getShort( in getKeyValue() [all …]
|
D | KMArray.java | 21 import javacard.framework.Util; 51 Util.setShort(heap, (short) (ptr + TLV_HEADER_SIZE), KMType.INVALID_VALUE); in exp() 52 Util.setShort(heap, (short) (ptr + TLV_HEADER_SIZE + 2), ANY_ARRAY_LENGTH); in exp() 58 Util.setShort(heap, (short) (ptr + TLV_HEADER_SIZE), type); in exp() 59 Util.setShort(heap, (short) (ptr + TLV_HEADER_SIZE + 2), ANY_ARRAY_LENGTH); in exp() 65 Util.setShort(heap, (short) (ptr + TLV_HEADER_SIZE), KMType.INVALID_VALUE); in instance() 66 Util.setShort(heap, (short) (ptr + TLV_HEADER_SIZE + 2), length); in instance() 72 Util.setShort(heap, (short) (ptr + TLV_HEADER_SIZE), type); in instance() 88 Util.setShort(heap, (short) (getStartOff() + (short) (index * 2)), objPtr); in add() 96 return Util.getShort(heap, (short) (getStartOff() + (short) (index * 2))); in get() [all …]
|
D | KMByteBlob.java | 21 import javacard.framework.Util; 51 Util.setShort( in instance() 53 Util.setShort(heap, (short) (ptr + 1), length); in instance() 60 Util.arrayCopyNonAtomic( in instance() 70 if (Util.getShort(heap, (short) (ptr + 1)) == INVALID_VALUE) { in cast() 96 return Util.getShort(heap, (short) (getBaseOffset() + TLV_HEADER_SIZE)); in getStartOff() 100 Util.setShort(heap, (short) (getBaseOffset() + TLV_HEADER_SIZE), offset); in setStartOff() 105 return Util.getShort(heap, (short) (getBaseOffset() + 1)); in length() 114 Util.arrayCopyNonAtomic(heap, getStartOff(), destBuf, destStart, destLength); in getValue() 119 Util.arrayCopyNonAtomic(heap, getStartOff(), destBuf, destStart, destLength); in getValues() [all …]
|
D | KMBignumTag.java | 21 import javacard.framework.Util; 46 Util.setShort(heap, (short) (ptr + TLV_HEADER_SIZE), BIGNUM_TAG); in exp() 47 Util.setShort(heap, (short) (ptr + TLV_HEADER_SIZE + 2), INVALID_TAG); in exp() 48 Util.setShort(heap, (short) (ptr + TLV_HEADER_SIZE + 4), blobPtr); in exp() 60 Util.setShort(heap, (short) (ptr + TLV_HEADER_SIZE), BIGNUM_TAG); in instance() 61 Util.setShort(heap, (short) (ptr + TLV_HEADER_SIZE + 2), key); in instance() 62 Util.setShort(heap, (short) (ptr + TLV_HEADER_SIZE + 4), byteBlob); in instance() 70 if (Util.getShort(heap, (short) (ptr + TLV_HEADER_SIZE)) != BIGNUM_TAG) { in cast() 91 return Util.getShort( in getKey() 100 return Util.getShort( in getValue() [all …]
|
D | KMByteTag.java | 21 import javacard.framework.Util; 46 Util.setShort(heap, (short) (ptr + TLV_HEADER_SIZE), BYTES_TAG); in exp() 47 Util.setShort(heap, (short) (ptr + TLV_HEADER_SIZE + 2), INVALID_TAG); in exp() 48 Util.setShort(heap, (short) (ptr + TLV_HEADER_SIZE + 4), blobPtr); in exp() 60 Util.setShort(heap, (short) (ptr + TLV_HEADER_SIZE), BYTES_TAG); in instance() 61 Util.setShort(heap, (short) (ptr + TLV_HEADER_SIZE + 2), key); in instance() 62 Util.setShort(heap, (short) (ptr + TLV_HEADER_SIZE + 4), byteBlob); in instance() 70 if (Util.getShort(heap, (short) (ptr + TLV_HEADER_SIZE)) != BYTES_TAG) { in cast() 126 return Util.getShort( in getKey() 135 return Util.getShort( in getValue() [all …]
|
D | KMCosePairIntegerTag.java | 21 import javacard.framework.Util; 45 Util.setShort(heap, (short) (ptr + TLV_HEADER_SIZE), KMType.COSE_PAIR_INT_TAG_TYPE); in exp() 46 Util.setShort(heap, (short) (ptr + TLV_HEADER_SIZE + 2), KMType.INVALID_VALUE); in exp() 47 Util.setShort(heap, (short) (ptr + TLV_HEADER_SIZE + 4), KMInteger.exp()); in exp() 58 Util.setShort(heap, (short) (ptr + TLV_HEADER_SIZE), KMType.COSE_PAIR_INT_TAG_TYPE); in instance() 59 Util.setShort(heap, (short) (ptr + TLV_HEADER_SIZE + 2), keyPtr); in instance() 60 Util.setShort(heap, (short) (ptr + TLV_HEADER_SIZE + 4), valuePtr); in instance() 70 short valuePtr = Util.getShort(heap, (short) (ptr + TLV_HEADER_SIZE + 4)); in cast() 83 return Util.getShort( in getKeyPtr() 89 return Util.getShort( in getValuePtr()
|
/external/slf4j/slf4j-ext/src/test/java/org/slf4j/profiler/ |
D | UtilTest.java | 44 assertEquals(DurationUnit.NANOSECOND, Util.selectDurationUnitForDisplay(10)); in testSelectDurationUnitForDisplay() 45 …assertEquals(DurationUnit.NANOSECOND, Util.selectDurationUnitForDisplay(9 * Util.NANOS_IN_ONE_MICR… in testSelectDurationUnitForDisplay() 46 …assertEquals(DurationUnit.MICROSECOND, Util.selectDurationUnitForDisplay(11 * Util.NANOS_IN_ONE_MI… in testSelectDurationUnitForDisplay() 47 …assertEquals(DurationUnit.MICROSECOND, Util.selectDurationUnitForDisplay(9 * Util.NANOS_IN_ONE_MIL… in testSelectDurationUnitForDisplay() 48 …assertEquals(DurationUnit.MILLISSECOND, Util.selectDurationUnitForDisplay(11 * Util.NANOS_IN_ONE_M… in testSelectDurationUnitForDisplay() 49 …assertEquals(DurationUnit.SECOND, Util.selectDurationUnitForDisplay(11 * Util.NANOS_IN_ONE_SECOND)… in testSelectDurationUnitForDisplay()
|
/external/ow2-asm/asm-tree/src/test/java/org/objectweb/asm/tree/ |
D | UtilTest.java | 46 assertTrue(Util.asArrayList((Object[]) null).isEmpty()); in testAsArrayList_nullArray() 47 assertTrue(Util.asArrayList((byte[]) null).isEmpty()); in testAsArrayList_nullArray() 48 assertTrue(Util.asArrayList((boolean[]) null).isEmpty()); in testAsArrayList_nullArray() 49 assertTrue(Util.asArrayList((short[]) null).isEmpty()); in testAsArrayList_nullArray() 50 assertTrue(Util.asArrayList((char[]) null).isEmpty()); in testAsArrayList_nullArray() 51 assertTrue(Util.asArrayList((int[]) null).isEmpty()); in testAsArrayList_nullArray() 52 assertTrue(Util.asArrayList((float[]) null).isEmpty()); in testAsArrayList_nullArray() 53 assertTrue(Util.asArrayList((long[]) null).isEmpty()); in testAsArrayList_nullArray() 54 assertTrue(Util.asArrayList((double[]) null).isEmpty()); in testAsArrayList_nullArray() 59 List<String> strings = Util.asArrayList(3); in testAsArrayList_withLength() [all …]
|
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/core/src/main/java/com/google/android/exoplayer2/mediacodec/ |
D | MediaCodecUtil.java | 35 import com.google.android.exoplayer2.util.Util; 165 Util.SDK_INT >= 21 in getDecoderInfos() 169 if (secure && decoderInfos.isEmpty() && 21 <= Util.SDK_INT && Util.SDK_INT <= 23) { in getDecoderInfos() 226 result = max(result, Util.SDK_INT >= 21 ? (720 * 480) : (480 * 360)); in maxH264DecodableFrameSize() 355 if (Util.SDK_INT <= 23 && !decoderInfos.isEmpty()) { in getDecoderInfosInternal() 432 if (Util.SDK_INT < 21 in isCodecUsableDecoder() 444 if (Util.SDK_INT < 18 in isCodecUsableDecoder() 446 && ("a70".equals(Util.DEVICE) in isCodecUsableDecoder() 447 || ("Xiaomi".equals(Util.MANUFACTURER) && Util.DEVICE.startsWith("HM")))) { in isCodecUsableDecoder() 453 if (Util.SDK_INT == 16 in isCodecUsableDecoder() [all …]
|
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/core/src/main/java/com/google/android/exoplayer2/mediacodec/ |
D | MediaCodecUtil.java | 35 import com.google.android.exoplayer2.util.Util; 166 Util.SDK_INT >= 21 in getDecoderInfos() 170 if (secure && decoderInfos.isEmpty() && 21 <= Util.SDK_INT && Util.SDK_INT <= 23) { in getDecoderInfos() 227 result = max(result, Util.SDK_INT >= 21 ? (720 * 480) : (480 * 360)); in maxH264DecodableFrameSize() 391 if (Util.SDK_INT <= 23 && !decoderInfos.isEmpty()) { in getDecoderInfosInternal() 470 if (Util.SDK_INT < 21 in isCodecUsableDecoder() 482 if (Util.SDK_INT < 18 in isCodecUsableDecoder() 484 && ("a70".equals(Util.DEVICE) in isCodecUsableDecoder() 485 || ("Xiaomi".equals(Util.MANUFACTURER) && Util.DEVICE.startsWith("HM")))) { in isCodecUsableDecoder() 491 if (Util.SDK_INT == 16 in isCodecUsableDecoder() [all …]
|
/external/protobuf/php/ext/google/protobuf/ |
D | convert.c | 56 PHP_METHOD(Util, checkInt32) {} in PHP_METHOD() argument 57 PHP_METHOD(Util, checkUint32) {} in PHP_METHOD() argument 58 PHP_METHOD(Util, checkInt64) {} in PHP_METHOD() argument 59 PHP_METHOD(Util, checkUint64) {} in PHP_METHOD() argument 60 PHP_METHOD(Util, checkEnum) {} in PHP_METHOD() argument 61 PHP_METHOD(Util, checkFloat) {} in PHP_METHOD() argument 62 PHP_METHOD(Util, checkDouble) {} in PHP_METHOD() argument 63 PHP_METHOD(Util, checkBool) {} in PHP_METHOD() argument 64 PHP_METHOD(Util, checkString) {} in PHP_METHOD() argument 65 PHP_METHOD(Util, checkBytes) {} in PHP_METHOD() argument [all …]
|
/external/cronet/third_party/protobuf/php/ext/google/protobuf/ |
D | convert.c | 56 PHP_METHOD(Util, checkInt32) {} in PHP_METHOD() argument 57 PHP_METHOD(Util, checkUint32) {} in PHP_METHOD() argument 58 PHP_METHOD(Util, checkInt64) {} in PHP_METHOD() argument 59 PHP_METHOD(Util, checkUint64) {} in PHP_METHOD() argument 60 PHP_METHOD(Util, checkEnum) {} in PHP_METHOD() argument 61 PHP_METHOD(Util, checkFloat) {} in PHP_METHOD() argument 62 PHP_METHOD(Util, checkDouble) {} in PHP_METHOD() argument 63 PHP_METHOD(Util, checkBool) {} in PHP_METHOD() argument 64 PHP_METHOD(Util, checkString) {} in PHP_METHOD() argument 65 PHP_METHOD(Util, checkBytes) {} in PHP_METHOD() argument [all …]
|
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/transformer/src/test/java/com/google/android/exoplayer2/transformer/ |
D | SegmentSpeedProviderTest.java | 27 import com.google.android.exoplayer2.util.Util; 63 assertThat(provider.getSpeed(Util.msToUs(0))).isEqualTo(8); in getSpeed_returnsCorrectSpeed() 64 assertThat(provider.getSpeed(Util.msToUs(500))).isEqualTo(1); in getSpeed_returnsCorrectSpeed() 65 assertThat(provider.getSpeed(Util.msToUs(800))).isEqualTo(1); in getSpeed_returnsCorrectSpeed() 66 assertThat(provider.getSpeed(Util.msToUs(1000))).isEqualTo(8); in getSpeed_returnsCorrectSpeed() 67 assertThat(provider.getSpeed(Util.msToUs(1250))).isEqualTo(8); in getSpeed_returnsCorrectSpeed() 68 assertThat(provider.getSpeed(Util.msToUs(1500))).isEqualTo(2); in getSpeed_returnsCorrectSpeed() 69 assertThat(provider.getSpeed(Util.msToUs(1650))).isEqualTo(2); in getSpeed_returnsCorrectSpeed() 70 assertThat(provider.getSpeed(Util.msToUs(2000))).isEqualTo(4); in getSpeed_returnsCorrectSpeed() 71 assertThat(provider.getSpeed(Util.msToUs(2400))).isEqualTo(4); in getSpeed_returnsCorrectSpeed() [all …]
|
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/transformer/src/test/java/com/google/android/exoplayer2/transformer/ |
D | SegmentSpeedProviderTest.java | 27 import com.google.android.exoplayer2.util.Util; 63 assertThat(provider.getSpeed(Util.msToUs(0))).isEqualTo(8); in getSpeed_returnsCorrectSpeed() 64 assertThat(provider.getSpeed(Util.msToUs(500))).isEqualTo(1); in getSpeed_returnsCorrectSpeed() 65 assertThat(provider.getSpeed(Util.msToUs(800))).isEqualTo(1); in getSpeed_returnsCorrectSpeed() 66 assertThat(provider.getSpeed(Util.msToUs(1000))).isEqualTo(8); in getSpeed_returnsCorrectSpeed() 67 assertThat(provider.getSpeed(Util.msToUs(1250))).isEqualTo(8); in getSpeed_returnsCorrectSpeed() 68 assertThat(provider.getSpeed(Util.msToUs(1500))).isEqualTo(2); in getSpeed_returnsCorrectSpeed() 69 assertThat(provider.getSpeed(Util.msToUs(1650))).isEqualTo(2); in getSpeed_returnsCorrectSpeed() 70 assertThat(provider.getSpeed(Util.msToUs(2000))).isEqualTo(4); in getSpeed_returnsCorrectSpeed() 71 assertThat(provider.getSpeed(Util.msToUs(2400))).isEqualTo(4); in getSpeed_returnsCorrectSpeed() [all …]
|