Home
last modified time | relevance | path

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

1234567

/frameworks/base/services/tests/timetests/src/com/android/server/timezonedetector/
DOrdinalGeneratorTest.java36 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/
DMediaMetadataTest.java62 validateMetatData(mp3_test_file.ID3V1V2.ordinal(), MediaNames.META_DATA_MP3); in testID3V1V2Metadata()
67 validateMetatData(mp3_test_file.ID3V2.ordinal(), MediaNames.META_DATA_MP3); in testID3V2Metadata()
72 validateMetatData(mp3_test_file.ID3V1.ordinal(), MediaNames.META_DATA_MP3); in testID3V1Metadata()
96 assertEquals(TAG, metadataFile[fileIndex][meta.CD_TRACK.ordinal()], value); in validateMetatData()
100 assertEquals(TAG, metadataFile[fileIndex][meta.ALBUM.ordinal()], value); in validateMetatData()
104 assertEquals(TAG, metadataFile[fileIndex][meta.ARTIST.ordinal()], value); in validateMetatData()
108 assertEquals(TAG, metadataFile[fileIndex][meta.AUTHOR.ordinal()], value); in validateMetatData()
112 assertEquals(TAG, metadataFile[fileIndex][meta.COMPOSER.ordinal()], value); in validateMetatData()
116 assertEquals(TAG, metadataFile[fileIndex][meta.DATE.ordinal()], value); in validateMetatData()
120 assertEquals(TAG, metadataFile[fileIndex][meta.GENRE.ordinal()], value); in validateMetatData()
[all …]
/frameworks/base/packages/SystemUI/accessibility/accessibilitymenu/src/com/android/systemui/accessibility/accessibilitymenu/view/
DA11yMenuOverlayLayout.java67 A11yMenuShortcut.ShortcutId.ID_ASSISTANT_VALUE.ordinal(),
68 A11yMenuShortcut.ShortcutId.ID_A11YSETTING_VALUE.ordinal(),
69 A11yMenuShortcut.ShortcutId.ID_POWER_VALUE.ordinal(),
70 A11yMenuShortcut.ShortcutId.ID_VOLUME_DOWN_VALUE.ordinal(),
71 A11yMenuShortcut.ShortcutId.ID_VOLUME_UP_VALUE.ordinal(),
72 A11yMenuShortcut.ShortcutId.ID_RECENT_VALUE.ordinal(),
73 A11yMenuShortcut.ShortcutId.ID_BRIGHTNESS_DOWN_VALUE.ordinal(),
74 A11yMenuShortcut.ShortcutId.ID_BRIGHTNESS_UP_VALUE.ordinal(),
75 A11yMenuShortcut.ShortcutId.ID_LOCKSCREEN_VALUE.ordinal(),
76 A11yMenuShortcut.ShortcutId.ID_QUICKSETTING_VALUE.ordinal(),
[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.java176 int ordinal = enumValue.ordinal(); in getEnumValue() local
178 return values[ordinal]; in getEnumValue()
181 return ordinal; in getEnumValue()
192 int ordinal; in getEnumFromValue() local
196 ordinal = -1; in getEnumFromValue()
200 ordinal = i; in getEnumFromValue()
205 ordinal = value; in getEnumFromValue()
210 if (ordinal < 0 || ordinal >= values.length) { in getEnumFromValue()
219 return values[ordinal]; in getEnumFromValue()
/frameworks/base/services/core/java/com/android/server/timezonedetector/
DOrdinalGenerator.java42 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/
DIccCardStatusTest.java57 mIccCardStatus.setCardState(IccCardStatus.CardState.CARDSTATE_ABSENT.ordinal()); in testSetCardState()
61 mIccCardStatus.setCardState(IccCardStatus.CardState.CARDSTATE_PRESENT.ordinal()); in testSetCardState()
65 mIccCardStatus.setCardState(IccCardStatus.CardState.CARDSTATE_ERROR.ordinal()); in testSetCardState()
73 mIccCardStatus.setUniversalPinState(IccCardStatus.PinState.PINSTATE_UNKNOWN.ordinal()); in testSetPinState()
78 IccCardStatus.PinState.PINSTATE_ENABLED_BLOCKED.ordinal()); in testSetPinState()
/frameworks/base/packages/SystemUI/accessibility/accessibilitymenu/src/com/android/systemui/accessibility/accessibilitymenu/
DAccessibilityMenuService.java273 if (viewTag == ShortcutId.ID_BRIGHTNESS_UP_VALUE.ordinal()) { in handleClick()
276 } else if (viewTag == ShortcutId.ID_BRIGHTNESS_DOWN_VALUE.ordinal()) { in handleClick()
279 } else if (viewTag == ShortcutId.ID_VOLUME_UP_VALUE.ordinal()) { in handleClick()
282 } else if (viewTag == ShortcutId.ID_VOLUME_DOWN_VALUE.ordinal()) { in handleClick()
290 if (viewTag == ShortcutId.ID_ASSISTANT_VALUE.ordinal()) { in handleClick()
295 } else if (viewTag == ShortcutId.ID_A11YSETTING_VALUE.ordinal()) { in handleClick()
299 } else if (viewTag == ShortcutId.ID_POWER_VALUE.ordinal()) { in handleClick()
301 } else if (viewTag == ShortcutId.ID_RECENT_VALUE.ordinal()) { in handleClick()
303 } else if (viewTag == ShortcutId.ID_LOCKSCREEN_VALUE.ordinal()) { in handleClick()
308 } else if (viewTag == ShortcutId.ID_QUICKSETTING_VALUE.ordinal()) { in handleClick()
[all …]
/frameworks/base/core/java/android/hardware/lights/
DLight.java128 public Light(int id, int ordinal, int type) { in Light() argument
129 this(id, "Light", ordinal, type, 0, null); in Light()
137 public Light(int id, String name, int ordinal, int type, int capabilities) { in Light() argument
138 this(id, name, ordinal, type, capabilities, null); in Light()
146 public Light(int id, String name, int ordinal, int type, int capabilities, in Light() argument
150 mOrdinal = ordinal; in Light()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DIccServiceTable.java76 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/av/media/codec2/components/flac/
DC2SoftFlacEnc.cpp236 inSize, (int)work->input.ordinal.timestamp.peeku(), in process()
237 (int)work->input.ordinal.frameIndex.peeku(), work->input.flags); in process()
239 mAnchorTimeStamp = work->input.ordinal.timestamp.peekll(); in process()
284 FillWork(uint32_t flags, C2WorkOrdinalStruct ordinal, in process() argument
286 : mFlags(flags), mOrdinal(ordinal), mBuffer(buffer) {} in process()
292 work->worklets.front()->output.ordinal = mOrdinal; in process()
351 C2WorkOrdinalStruct ordinal = work->input.ordinal; in process() local
352 ordinal.frameIndex = front.frameIndex; in process()
353 ordinal.timestamp = front.timestampUs; in process()
354 cloneAndSend(work->input.ordinal.frameIndex.peeku(), work, in process()
[all …]
/frameworks/base/graphics/java/android/graphics/
DColorSpace.java1520 ColorSpace colorSpace = sNamedColorSpaceMap.get(name.ordinal()); in get()
1522 return sNamedColorSpaceMap.get(Named.SRGB.ordinal()); in get()
1560 sNamedColorSpaceMap.put(Named.SRGB.ordinal(), new ColorSpace.Rgb( in Named.SRGB.ordinal()
1566 Named.SRGB.ordinal() in Named.SRGB.ordinal()
1568 sDataToColorSpaces.put(DataSpace.DATASPACE_SRGB, Named.SRGB.ordinal()); in sDataToColorSpaces.put() argument
1569 sNamedColorSpaceMap.put(Named.LINEAR_SRGB.ordinal(), new ColorSpace.Rgb( in Named.LINEAR_SRGB.ordinal()
1575 Named.LINEAR_SRGB.ordinal() in Named.LINEAR_SRGB.ordinal()
1577 sDataToColorSpaces.put(DataSpace.DATASPACE_SRGB_LINEAR, Named.LINEAR_SRGB.ordinal()); in sDataToColorSpaces.put() argument
1578 sNamedColorSpaceMap.put(Named.EXTENDED_SRGB.ordinal(), new ColorSpace.Rgb( in Named.EXTENDED_SRGB.ordinal()
1587 Named.EXTENDED_SRGB.ordinal() in Named.EXTENDED_SRGB.ordinal()
[all …]
/frameworks/base/tools/hoststubgen/hoststubgen/src/com/android/hoststubgen/
DHostStubGenLogger.kt121 return level.ordinal <= maxLogLevel.ordinal in isEnabled()
126 if (it.logLevel.ordinal >= level.ordinal) { in println()
208 if (it.logLevel.ordinal >= level.ordinal) { in forPrinters()
/frameworks/av/media/codec2/hal/common/
DMultiAccessUnitHelper.cpp268 (*iterWork)->input.ordinal.frameIndex.peekull()); in flush()
271 << (*iterWork)->input.ordinal.frameIndex.peekull() in flush()
273 (*iterWork)->input.ordinal.frameIndex = frame->inOrdinal.frameIndex; in flush()
299 C2WorkOrdinalStruct inputOrdinal = w->input.ordinal; in scatter()
310 newWork->input.ordinal = inWork->input.ordinal; in scatter()
311 newWork->input.ordinal.frameIndex = newFrameIdx; in scatter()
374 newWork->input.ordinal.timestamp = info.timestamp; in scatter()
387 << " : TS " << newWork->input.ordinal.timestamp.peekull() in scatter()
433 uint64_t thisFrameIndex = work->input.ordinal.frameIndex.peekull(); in gather()
464 frame->mLargeWork->input.ordinal.frameIndex = in gather()
[all …]
/frameworks/av/media/codec2/components/aac/
DC2SoftAacEnc.cpp399 c2_cntr64_t inputTimestampUs = work->input.ordinal.timestamp; in process()
406 mNextFrameTimestampUs = work->input.ordinal.timestamp; in process()
424 uint64_t inputIndex = work->input.ordinal.frameIndex.peeku(); in process()
461 FillWork(uint32_t flags, C2WorkOrdinalStruct ordinal, in process() argument
463 : mFlags(flags), mOrdinal(ordinal), mBuffer(buffer) { in process()
470 work->worklets.front()->output.ordinal = mOrdinal; in process()
633 C2WorkOrdinalStruct ordinal = work->input.ordinal; in process() local
634 ordinal.frameIndex = mOutIndex++; in process()
635 ordinal.timestamp = front.timestampUs; in process()
639 FillWork(C2FrameData::FLAG_INCOMPLETE, ordinal, front.buffer)); in process()
[all …]
/frameworks/base/packages/SystemUI/accessibility/accessibilitymenu/tests/src/com/android/systemui/accessibility/accessibilitymenu/tests/
DAccessibilityMenuServiceTest.java263 String.valueOf(ShortcutId.ID_BRIGHTNESS_UP_VALUE.ordinal())); in testAdjustBrightness()
265 String.valueOf(ShortcutId.ID_BRIGHTNESS_DOWN_VALUE.ordinal())); in testAdjustBrightness()
312 String.valueOf(ShortcutId.ID_VOLUME_UP_VALUE.ordinal())); in testAdjustVolume()
314 String.valueOf(ShortcutId.ID_VOLUME_DOWN_VALUE.ordinal())); in testAdjustVolume()
348 String.valueOf(ShortcutId.ID_ASSISTANT_VALUE.ordinal())); in testAssistantButton_opensVoiceAssistant()
368 String.valueOf(ShortcutId.ID_A11YSETTING_VALUE.ordinal())); in testAccessibilitySettingsButton_opensAccessibilitySettings()
386 String.valueOf(ShortcutId.ID_POWER_VALUE.ordinal())); in testPowerButton_performsGlobalAction()
399 String.valueOf(ShortcutId.ID_RECENT_VALUE.ordinal())); in testRecentButton_performsGlobalAction()
412 String.valueOf(ShortcutId.ID_LOCKSCREEN_VALUE.ordinal())); in testLockButton_performsGlobalAction()
425 String.valueOf(ShortcutId.ID_QUICKSETTING_VALUE.ordinal())); in testQuickSettingsButton_performsGlobalAction()
[all …]
/frameworks/base/services/core/java/com/android/server/power/stats/
DEnergyConsumerSnapshot.java198 final int ordinal = consumer.ordinal; in updateAndGetDelta() local
237 output.cpuClusterChargeUC[ordinal] = deltaChargeUC; in updateAndGetDelta()
244 output.displayChargeUC[ordinal] = deltaChargeUC; in updateAndGetDelta()
268 output.otherTotalChargeUC[ordinal] = deltaChargeUC; in updateAndGetDelta()
269 output.otherUidChargesUC[ordinal] = otherUidCharges; in updateAndGetDelta()
355 consumer.id, consumer.ordinal, consumer.type, consumer.name)); in dump()
/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/base/tools/hoststubgen/hoststubgen/test-tiny-framework/tiny-test/src/com/android/hoststubgen/test/tinyframework/
DTinyFrameworkClassTest.java290 assertThat(TinyFrameworkEnumSimple.CAT.ordinal()).isEqualTo(0); in testEnumSimple()
293 assertThat(TinyFrameworkEnumSimple.DOG.ordinal()).isEqualTo(1); in testEnumSimple()
296 assertThat(TinyFrameworkEnumSimple.valueOf("DOG").ordinal()).isEqualTo(1); in testEnumSimple()
308 assertThat(TinyFrameworkEnumComplex.RED.ordinal()).isEqualTo(0); in testEnumComplex()
313 assertThat(TinyFrameworkEnumComplex.GREEN.ordinal()).isEqualTo(1); in testEnumComplex()
316 assertThat(TinyFrameworkEnumComplex.valueOf("BLUE").ordinal()).isEqualTo(2); in testEnumComplex()
/frameworks/av/media/codec2/sfplugin/
DC2NodeImpl.cpp330 work->input.ordinal.timestamp = timestamp; in submitBuffer()
334 work->input.ordinal.customOrdinal = timestamp; // save input timestamp in submitBuffer()
341 work->input.ordinal.timestamp = in submitBuffer()
345 work->input.ordinal.timestamp = mPrevCodecTimestamp - mAdjustTimestampGapUs; in submitBuffer()
347 mPrevInputTimestamp = work->input.ordinal.customOrdinal; in submitBuffer()
348 mPrevCodecTimestamp = work->input.ordinal.timestamp; in submitBuffer()
350 work->input.ordinal.customOrdinal.peekll(), in submitBuffer()
351 work->input.ordinal.timestamp.peekll(), in submitBuffer()
355 work->input.ordinal.frameIndex = mFrameIndex++; in submitBuffer()
379 buffers->mIdsInUse.emplace(work->input.ordinal.frameIndex.peeku(), buffer); in submitBuffer()
/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/raw/
DC2SoftRawDec.cpp153 (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/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.peekll(); in process()
275 work->worklets.front()->output.ordinal.timestamp = mAnchorTimeStamp + outTimeStamp; in process()
/frameworks/av/media/codec2/components/opus/
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()
DC2SoftOpusEnc.cpp353 inSize, (int)work->input.ordinal.timestamp.peeku(), in process()
354 (int)work->input.ordinal.frameIndex.peeku(), work->input.flags); in process()
365 mAnchorTimeStamp = work->input.ordinal.timestamp.peekll(); in process()
392 uint64_t inputIndex = work->input.ordinal.frameIndex.peeku(); in process()
397 FillWork(uint32_t flags, C2WorkOrdinalStruct ordinal, in process() argument
399 : mFlags(flags), mOrdinal(ordinal), mBuffer(buffer) { in process()
406 work->worklets.front()->output.ordinal = mOrdinal; in process()
424 C2WorkOrdinalStruct outOrdinal = work->input.ordinal; in process()
564 C2WorkOrdinalStruct outOrdinal = work->input.ordinal; in drainInternal()
595 work->worklets.front()->output.ordinal = outOrdinal; in drainInternal()

1234567