Home
last modified time | relevance | path

Searched refs:COUNT (Results 1 – 25 of 30) 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/base/core/java/android/hardware/camera2/params/
DBlackLevelPattern.java36 public static final int COUNT = 4; field in BlackLevelPattern
55 if (offsets.length < COUNT) { in BlackLevelPattern()
58 mCfaOffsets = Arrays.copyOf(offsets, COUNT); in BlackLevelPattern()
95 if (destination.length - offset < COUNT) { in copyTo()
98 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()
/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/base/services/usage/java/com/android/server/usage/
DUsageStatsProto.java160 case (int) IntervalStatsProto.CountAndTime.COUNT: in loadCountAndTime()
161 tracker.count = proto.readInt(IntervalStatsProto.CountAndTime.COUNT); in loadCountAndTime()
226 case (int) IntervalStatsProto.UsageStats.ChooserAction.CategoryCount.COUNT: in loadCountsForAction()
228 IntervalStatsProto.UsageStats.ChooserAction.CategoryCount.COUNT); in loadCountsForAction()
276 case (int) IntervalStatsProto.Configuration.COUNT: in loadConfigStats()
278 IntervalStatsProto.Configuration.COUNT); in loadConfigStats()
357 proto.write(IntervalStatsProto.CountAndTime.COUNT, count); in writeCountAndTime()
392 proto.write(IntervalStatsProto.UsageStats.ChooserAction.CategoryCount.COUNT, count); in writeCountsForAction()
407 proto.write(IntervalStatsProto.Configuration.COUNT, configStats.mActivationCount); in writeConfigStats()
DUsageStatsXmlV1.java51 private static final String COUNT = "count"; field in UsageStatsXmlV1
178 int count = XmlUtils.readIntAttribute(parser, COUNT); in loadChooserCounts()
307 XmlUtils.writeIntAttribute(xml, COUNT, count); in writeCountsForAction()
/frameworks/base/obex/javax/obex/
DHeaderSet.java54 public static final int COUNT = 0xC0; field in HeaderSet
296 case COUNT: in setHeader()
514 case COUNT: in getHeader()
580 out.write(COUNT); in getHeaderList()
DObexHelper.java391 intHeader = (Long)headImpl.getHeader(HeaderSet.COUNT); in createHeader()
393 out.write((byte)HeaderSet.COUNT); in createHeader()
397 headImpl.setHeader(HeaderSet.COUNT, null); in createHeader()
/frameworks/base/services/core/java/com/android/server/lights/
DLightsManager.java30 public static final int LIGHT_ID_COUNT = Type.COUNT;
/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.java164 proto.write(Event.COUNT, mCountStats[i]); in dumpProto()
/frameworks/base/cmds/bootanimation/
DFORMAT.md33 TYPE COUNT PAUSE PATH [#RGBHEX [CLOCK1 [CLOCK2]]]
38 * **COUNT:** how many times to play the animation, or 0 to loop forever until boot is complete
/frameworks/base/core/java/android/os/
DServiceManager.java97 int COUNT = GET_SERVICE + 1; field
DBatteryStats.java3441 proto.write(TimerProto.COUNT, count); in dumpTimer()
7516 proto.write(UidProto.JobCompletion.ReasonCount.COUNT, types.get(r, 0)); in dumpProtoAppsLocked()
7675 proto.write(UidProto.UserActivity.COUNT, val); in dumpProtoAppsLocked()
7717 proto.write(UidProto.WakeupAlarm.COUNT, in dumpProtoAppsLocked()
8085 proto.write(SystemProto.WifiMulticastWakelockTotal.COUNT, in dumpProtoSystemLocked()
/frameworks/base/services/core/java/com/android/server/job/
DJobPackageTracker.java377 proto.write(DataSetProto.PackageEntryProto.State.COUNT, count); in printPackageEntryState()
424 proto.write(DataSetProto.PackageEntryProto.StopReasonCount.COUNT, in dump()
DJobConcurrencyManager.java103 int COUNT = REFRESH_SYSTEM_STATE + 1; field
/frameworks/ml/nn/common/
DUtils.cpp285 #define COUNT(X) (sizeof(X) / sizeof(X[0])) macro
318 static_assert(COUNT(kSizeOfDataType) == kNumberOfDataTypes, "kSizeOfDataType is incorrect");
339 static_assert(COUNT(kScalarDataType) == kNumberOfDataTypes, "kScalarDataType is incorrect");
346 static_assert(COUNT(kSizeOfDataTypeOEM) == kNumberOfDataTypesOEM,
354 static_assert(COUNT(kScalarDataTypeOEM) == kNumberOfDataTypesOEM,
/frameworks/base/core/java/com/android/internal/app/procstats/
DServiceState.java596 proto.write(PackageServiceOperationStatsProto.COUNT, opCount);
/frameworks/base/services/core/java/com/android/server/
DAlarmManagerService.java1434 proto.write(FilterStatsProto.COUNT, count); in writeToProto()
1478 proto.write(BroadcastStatsProto.COUNT, count); in writeToProto()
3740 proto.write(AlarmProto.COUNT, count); in writeToProto()
/frameworks/base/services/core/java/com/android/server/pm/
DShortcutService.java371 int COUNT = GET_DEFAULT_LAUNCHER + 1; field
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java587 int COUNT = IS_UID_NETWORKING_BLOCKED + 1; field

12