Home
last modified time | relevance | path

Searched refs:count (Results 1 – 25 of 1033) sorted by relevance

12345678910>>...42

/aosp14/frameworks/base/core/tests/coretests/src/android/os/
H A DTraceTest.java57 int count = 0; in testNativeTracingFromJava() local
131 int count = 0; in aMethod() local
141 return count; in aMethod()
149 int count = 0; in bMethod() local
153 return count; in bMethod()
161 int count = 0; in cMethod() local
165 return count; in cMethod()
173 int count = 0; in dMethod() local
190 return count; in eMethod()
199 return count; in fMethod()
[all …]
/aosp14/frameworks/base/core/java/android/os/health/
H A DHealthStats.java132 int count; in HealthStats() local
138 count = in.readInt(); in HealthStats()
139 mTimerKeys = new int[count]; in HealthStats()
142 for (int i=0; i<count; i++) { in HealthStats()
149 count = in.readInt(); in HealthStats()
152 for (int i=0; i<count; i++) { in HealthStats()
158 count = in.readInt(); in HealthStats()
159 mStatsKeys = new int[count]; in HealthStats()
161 for (int i=0; i<count; i++) { in HealthStats()
167 count = in.readInt(); in HealthStats()
[all …]
/aosp14/frameworks/base/core/java/com/android/internal/midi/
H A DMidiEventScheduler.java54 public int count = 0; field in MidiEventScheduler.MidiEvent
57 private MidiEvent(int count) { in MidiEvent() argument
59 data = new byte[count]; in MidiEvent()
64 data = new byte[count]; in MidiEvent()
65 System.arraycopy(msg, offset, data, 0, count); in MidiEvent()
66 this.count = count; in MidiEvent()
72 for (int i = 0; i < count; i++) { in toString()
85 if (count > POOL_EVENT_SIZE) { in createScheduledEvent()
86 event = new MidiEvent(msg, offset, count, timestamp); in createScheduledEvent()
92 System.arraycopy(msg, offset, event.data, 0, count); in createScheduledEvent()
[all …]
/aosp14/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DQuickRejectActivity.java55 int count = canvas.getSaveCount(); in onDraw() local
56 Log.d("OpenGLRenderer", "count=" + count); in onDraw()
57 count = canvas.save(); in onDraw()
58 Log.d("OpenGLRenderer", "count after save=" + count); in onDraw()
59 count = canvas.getSaveCount(); in onDraw()
62 count = canvas.getSaveCount(); in onDraw()
63 Log.d("OpenGLRenderer", "count after restore=" + count); in onDraw()
70 canvas.restoreToCount(count); in onDraw()
71 count = canvas.getSaveCount(); in onDraw()
75 count = canvas.getSaveCount(); in onDraw()
[all …]
/aosp14/frameworks/base/media/mca/filterfw/native/core/
H A Dvalue.cpp48 result.count = 1; in MakePODValue()
57 result.value = malloc(sizeof(BASE) * count); in MakePtrValue()
59 result.count = count; in MakePtrValue()
68 value->count = 1; in SetPODValue()
81 value->value = malloc(sizeof(BASE) * count); in SetPtrValue()
82 value->count = count; in SetPtrValue()
84 if (value->type == TYPEID && value->count == count) { in SetPtrValue()
154 result.count = 0; in MakeNullValue()
178 result.count = size; in MakeBufferValueNoCopy()
190 result.count = size; in MakeMutableBufferValueNoCopy()
[all …]
/aosp14/frameworks/base/opengl/java/android/opengl/
H A DGLES31.java526 int count, in glProgramUniform1iv() argument
536 int count, in glProgramUniform1iv() argument
545 int count, in glProgramUniform2iv() argument
555 int count, in glProgramUniform2iv() argument
564 int count, in glProgramUniform3iv() argument
574 int count, in glProgramUniform3iv() argument
583 int count, in glProgramUniform4iv() argument
593 int count, in glProgramUniform4iv() argument
602 int count, in glProgramUniform1uiv() argument
612 int count, in glProgramUniform1uiv() argument
[all …]
/aosp14/frameworks/base/libs/hwui/utils/
H A DAutoMalloc.h38 explicit AutoTMalloc(size_t count) : fPtr(mallocIfCountThrowOnFail(count)) {} in AutoTMalloc() argument
44 void realloc(size_t count) { fPtr.reset(reallocIfCountThrowOnFail(count)); } in realloc() argument
47 T* reset(size_t count = 0) {
48 fPtr.reset(mallocIfCountThrowOnFail(count));
75 T* mallocIfCountThrowOnFail(size_t count) { in mallocIfCountThrowOnFail() argument
77 if (count) { in mallocIfCountThrowOnFail()
78 newPtr = (T*)std::malloc(count * sizeof(T)); in mallocIfCountThrowOnFail()
79 LOG_ALWAYS_FATAL_IF(!newPtr, "failed to malloc %zu bytes", count * sizeof(T)); in mallocIfCountThrowOnFail()
83 T* reallocIfCountThrowOnFail(size_t count) { in reallocIfCountThrowOnFail() argument
85 if (count) { in reallocIfCountThrowOnFail()
[all …]
/aosp14/system/core/libutils/
H A DBitSet_test.cpp43 EXPECT_EQ(tmp.count(), 2u); in TEST_F()
49 EXPECT_EQ(b1.count(), 2u); in TEST_F()
65 EXPECT_EQ(b1.count(), 3u); in TEST_F()
84 EXPECT_EQ(b1.count(), 1u); in TEST_F()
85 EXPECT_EQ(b2.count(), 3u); in TEST_F()
93 EXPECT_EQ(b1.count(), 2u); in TEST_F()
97 EXPECT_EQ(b1.count(), 3u); in TEST_F()
106 EXPECT_EQ(b1.count(), 1u); in TEST_F()
111 EXPECT_EQ(b1.count(), 1u); in TEST_F()
120 EXPECT_EQ(b1.count(), 1u); in TEST_F()
[all …]
/aosp14/frameworks/base/media/mca/filterfw/java/android/filterfw/format/
H A DPrimitiveFormat.java28 public static MutableFrameFormat createByteFormat(int count, int target) { in createByteFormat() argument
29 return createFormat(FrameFormat.TYPE_BYTE, count, target); in createByteFormat()
32 public static MutableFrameFormat createInt16Format(int count, int target) { in createInt16Format() argument
33 return createFormat(FrameFormat.TYPE_INT16, count, target); in createInt16Format()
36 public static MutableFrameFormat createInt32Format(int count, int target) { in createInt32Format() argument
37 return createFormat(FrameFormat.TYPE_INT32, count, target); in createInt32Format()
40 public static MutableFrameFormat createFloatFormat(int count, int target) { in createFloatFormat() argument
41 return createFormat(FrameFormat.TYPE_FLOAT, count, target); in createFloatFormat()
44 public static MutableFrameFormat createDoubleFormat(int count, int target) { in createDoubleFormat() argument
45 return createFormat(FrameFormat.TYPE_DOUBLE, count, target); in createDoubleFormat()
[all …]
/aosp14/frameworks/base/core/java/android/net/metrics/
H A DNetworkMetrics.java81 pendingSummary.dnsLatencies.count(latencyMs); in addDnsResult()
82 pendingSummary.dnsErrorRate.count(isSuccess ? 0 : 1); in addDnsResult()
102 pendingSummary.tcpLossRate.count(lost, sent); in addTcpStatsResult()
103 pendingSummary.roundTripTimeUs.count(rttUs); in addTcpStatsResult()
164 public int count; field in NetworkMetrics.Metrics
167 this.count += that.count; in merge()
172 void count(double value) { in count() method in NetworkMetrics.Metrics
173 count(value, 1); in count()
176 void count(double value, int subcount) { in count() method in NetworkMetrics.Metrics
177 count += subcount; in count()
[all …]
/aosp14/frameworks/base/libs/androidfw/tests/
H A DByteBucketArray_test.cpp63 int count = 0; in TEST() local
64 bba.forEachItem([&count](auto i, auto val) { in TEST()
65 ++count; in TEST()
87 ASSERT_EQ(4 * 16, count); in TEST()
96 int count = 0; in TEST() local
97 bba.forEachItem([&count](auto, auto) { ++count; }); in TEST()
98 ASSERT_EQ(1 * 16, count); in TEST()
102 int count = 0; in TEST() local
103 bba.forEachItem([&count](auto, auto) { ++count; }); in TEST()
104 ASSERT_EQ(0, count); in TEST()
/aosp14/frameworks/base/core/java/android/content/res/
H A DAssetFileDescriptor.java232 if (count > mRemaining) count = (int) mRemaining; in read()
250 if (count > mRemaining) count = mRemaining; in skip()
251 long res = super.skip(count); in skip()
256 return super.skip(count); in skip()
307 if (count > mRemaining) count = (int) mRemaining; in write()
308 super.write(buffer, offset, count); in write()
309 mRemaining -= count; in write()
313 super.write(buffer, offset, count); in write()
320 int count = buffer.length; in write() local
321 if (count > mRemaining) count = (int) mRemaining; in write()
[all …]
/aosp14/frameworks/base/core/java/android/text/format/
H A DDateFormat.java497 int count; in format() local
505 count = 1; in format()
514 while ((i + count < len) && (s.charAt(i + count) == c)) { in format()
515 count++; in format()
594 if (count == 5) { in getDayOfWeekString()
596 } else if (count == 4) { in getDayOfWeekString()
607 if (count == 5) { in getMonthString()
673 int count = 0; in appendQuotedText() local
688 count++; in appendQuotedText()
697 count++; in appendQuotedText()
[all …]
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/usage/
H A DUserUsageStatsServiceTest.java172 count++; in testQueryEarliestEventsForPackage()
209 count++; in testQueryEarliestEventsForPackage_Caching()
225 count = 0; in testQueryEarliestEventsForPackage_Caching()
227 count++; in testQueryEarliestEventsForPackage_Caching()
245 count = 0; in testQueryEarliestEventsForPackage_Caching()
247 count++; in testQueryEarliestEventsForPackage_Caching()
265 count = 0; in testQueryEarliestEventsForPackage_Caching()
285 count = 0; in testQueryEarliestEventsForPackage_Caching()
305 count = 0; in testQueryEarliestEventsForPackage_Caching()
325 count = 0; in testQueryEarliestEventsForPackage_Caching()
[all …]
/aosp14/frameworks/base/core/java/android/os/
H A DMemoryFile.java187 public int readBytes(byte[] buffer, int srcOffset, int destOffset, int count) in readBytes() argument
192 mMapping.get(buffer, destOffset, count); in readBytes()
196 return count; in readBytes()
214 mMapping.put(buffer, srcOffset, count); in writeBytes()
289 public int read(byte buffer[], int offset, int count) throws IOException { in read() argument
290 if (offset < 0 || count < 0 || offset + count > buffer.length) { in read()
295 count = Math.min(count, available()); in read()
296 if (count < 1) { in read()
299 int result = readBytes(buffer, mOffset, offset, count); in read()
323 writeBytes(buffer, offset, mOffset, count); in write()
[all …]
/aosp14/frameworks/base/core/jni/
H A Dandroid_text_AndroidCharacter.cpp56 jbyteArray destArray, jint count) in getDirectionalities() argument
67 if (env->GetArrayLength(srcArray) < count || env->GetArrayLength(destArray) < count) { in getDirectionalities()
72 for (int i = 0; i < count; i++) { in getDirectionalities()
74 i + 1 < count && in getDirectionalities()
120 if (start < 0 || start > start + count in getEastAsianWidths()
121 || env->GetArrayLength(srcArray) < (start + count) in getEastAsianWidths()
122 || env->GetArrayLength(destArray) < count) { in getEastAsianWidths()
128 for (int i = 0; i < count; i++) { in getEastAsianWidths()
131 i + 1 < count && in getEastAsianWidths()
159 if (start < 0 || start > start + count in mirror()
[all …]
/aosp14/frameworks/base/core/java/android/content/
H A DContentProviderResult.java37 public final @Nullable Integer count; field in ContentProviderResult
45 public ContentProviderResult(int count) { in ContentProviderResult() argument
46 this(null, count, null, null); in ContentProviderResult()
60 this.count = count; in ContentProviderResult()
72 count = source.readInt(); in ContentProviderResult()
74 count = null; in ContentProviderResult()
91 count = cpr.count; in ContentProviderResult()
104 if (count != null) { in writeToParcel()
106 dest.writeInt(count); in writeToParcel()
148 if (count != null) { in toString()
[all …]
/aosp14/frameworks/base/media/java/android/media/midi/
H A DMidiReceiver.java61 abstract public void onSend(byte[] msg, int offset, int count, long timestamp) in onSend() argument
103 public void send(byte[] msg, int offset, int count) throws IOException { in send() argument
105 send(msg, offset, count, 0L); in send()
123 public void send(byte[] msg, int offset, int count, long timestamp) in send() argument
126 while (count > 0) { in send()
127 int length = (count > messageSize ? messageSize : count); in send()
130 count -= length; in send()
/aosp14/frameworks/base/core/java/com/android/internal/os/
H A DRpmStats.java36 String name, long timeMs, int count) { in getAndUpdatePlatformState() argument
44 e.mCount = count; in getAndUpdatePlatformState()
65 private PowerStateElement(long timeMs, int count) { in PowerStateElement() argument
67 this.mCount = count; in PowerStateElement()
82 public void putVoter(String name, long timeMs, int count) { in putVoter() argument
85 mVoters.put(name, new PowerStateElement(timeMs, count)); in putVoter()
88 e.mCount = count; in putVoter()
102 public void putState(String name, long timeMs, int count) { in putState() argument
105 mStates.put(name, new PowerStateElement(timeMs, count)); in putState()
108 e.mCount = count; in putState()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/integrity/serializer/
H A DRuleBinarySerializerTest.java520 for (int count = 0; count < ruleCount; count++) { in testBinaryString_verifyManyRulesAreIndexedCorrectly()
525 for (int count = 0; count < ruleCount; count++) { in testBinaryString_verifyManyRulesAreIndexedCorrectly()
530 for (int count = 0; count < ruleCount; count++) { in testBinaryString_verifyManyRulesAreIndexedCorrectly()
555 for (int count = 0; count < ruleCount; count++) { in testBinaryString_verifyManyRulesAreIndexedCorrectly()
577 for (int count = 0; count < ruleCount; count++) { in testBinaryString_verifyManyRulesAreIndexedCorrectly()
599 for (int count = 0; count < ruleCount; count++) { in testBinaryString_verifyManyRulesAreIndexedCorrectly()
630 for (int count = 0; count < ruleCount; count++) { in testBinaryString_totalRuleSizeLimitReached()
635 for (int count = 0; count < ruleCount; count++) { in testBinaryString_totalRuleSizeLimitReached()
640 for (int count = 0; count < NONINDEXED_RULE_SIZE_LIMIT - 1; count++) { in testBinaryString_totalRuleSizeLimitReached()
668 for (int count = 0; count < INDEXED_RULE_SIZE_LIMIT + 1; count++) { in testBinaryString_tooManyPackageNameIndexedRules()
[all …]
/aosp14/frameworks/base/services/core/java/com/android/server/location/gnss/
H A DGnssPsdsDownloader.java63 int count = 0; in GnssPsdsDownloader() local
70 if (longTermPsdsServer1 != null) count++; in GnssPsdsDownloader()
71 if (longTermPsdsServer2 != null) count++; in GnssPsdsDownloader()
72 if (longTermPsdsServer3 != null) count++; in GnssPsdsDownloader()
74 if (count == 0) { in GnssPsdsDownloader()
78 mLongTermPsdsServers = new String[count]; in GnssPsdsDownloader()
79 count = 0; in GnssPsdsDownloader()
86 mNextServerIndex = random.nextInt(count); in GnssPsdsDownloader()
169 int count; in doDownload() local
170 while ((count = in.read(buffer)) != -1) { in doDownload()
[all …]
/aosp14/frameworks/base/core/java/com/android/internal/statusbar/
H A DNotificationVisibility.java36 public int count; field in NotificationVisibility
77 private NotificationVisibility(String key, int rank, int count, boolean visible, in NotificationVisibility() argument
82 this.count = count; in NotificationVisibility()
92 + " count=" + count in toString()
100 return obtain(this.key, this.rank, this.count, this.visible, this.location); in clone()
128 out.writeInt(this.count); in writeToParcel()
136 this.count = in.readInt(); in readFromParcel()
144 public static NotificationVisibility obtain(String key, int rank, int count, boolean visible) { in obtain() argument
145 return obtain(key, rank, count, visible, in obtain()
152 public static NotificationVisibility obtain(String key, int rank, int count, boolean visible, in obtain() argument
[all …]
/aosp14/frameworks/base/services/core/java/com/android/server/wm/
H A DDisplayWindowListenerController.java58 int count = mDisplayListeners.beginBroadcast(); in dispatchDisplayAdded() local
59 for (int i = 0; i < count; ++i) { in dispatchDisplayAdded()
79 int count = mDisplayListeners.beginBroadcast(); in dispatchDisplayChanged() local
80 for (int i = 0; i < count; ++i) { in dispatchDisplayChanged()
91 int count = mDisplayListeners.beginBroadcast(); in dispatchDisplayRemoved() local
92 for (int i = 0; i < count; ++i) { in dispatchDisplayRemoved()
102 int count = mDisplayListeners.beginBroadcast(); in dispatchFixedRotationStarted() local
103 for (int i = 0; i < count; ++i) { in dispatchFixedRotationStarted()
114 int count = mDisplayListeners.beginBroadcast(); in dispatchFixedRotationFinished() local
115 for (int i = 0; i < count; ++i) { in dispatchFixedRotationFinished()
[all …]
/aosp14/frameworks/base/core/java/android/view/animation/
H A DAnimationSet.java134 for (int i = 0; i < count; i++) { in clone()
260 for (int i = 0; i < count; i++) { in setStartTime()
273 for (int i = 0; i < count; i++) { in getStartTime()
286 int count = animations.size(); in restrictDuration() local
288 for (int i = 0; i < count; i++) { in restrictDuration()
430 int count = animations.size(); in scaleCurrentDuration() local
431 for (int i = 0; i < count; i++) { in scaleCurrentDuration()
457 final int count = children.size(); in initialize() local
476 for (int i = 0; i < count; i++) { in initialize()
516 final int count = children.size(); in restoreChildrenStartOffset() local
[all …]
/aosp14/system/core/libsysutils/src/
H A DServiceManager.cpp62 int count = SLEEP_MAX_USEC; in start() local
63 while(count > 0) { in start()
65 count -= SLEEP_MIN_USEC; in start()
69 if (count <= 0) { in start()
92 int count = SLEEP_MAX_USEC; in stop() local
93 while(count > 0) { in stop()
95 count -= SLEEP_MIN_USEC; in stop()
100 if (count <= 0) { in stop()

12345678910>>...42