Home
last modified time | relevance | path

Searched refs:ordinal (Results 1 – 25 of 89) sorted by relevance

1234

/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/
DMediaMetadataTest.java52 validateMetatData(mp3_test_file.ID3V1V2.ordinal(), MediaNames.META_DATA_MP3); in testID3V1V2Metadata()
57 validateMetatData(mp3_test_file.ID3V2.ordinal(), MediaNames.META_DATA_MP3); in testID3V2Metadata()
62 validateMetatData(mp3_test_file.ID3V1.ordinal(), MediaNames.META_DATA_MP3); in testID3V1Metadata()
84 assertEquals(TAG, meta_data_file[fileIndex][meta.CD_TRACK.ordinal()], value); in validateMetatData()
88 assertEquals(TAG, meta_data_file[fileIndex][meta.ALBUM.ordinal()], value); in validateMetatData()
92 assertEquals(TAG, meta_data_file[fileIndex][meta.ARTIST.ordinal()], value); in validateMetatData()
96 assertEquals(TAG, meta_data_file[fileIndex][meta.AUTHOR.ordinal()], value); in validateMetatData()
100 assertEquals(TAG, meta_data_file[fileIndex][meta.COMPOSER.ordinal()], value); in validateMetatData()
104 assertEquals(TAG, meta_data_file[fileIndex][meta.DATE.ordinal()], value); in validateMetatData()
108 assertEquals(TAG, meta_data_file[fileIndex][meta.GENRE.ordinal()], value); in validateMetatData()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/ui/
DPerimeterPathGuide.java164 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/
DMarshalQueryableEnum.java175 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/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/
DIccCardStatusTest.java56 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/base/core/tests/coretests/src/com/android/internal/os/
DBatteryStatsHelperTest.java264 assertEquals(BatterySipper.DrainType.AMBIENT_DISPLAY.ordinal(), in testDrainTypesSyncedWithProto()
267 assertEquals(BatterySipper.DrainType.BLUETOOTH.ordinal(), in testDrainTypesSyncedWithProto()
269 assertEquals(BatterySipper.DrainType.CAMERA.ordinal(), in testDrainTypesSyncedWithProto()
271 assertEquals(BatterySipper.DrainType.CELL.ordinal(), in testDrainTypesSyncedWithProto()
273 assertEquals(BatterySipper.DrainType.FLASHLIGHT.ordinal(), in testDrainTypesSyncedWithProto()
275 assertEquals(BatterySipper.DrainType.IDLE.ordinal(), in testDrainTypesSyncedWithProto()
277 assertEquals(BatterySipper.DrainType.MEMORY.ordinal(), in testDrainTypesSyncedWithProto()
279 assertEquals(BatterySipper.DrainType.OVERCOUNTED.ordinal(), in testDrainTypesSyncedWithProto()
281 assertEquals(BatterySipper.DrainType.PHONE.ordinal(), in testDrainTypesSyncedWithProto()
283 assertEquals(BatterySipper.DrainType.SCREEN.ordinal(), in testDrainTypesSyncedWithProto()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DIccServiceTable.java75 int ordinal = (i * 8) + bit; in toString() local
76 if (ordinal < values.length) { in toString()
77 builder.append(values[ordinal]); in toString()
79 builder.append('#').append(ordinal + 1); // service number (one-based) in toString()
/frameworks/av/media/codec2/components/aac/
DC2SoftAacEnc.cpp367 c2_cntr64_t inputTimestampUs = work->input.ordinal.timestamp; in process()
376 mNextFrameTimestampUs = work->input.ordinal.timestamp; in process()
394 uint64_t inputIndex = work->input.ordinal.frameIndex.peeku(); in process()
431 FillWork(uint32_t flags, C2WorkOrdinalStruct ordinal, in process() argument
433 : mFlags(flags), mOrdinal(ordinal), mBuffer(buffer) { in process()
440 work->worklets.front()->output.ordinal = mOrdinal; in process()
589 C2WorkOrdinalStruct ordinal = work->input.ordinal; in process() local
590 ordinal.frameIndex = mOutIndex++; in process()
591 ordinal.timestamp = front.timestampUs; in process()
595 FillWork(C2FrameData::FLAG_INCOMPLETE, ordinal, front.buffer)); in process()
[all …]
DC2SoftAacDec.cpp460 output.ordinal = work->input.ordinal; in drainRingBuffer()
494 output.ordinal = work->input.ordinal; in drainRingBuffer()
499 if (work && work->input.ordinal.frameIndex == c2_cntr64_t(outInfo.frameIndex)) { in drainRingBuffer()
563 work->worklets.front()->output.ordinal = work->input.ordinal; in process()
569 inInfo.frameIndex = work->input.ordinal.frameIndex.peeku(); in process()
570 inInfo.timestamp = work->input.ordinal.timestamp.peeku(); in process()
813 work->worklets.front()->output.ordinal = work->input.ordinal; in drainInternal()
/frameworks/av/media/codec2/sfplugin/
DC2OMXNode.cpp377 work->input.ordinal.timestamp = timestamp; in emptyBuffer()
381 work->input.ordinal.customOrdinal = timestamp; // save input timestamp in emptyBuffer()
388 work->input.ordinal.timestamp = in emptyBuffer()
392 work->input.ordinal.timestamp = mPrevCodecTimestamp - mAdjustTimestampGapUs; in emptyBuffer()
394 mPrevInputTimestamp = work->input.ordinal.customOrdinal; in emptyBuffer()
395 mPrevCodecTimestamp = work->input.ordinal.timestamp; in emptyBuffer()
397 work->input.ordinal.customOrdinal.peekll(), in emptyBuffer()
398 work->input.ordinal.timestamp.peekll(), in emptyBuffer()
402 work->input.ordinal.frameIndex = mFrameIndex++; in emptyBuffer()
412 mBufferIdsInUse.lock()->emplace(work->input.ordinal.frameIndex.peeku(), buffer); in emptyBuffer()
DCCodecBufferChannel.cpp158 entry->ordinal = mPending.front().ordinal; in pop()
167 const C2WorkOrdinalStruct &ordinal) { in emplace() argument
173 mStash.emplace_back(buffer, timestamp, flags, ordinal); in emplace()
178 if (less(ordinal, it->ordinal)) { in emplace()
182 mStash.emplace(it, buffer, timestamp, flags, ordinal); in emplace()
294 work->input.ordinal.timestamp = timeUs; in queueInputBufferInternal()
295 work->input.ordinal.frameIndex = mFrameIndex++; in queueInputBufferInternal()
299 work->input.ordinal.customOrdinal = timeUs; in queueInputBufferInternal()
302 uint64_t queuedFrameIndex = work->input.ordinal.frameIndex.peeku(); in queueInputBufferInternal()
354 work->input.ordinal.timestamp = timeUs; in queueInputBufferInternal()
[all …]
/frameworks/av/media/codec2/components/g711/
DC2SoftG711Dec.cpp163 (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/
DC2SoftGsmDec.cpp198 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/
DC2SoftOpusEnc.cpp328 inSize, (int)work->input.ordinal.timestamp.peeku(), in process()
329 (int)work->input.ordinal.frameIndex.peeku(), work->input.flags); in process()
340 mAnchorTimeStamp = work->input.ordinal.timestamp.peekull(); in process()
365 uint64_t inputIndex = work->input.ordinal.frameIndex.peeku(); in process()
370 FillWork(uint32_t flags, C2WorkOrdinalStruct ordinal, in process() argument
372 : mFlags(flags), mOrdinal(ordinal), mBuffer(buffer) { in process()
379 work->worklets.front()->output.ordinal = mOrdinal; in process()
397 C2WorkOrdinalStruct outOrdinal = work->input.ordinal; in process()
537 C2WorkOrdinalStruct outOrdinal = work->input.ordinal; in drainInternal()
568 work->worklets.front()->output.ordinal = outOrdinal; in drainInternal()
DC2SoftOpusDec.cpp180 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/hidl/1.0/vts/functional/common/
Dmedia_c2_hidl_test_common.cpp42 work->input.ordinal.timestamp = 0; in testInputBuffer()
43 work->input.ordinal.frameIndex = 0; in testInputBuffer()
115 work->input.ordinal.frameIndex.peeku()); in workDone()
117 (int)work->worklets.front()->output.ordinal.frameIndex.peeku()); in workDone()
/frameworks/base/graphics/java/android/graphics/
DColorSpace.java1404 return sNamedColorSpaces[name.ordinal()]; in get()
1455 sNamedColorSpaces[Named.SRGB.ordinal()] = new ColorSpace.Rgb(
1460 Named.SRGB.ordinal()
1462 sNamedColorSpaces[Named.LINEAR_SRGB.ordinal()] = new ColorSpace.Rgb(
1468 Named.LINEAR_SRGB.ordinal()
1470 sNamedColorSpaces[Named.EXTENDED_SRGB.ordinal()] = new ColorSpace.Rgb(
1479 Named.EXTENDED_SRGB.ordinal()
1481 sNamedColorSpaces[Named.LINEAR_EXTENDED_SRGB.ordinal()] = new ColorSpace.Rgb(
1487 Named.LINEAR_EXTENDED_SRGB.ordinal()
1489 sNamedColorSpaces[Named.BT709.ordinal()] = new ColorSpace.Rgb(
[all …]
/frameworks/av/media/codec2/components/mp3/
DC2SoftMp3Dec.cpp359 work->worklets.front()->output.ordinal = work->input.ordinal; in process()
363 (int)work->input.ordinal.timestamp.peeku(), (int)work->input.ordinal.frameIndex.peeku()); in process()
471 mAnchorTimeStamp = work->input.ordinal.timestamp.peekull(); in process()
497 work->worklets.front()->output.ordinal = work->input.ordinal; in process()
498 work->worklets.front()->output.ordinal.timestamp = mAnchorTimeStamp + outTimeStamp; in process()
/frameworks/av/media/codec2/components/amr_nb_wb/
DC2SoftAmrNbEnc.cpp177 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.peekull(); in process()
275 work->worklets.front()->output.ordinal.timestamp = mAnchorTimeStamp + outTimeStamp; in process()
DC2SoftAmrDec.cpp269 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()
366 work->worklets.front()->output.ordinal = work->input.ordinal; in process()
DC2SoftAmrWbEnc.cpp259 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.peekull(); in process()
350 work->worklets.front()->output.ordinal.timestamp = mAnchorTimeStamp + outTimeStamp; in process()
/frameworks/av/media/codec2/components/raw/
DC2SoftRawDec.cpp151 (int)work->input.ordinal.timestamp.peeku(), (int)work->input.ordinal.frameIndex.peeku()); in process()
155 work->worklets.front()->output.ordinal = work->input.ordinal; in process()
/frameworks/av/media/codec2/components/flac/
DC2SoftFlacDec.cpp171 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()
308 work->worklets.front()->output.ordinal = work->input.ordinal; in process()
/frameworks/base/core/java/android/hardware/lights/
DLight.java41 public Light(int id, int ordinal, int type) { in Light() argument
43 mOrdinal = ordinal; in Light()
/frameworks/av/media/codec2/core/include/
DC2Work.h159 C2WorkOrdinalStruct ordinal; member
229 C2WorkOrdinalStruct ordinal; member
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDataConnectionReasons.java44 if (reason.ordinal() > mDataAllowedReason.ordinal()) { in add()

1234