Home
last modified time | relevance | path

Searched refs:COUNT (Results 1 – 25 of 37) sorted by relevance

12

/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DLongSamplingCounterTest.java53 private static final long COUNT = 1111; field in LongSamplingCounterTest
69 mCounter.addCountLocked(COUNT, true); in testReadWriteParcel()
70 assertEquals(COUNT, getCount()); in testReadWriteParcel()
75 mCounter.addCountLocked(7 * COUNT, true); in testReadWriteParcel()
76 assertEquals(8 * COUNT, getCount()); in testReadWriteParcel()
79 assertEquals(COUNT, getCount()); in testReadWriteParcel()
86 mCounter.addCountLocked(COUNT, true); in testReadWriteSummaryParcel()
87 assertEquals(COUNT, getCount()); in testReadWriteSummaryParcel()
92 mCounter.addCountLocked(7 * COUNT, true); in testReadWriteSummaryParcel()
93 assertEquals(8 * COUNT, getCount()); in testReadWriteSummaryParcel()
[all …]
/frameworks/native/libs/gui/include/private/gui/
DParcelUtils.h31 #define SAFE_PARCEL_READ_SIZE(FUNC, COUNT, SIZE) \ argument
33 SAFE_PARCEL(FUNC, COUNT); \
34 if (static_cast<unsigned int>(*COUNT) > SIZE) { \
35 ALOGE("ERROR(BAD_VALUE). %s was greater than dataSize", #COUNT); \
/frameworks/base/core/java/android/hardware/camera2/params/
DBlackLevelPattern.java37 public static final int COUNT = 4; field in BlackLevelPattern
56 if (offsets.length < COUNT) { in BlackLevelPattern()
59 mCfaOffsets = Arrays.copyOf(offsets, COUNT); in BlackLevelPattern()
96 if (destination.length - offset < COUNT) { in copyTo()
99 for (int i = 0; i < COUNT; ++i) { in copyTo()
DLensShadingMap.java20 import static android.hardware.camera2.params.RggbChannelVector.COUNT;
105 return mRows * mColumns * COUNT; in getGainFactorCount()
136 if (colorChannel < 0 || colorChannel > COUNT) { in getGainFactor()
144 return mElements[colorChannel + (row * mColumns + column) * COUNT ]; in getGainFactor()
170 final int offset = (row * mColumns + column) * COUNT; in getGainFactorVector()
266 for (int ch = 0; ch < COUNT; ch++) { in toString()
285 if (ch < COUNT - 1) { in toString()
DColorSpaceTransform.java45 private static final int COUNT = ROWS * COLUMNS; field in ColorSpaceTransform
74 if (elements.length != COUNT) { in ColorSpaceTransform()
75 throw new IllegalArgumentException("elements must be " + COUNT + " length"); in ColorSpaceTransform()
165 if (destination.length - offset < COUNT) { in copyElements()
169 for (int i = 0, j = 0; i < COUNT; ++i, j += RATIONAL_SIZE) { in copyElements()
228 for (int i = 0, j = 0; i < COUNT; ++i, j += RATIONAL_SIZE) { in equals()
DRggbChannelVector.java28 public static final int COUNT = 4; field in RggbChannelVector
114 if (colorChannel < 0 || colorChannel >= COUNT) { in getComponent()
149 if (destination.length - offset < COUNT) { in copyTo()
DCapability.java40 public static final int COUNT = 3; field in Capability
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/
DMarshalQueryableBlackLevelPattern.java32 private static final int SIZE = SIZEOF_INT32 * BlackLevelPattern.COUNT;
42 for (int i = 0; i < BlackLevelPattern.COUNT / 2; ++i) { in marshal()
43 for (int j = 0; j < BlackLevelPattern.COUNT / 2; ++j) { in marshal()
51 int[] channelOffsets = new int[BlackLevelPattern.COUNT]; in unmarshal()
52 for (int i = 0; i < BlackLevelPattern.COUNT; ++i) { in unmarshal()
DMarshalQueryableRggbChannelVector.java32 private static final int SIZE = SIZEOF_FLOAT * RggbChannelVector.COUNT;
42 for (int i = 0; i < RggbChannelVector.COUNT; ++i) { in marshal()
/frameworks/base/core/java/android/hardware/
DLegacySensorManager.java371 private static final int COUNT = 12; field in LegacySensorManager.LmsFilter
374 (SENSORS_RATE_MS * COUNT / 1000.0f) * PREDICTION_RATIO;
375 private float[] mV = new float[COUNT * 2];
376 private long[] mT = new long[COUNT * 2];
380 mIndex = COUNT; in LmsFilter()
397 if (mIndex >= COUNT * 2) { in filter()
398 mIndex = COUNT; in filter()
402 mV[mIndex - COUNT] = v; in filter()
403 mT[mIndex - COUNT] = time; in filter()
410 for (i = 0; i < COUNT - 1; i++) { in filter()
/frameworks/av/media/utils/include/mediautils/
DTimerThread.h58 template <size_t COUNT>
59 static constexpr bool is_power_of_2_v = COUNT > 0 && (COUNT & (COUNT - 1)) == 0;
61 template <size_t COUNT>
62 static constexpr size_t mask_from_count_v = COUNT - 1;
/frameworks/base/services/usage/java/com/android/server/usage/
DUsageStatsProto.java165 case (int) IntervalStatsProto.CountAndTime.COUNT: in loadCountAndTime()
166 tracker.count = proto.readInt(IntervalStatsProto.CountAndTime.COUNT); in loadCountAndTime()
234 case (int) IntervalStatsProto.UsageStats.ChooserAction.CategoryCount.COUNT: in loadCountsForAction()
236 IntervalStatsProto.UsageStats.ChooserAction.CategoryCount.COUNT); in loadCountsForAction()
284 case (int) IntervalStatsProto.Configuration.COUNT: in loadConfigStats()
286 IntervalStatsProto.Configuration.COUNT); in loadConfigStats()
367 proto.write(IntervalStatsProto.CountAndTime.COUNT, count); in writeCountAndTime()
402 proto.write(IntervalStatsProto.UsageStats.ChooserAction.CategoryCount.COUNT, count); in writeCountsForAction()
418 proto.write(IntervalStatsProto.Configuration.COUNT, configStats.mActivationCount); in writeConfigStats()
DUsageStatsProtoV2.java111 case (int) IntervalStatsObfuscatedProto.CountAndTime.COUNT: in loadCountAndTime()
113 IntervalStatsObfuscatedProto.CountAndTime.COUNT); in loadCountAndTime()
175 case (int) UsageStatsObfuscatedProto.ChooserAction.CategoryCount.COUNT: in loadCountsForAction()
177 UsageStatsObfuscatedProto.ChooserAction.CategoryCount.COUNT); in loadCountsForAction()
218 case (int) IntervalStatsObfuscatedProto.Configuration.COUNT: in loadConfigStats()
220 IntervalStatsObfuscatedProto.Configuration.COUNT); in loadConfigStats()
334 proto.write(IntervalStatsObfuscatedProto.CountAndTime.COUNT, count); in writeCountAndTime()
370 proto.write(UsageStatsObfuscatedProto.ChooserAction.CategoryCount.COUNT, count); in writeCountsForAction()
384 proto.write(IntervalStatsObfuscatedProto.Configuration.COUNT, configStats.mActivationCount); in writeConfigStats()
DUsageStatsXmlV1.java50 private static final String COUNT = "count"; field in UsageStatsXmlV1
177 int count = XmlUtils.readIntAttribute(parser, COUNT); in loadChooserCounts()
/frameworks/base/services/core/java/com/android/server/lights/
DLightsManager.java31 public static final int LIGHT_ID_COUNT = Type.COUNT;
/frameworks/base/libs/hwui/canvas/
DCanvasOpTypes.h68 COUNT // must be last enumerator
DOpBuffer.h52 typename ItemTypesSequence = std::make_index_sequence<static_cast<int>(ItemTypes::COUNT)>>
/frameworks/native/services/inputflinger/reader/include/
DEventHub.h372 static constexpr size_t COUNT = (BITS + WIDTH - 1) / WIDTH; variable
376 using Buffer = std::array<Element, COUNT>;
426 for (size_t i = 0; i < COUNT; i++) { in loadFromBuffer()
432 std::array<std::bitset<WIDTH>, COUNT> mData;
/frameworks/base/services/core/jni/
Dcom_android_server_lights_LightsService.cpp47 if (light < 0 || light >= static_cast<jint>(Type::COUNT)) { in validate()
/frameworks/base/core/java/com/android/internal/util/
DStatLogger.java176 proto.write(Event.COUNT, mCountStats[i]); in dumpProto()
/frameworks/base/libs/hwui/tests/unit/
DCanvasFrontendTests.cpp48 std::array<int, static_cast<size_t>(CanvasOpType::COUNT)> mOpCounts;
DOpBufferTests.cpp28 COUNT enumerator
/frameworks/base/core/java/android/os/
DServiceManager.java108 int COUNT = GET_SERVICE + 1; field
/frameworks/base/cmds/bootanimation/
DFORMAT.md39 TYPE COUNT PAUSE PATH [FADE [#RGBHEX [CLOCK1 [CLOCK2]]]]
47 * **COUNT:** how many times to play the animation, or 0 to loop forever until boot is complete
/frameworks/base/apex/jobscheduler/service/java/com/android/server/alarm/
DAlarm.java381 proto.write(AlarmProto.COUNT, count); in dumpDebug()

12