/frameworks/base/services/tests/servicestests/src/com/android/server/timezonedetector/ |
D | OrdinalGeneratorTest.java | 36 int oneOrd = ordinalGenerator.ordinal("One"); in testOrdinal_withIdentityFunction() 37 int twoOrd = ordinalGenerator.ordinal("Two"); in testOrdinal_withIdentityFunction() 40 assertEquals(oneOrd, ordinalGenerator.ordinal("One")); in testOrdinal_withIdentityFunction() 41 assertEquals(twoOrd, ordinalGenerator.ordinal("Two")); in testOrdinal_withIdentityFunction() 43 int threeOrd = ordinalGenerator.ordinal("Three"); in testOrdinal_withIdentityFunction() 53 assertEquals(oneTwoOrds[0], ordinalGenerator.ordinal("One")); in testOrdinals_withIdentityFunction() 54 assertEquals(oneTwoOrds[1], ordinalGenerator.ordinal("Two")); in testOrdinals_withIdentityFunction() 55 assertEquals(twoThreeOrds[0], ordinalGenerator.ordinal("Two")); in testOrdinals_withIdentityFunction() 56 assertEquals(twoThreeOrds[1], ordinalGenerator.ordinal("Three")); in testOrdinals_withIdentityFunction() 63 int oneOrd = ordinalGenerator.ordinal("One"); in testOrdinal_withCanonicalizationFunction() [all …]
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/ |
D | MediaMetadataTest.java | 61 validateMetatData(mp3_test_file.ID3V1V2.ordinal(), MediaNames.META_DATA_MP3); in testID3V1V2Metadata() 66 validateMetatData(mp3_test_file.ID3V2.ordinal(), MediaNames.META_DATA_MP3); in testID3V2Metadata() 71 validateMetatData(mp3_test_file.ID3V1.ordinal(), MediaNames.META_DATA_MP3); in testID3V1Metadata() 95 assertEquals(TAG, metadataFile[fileIndex][meta.CD_TRACK.ordinal()], value); in validateMetatData() 99 assertEquals(TAG, metadataFile[fileIndex][meta.ALBUM.ordinal()], value); in validateMetatData() 103 assertEquals(TAG, metadataFile[fileIndex][meta.ARTIST.ordinal()], value); in validateMetatData() 107 assertEquals(TAG, metadataFile[fileIndex][meta.AUTHOR.ordinal()], value); in validateMetatData() 111 assertEquals(TAG, metadataFile[fileIndex][meta.COMPOSER.ordinal()], value); in validateMetatData() 115 assertEquals(TAG, metadataFile[fileIndex][meta.DATE.ordinal()], value); in validateMetatData() 119 assertEquals(TAG, metadataFile[fileIndex][meta.GENRE.ordinal()], value); in validateMetatData() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/ui/ |
D | PerimeterPathGuide.java | 164 RegionAttributes regionAttributes = mRegions[region.ordinal()]; in getCoord() 180 return mRegions[region.ordinal()].normalizedLength; in getRegionWidth() 241 mRegions[Region.BOTTOM_LEFT.ordinal()].path = in computeRegions() 243 mRegions[Region.BOTTOM_RIGHT.ordinal()].path = in computeRegions() 245 mRegions[Region.TOP_RIGHT.ordinal()].path = in computeRegions() 247 mRegions[Region.TOP_LEFT.ordinal()].path = in computeRegions() 250 mRegions[Region.BOTTOM_LEFT.ordinal()].path.transform(matrix); in computeRegions() 251 mRegions[Region.BOTTOM_RIGHT.ordinal()].path.transform(matrix); in computeRegions() 252 mRegions[Region.TOP_RIGHT.ordinal()].path.transform(matrix); in computeRegions() 253 mRegions[Region.TOP_LEFT.ordinal()].path.transform(matrix); in computeRegions() [all …]
|
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/ |
D | MarshalQueryableEnum.java | 175 int ordinal = enumValue.ordinal(); in getEnumValue() local 177 return values[ordinal]; in getEnumValue() 180 return ordinal; in getEnumValue() 191 int ordinal; in getEnumFromValue() local 195 ordinal = -1; in getEnumFromValue() 199 ordinal = i; in getEnumFromValue() 204 ordinal = value; in getEnumFromValue() 209 if (ordinal < 0 || ordinal >= values.length) { in getEnumFromValue() 218 return values[ordinal]; in getEnumFromValue()
|
/frameworks/base/services/core/java/com/android/server/timezonedetector/ |
D | OrdinalGenerator.java | 42 int ordinal(T object) { in ordinal() method in OrdinalGenerator 45 int ordinal = mKnownIds.indexOf(canonical); in ordinal() local 46 if (ordinal < 0) { in ordinal() 47 ordinal = mKnownIds.size(); in ordinal() 50 return ordinal; in ordinal() 56 ordinals[i] = ordinal(objects.get(i)); in ordinals()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/ |
D | IccCardStatusTest.java | 56 mIccCardStatus.setCardState(IccCardStatus.CardState.CARDSTATE_ABSENT.ordinal()); in testSetCardState() 60 mIccCardStatus.setCardState(IccCardStatus.CardState.CARDSTATE_PRESENT.ordinal()); in testSetCardState() 64 mIccCardStatus.setCardState(IccCardStatus.CardState.CARDSTATE_ERROR.ordinal()); in testSetCardState() 72 mIccCardStatus.setUniversalPinState(IccCardStatus.PinState.PINSTATE_UNKNOWN.ordinal()); in testSetPinState() 77 IccCardStatus.PinState.PINSTATE_ENABLED_BLOCKED.ordinal()); in testSetPinState()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/ |
D | IccServiceTable.java | 76 int ordinal = (i * 8) + bit; in toString() local 77 if (ordinal < values.length) { in toString() 78 builder.append(values[ordinal]); in toString() 80 builder.append('#').append(ordinal + 1); // service number (one-based) in toString()
|
/frameworks/base/graphics/java/android/graphics/ |
D | ColorSpace.java | 1451 return sNamedColorSpaces[name.ordinal()]; in get() 1486 sNamedColorSpaces[Named.SRGB.ordinal()] = new ColorSpace.Rgb( 1492 Named.SRGB.ordinal() 1494 sDataToColorSpaces.put(DataSpace.DATASPACE_SRGB, Named.SRGB.ordinal()); in sDataToColorSpaces.put() argument 1495 sNamedColorSpaces[Named.LINEAR_SRGB.ordinal()] = new ColorSpace.Rgb( 1501 Named.LINEAR_SRGB.ordinal() 1503 sDataToColorSpaces.put(DataSpace.DATASPACE_SRGB_LINEAR, Named.LINEAR_SRGB.ordinal()); in sDataToColorSpaces.put() argument 1504 sNamedColorSpaces[Named.EXTENDED_SRGB.ordinal()] = new ColorSpace.Rgb( 1513 Named.EXTENDED_SRGB.ordinal() 1515 sDataToColorSpaces.put(DataSpace.DATASPACE_SCRGB, Named.EXTENDED_SRGB.ordinal()); in sDataToColorSpaces.put() argument [all …]
|
/frameworks/av/media/codec2/components/aac/ |
D | C2SoftAacEnc.cpp | 392 c2_cntr64_t inputTimestampUs = work->input.ordinal.timestamp; in process() 399 mNextFrameTimestampUs = work->input.ordinal.timestamp; in process() 417 uint64_t inputIndex = work->input.ordinal.frameIndex.peeku(); in process() 454 FillWork(uint32_t flags, C2WorkOrdinalStruct ordinal, in process() argument 456 : mFlags(flags), mOrdinal(ordinal), mBuffer(buffer) { in process() 463 work->worklets.front()->output.ordinal = mOrdinal; in process() 612 C2WorkOrdinalStruct ordinal = work->input.ordinal; in process() local 613 ordinal.frameIndex = mOutIndex++; in process() 614 ordinal.timestamp = front.timestampUs; in process() 618 FillWork(C2FrameData::FLAG_INCOMPLETE, ordinal, front.buffer)); in process() [all …]
|
/frameworks/base/core/java/android/hardware/lights/ |
D | Light.java | 103 public Light(int id, int ordinal, int type) { in Light() argument 104 this(id, "Light", ordinal, type, 0); in Light() 112 public Light(int id, String name, int ordinal, int type, int capabilities) { in Light() argument 115 mOrdinal = ordinal; in Light()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | MeasuredEnergySnapshot.java | 176 final int ordinal = consumer.ordinal; in updateAndGetDelta() local 215 output.cpuClusterChargeUC[ordinal] = deltaChargeUC; in updateAndGetDelta() 222 output.displayChargeUC[ordinal] = deltaChargeUC; in updateAndGetDelta() 242 output.otherTotalChargeUC[ordinal] = deltaChargeUC; in updateAndGetDelta() 243 output.otherUidChargesUC[ordinal] = otherUidCharges; in updateAndGetDelta() 329 consumer.id, consumer.ordinal, consumer.type, consumer.name)); in dump()
|
/frameworks/av/media/codec2/components/g711/ |
D | C2SoftG711Dec.cpp | 163 (int)work->input.ordinal.timestamp.peeku(), (int)work->input.ordinal.frameIndex.peeku()); in process() 168 work->worklets.front()->output.ordinal = work->input.ordinal; in process() 203 work->worklets.front()->output.ordinal = work->input.ordinal; in process()
|
/frameworks/av/media/codec2/components/gsm/ |
D | C2SoftGsmDec.cpp | 198 work->worklets.front()->output.ordinal = work->input.ordinal; in process() 206 (int)work->input.ordinal.timestamp.peeku(), (int)work->input.ordinal.frameIndex.peeku()); in process() 237 work->worklets.front()->output.ordinal = work->input.ordinal; in process()
|
/frameworks/av/media/codec2/components/opus/ |
D | C2SoftOpusEnc.cpp | 354 inSize, (int)work->input.ordinal.timestamp.peeku(), in process() 355 (int)work->input.ordinal.frameIndex.peeku(), work->input.flags); in process() 366 mAnchorTimeStamp = work->input.ordinal.timestamp.peekll(); in process() 391 uint64_t inputIndex = work->input.ordinal.frameIndex.peeku(); in process() 396 FillWork(uint32_t flags, C2WorkOrdinalStruct ordinal, in process() argument 398 : mFlags(flags), mOrdinal(ordinal), mBuffer(buffer) { in process() 405 work->worklets.front()->output.ordinal = mOrdinal; in process() 423 C2WorkOrdinalStruct outOrdinal = work->input.ordinal; in process() 563 C2WorkOrdinalStruct outOrdinal = work->input.ordinal; in drainInternal() 594 work->worklets.front()->output.ordinal = outOrdinal; in drainInternal()
|
D | C2SoftOpusDec.cpp | 180 work->worklets.front()->output.ordinal = work->input.ordinal; in fillEmptyWork() 245 (int)work->input.ordinal.timestamp.peeku(), (int)work->input.ordinal.frameIndex.peeku()); in process() 375 if (work->input.ordinal.timestamp.peeku() == 0) mSamplesToDiscard = mCodecDelay; in process() 427 work->worklets.front()->output.ordinal = work->input.ordinal; in process()
|
/frameworks/av/media/codec2/sfplugin/ |
D | C2OMXNode.cpp | 438 work->input.ordinal.timestamp = timestamp; in emptyBuffer() 442 work->input.ordinal.customOrdinal = timestamp; // save input timestamp in emptyBuffer() 449 work->input.ordinal.timestamp = in emptyBuffer() 453 work->input.ordinal.timestamp = mPrevCodecTimestamp - mAdjustTimestampGapUs; in emptyBuffer() 455 mPrevInputTimestamp = work->input.ordinal.customOrdinal; in emptyBuffer() 456 mPrevCodecTimestamp = work->input.ordinal.timestamp; in emptyBuffer() 458 work->input.ordinal.customOrdinal.peekll(), in emptyBuffer() 459 work->input.ordinal.timestamp.peekll(), in emptyBuffer() 463 work->input.ordinal.frameIndex = mFrameIndex++; in emptyBuffer() 485 mBufferIdsInUse.lock()->emplace(work->input.ordinal.frameIndex.peeku(), buffer); in emptyBuffer()
|
D | CCodecBufferChannel.cpp | 232 work->input.ordinal.timestamp = timeUs; in queueInputBufferInternal() 233 work->input.ordinal.frameIndex = mFrameIndex++; in queueInputBufferInternal() 237 work->input.ordinal.customOrdinal = timeUs; in queueInputBufferInternal() 277 uint64_t frameIndex = work->input.ordinal.frameIndex.peeku(); in queueInputBufferInternal() 299 mFrameIndex = (items.back()->input.ordinal.frameIndex + 1).peek(); in queueInputBufferInternal() 322 work->input.ordinal.timestamp = timeUs; in queueInputBufferInternal() 323 work->input.ordinal.frameIndex = mFrameIndex++; in queueInputBufferInternal() 325 work->input.ordinal.customOrdinal = timeUs; in queueInputBufferInternal() 340 work->input.ordinal.frameIndex.peeku(), in queueInputBufferInternal() 350 watcher->onWorkDone(work->input.ordinal.frameIndex.peeku()); in queueInputBufferInternal() [all …]
|
/frameworks/av/media/codec2/components/amr_nb_wb/ |
D | C2SoftAmrNbEnc.cpp | 177 work->worklets.front()->output.ordinal = work->input.ordinal; in fillEmptyWork() 209 inSize, (int)work->input.ordinal.timestamp.peeku(), in process() 210 (int)work->input.ordinal.frameIndex.peeku(), work->input.flags); in process() 269 mAnchorTimeStamp = work->input.ordinal.timestamp.peekll(); in process() 275 work->worklets.front()->output.ordinal.timestamp = mAnchorTimeStamp + outTimeStamp; in process()
|
D | C2SoftAmrDec.cpp | 269 work->worklets.front()->output.ordinal = work->input.ordinal; in process() 278 (int)work->input.ordinal.timestamp.peeku(), (int)work->input.ordinal.frameIndex.peeku()); in process() 371 work->worklets.front()->output.ordinal = work->input.ordinal; in process()
|
D | C2SoftAmrWbEnc.cpp | 259 work->worklets.front()->output.ordinal = work->input.ordinal; in fillEmptyWork() 291 inSize, (int)work->input.ordinal.timestamp.peeku(), in process() 292 (int)work->input.ordinal.frameIndex.peeku(), work->input.flags); in process() 344 mAnchorTimeStamp = work->input.ordinal.timestamp.peekll(); in process() 350 work->worklets.front()->output.ordinal.timestamp = mAnchorTimeStamp + outTimeStamp; in process()
|
/frameworks/av/media/codec2/components/raw/ |
D | C2SoftRawDec.cpp | 153 (int)work->input.ordinal.timestamp.peeku(), (int)work->input.ordinal.frameIndex.peeku()); in process() 157 work->worklets.front()->output.ordinal = work->input.ordinal; in process()
|
/frameworks/av/media/codec2/components/mp3/ |
D | C2SoftMp3Dec.cpp | 327 work->worklets.front()->output.ordinal = work->input.ordinal; in fillEmptyWork() 367 work->worklets.front()->output.ordinal = work->input.ordinal; in process() 371 (int)work->input.ordinal.timestamp.peeku(), (int)work->input.ordinal.frameIndex.peeku()); in process() 479 mAnchorTimeStamp = work->input.ordinal.timestamp.peekull(); in process() 505 work->worklets.front()->output.ordinal.timestamp = mAnchorTimeStamp + outTimeStamp; in process()
|
/frameworks/av/media/codec2/components/flac/ |
D | C2SoftFlacDec.cpp | 171 work->worklets.front()->output.ordinal = work->input.ordinal; in fillEmptyWork() 206 (int)work->input.ordinal.timestamp.peeku(), (int)work->input.ordinal.frameIndex.peeku()); in process() 313 work->worklets.front()->output.ordinal = work->input.ordinal; in process()
|
/frameworks/av/media/codec2/core/include/ |
D | C2Work.h | 184 C2WorkOrdinalStruct ordinal; member 254 C2WorkOrdinalStruct ordinal; member
|
/frameworks/native/include/input/ |
D | InputDevice.h | 173 int32_t ordinal) in InputDeviceLightInfo() 174 : name(name), id(id), type(type), ordinal(ordinal) {} in InputDeviceLightInfo() 182 int32_t ordinal; member
|