/frameworks/base/core/java/android/database/ |
H A D | BulkCursorDescriptor.java | 47 public int count; field in class:BulkCursorDescriptor 60 out.writeInt(count); 73 count = in.readInt();
|
/frameworks/base/core/tests/coretests/src/android/widget/listview/ |
H A D | ListHeterogeneousTest.java | 55 int count = mListView.getAdapter().getCount(); 58 for (int i = 0; i < count - 1; i++) { 66 for (int i = 0; i < count - 1; i++) {
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
H A D | NativeBuffer.java | 39 public NativeBuffer(int count) { argument 40 allocate(count * getElementSize()); 63 public int count() { method in class:NativeBuffer
|
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/ |
H A D | TestContentResolver.java | 41 void waitForNotification(Uri uri, int count) throws InterruptedException, TimeoutException { argument 42 Assert.assertEquals(count, getPhaser(uri).awaitAdvanceInterruptibly( 43 count - 1, TIMEOUT_PERIOD_MS, TimeUnit.MILLISECONDS));
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | StatusBarIconList.java | 70 int count = 0; 73 count++; 76 return count;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/leak/ |
H A D | GarbageMonitor.java | 76 int count = mTrackedGarbage.countOldGarbage(); 77 if (count > GARBAGE_ALLOWANCE) { 78 mLeakReporter.dumpLeak(count);
|
/frameworks/base/wifi/tests/src/android/net/wifi/aware/ |
H A D | TlvBufferUtilsTest.java | 136 int count = 0; 138 if (count == 0) { 142 } else if (count == 1) { 147 } else if (count == 2) { 154 ++count; 156 if (count != 3) { 168 count = 0; 170 if (count == 0) { 174 } else if (count == 1) { 179 } else if (count [all...] |
/frameworks/ex/common/java/com/android/common/content/ |
H A D | SQLiteContentProvider.java | 149 int count = 0; 155 count = updateInTransaction(uri, values, selection, selectionArgs); 156 if (count > 0) { 166 count = updateInTransaction(uri, values, selection, selectionArgs); 167 if (count > 0) { 172 return count; 177 int count = 0; 183 count = deleteInTransaction(uri, selection, selectionArgs); 184 if (count > 0) { 194 count [all...] |
/frameworks/native/services/sensorservice/ |
H A D | BatteryService.h | 40 int32_t count; member in struct:android::BatteryService::Info 41 Info() : uid(0), handle(0), count(0) { } 42 Info(uid_t uid, int handle) : uid(uid), handle(handle), count(0) { }
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/anqp/ |
H A D | NAIRealmElement.java | 58 int count = (int) ByteBufferReader.readInteger(payload, ByteOrder.LITTLE_ENDIAN, 2) 60 while (count > 0) { 62 count--;
|
/frameworks/base/core/java/android/text/ |
H A D | SpannableStringInternal.java | 88 int count = 0; 95 count++; 98 if (count == 0) return; 101 mSpanCount = count; 185 int count = mSpanCount; 189 for (int i = 0; i < count; i++) { 226 int count = mSpanCount; 230 for (int i = count - 1; i >= 0; i--) { 235 int c = count - (i + 1); 250 int count [all...] |
/frameworks/rs/support/java/src/android/support/v8/renderscript/ |
H A D | Allocation.java | 1001 int count = data_length / eSize; 1002 if ((eSize * count) != data_length) { 1006 copy1DRangeFromUnchecked(xoff, count, data); 1082 private void data1DChecks(int off, int count, int len, int dataSize, boolean usePadding) { argument 1087 if(count < 1) { 1090 if((off + count) > mCurrentCount) { 1091 throw new RSIllegalArgumentException("Overflow, Available count " + mCurrentCount + 1092 ", got " + count + " at offset " + off + "."); 1119 private void copy1DRangeFromUnchecked(int off, int count, Object array, argument 1121 final int dataSize = mType.mElement.getBytesSize() * count; 1154 copy1DRangeFromUnchecked(int off, int count, Object array) argument 1182 copy1DRangeFromUnchecked(int off, int count, int[] d) argument 1208 copy1DRangeFromUnchecked(int off, int count, short[] d) argument 1234 copy1DRangeFromUnchecked(int off, int count, byte[] d) argument 1260 copy1DRangeFromUnchecked(int off, int count, float[] d) argument 1289 copy1DRangeFrom(int off, int count, Object array) argument 1319 copy1DRangeFrom(int off, int count, int[] d) argument 1348 copy1DRangeFrom(int off, int count, short[] d) argument 1377 copy1DRangeFrom(int off, int count, byte[] d) argument 1406 copy1DRangeFrom(int off, int count, float[] d) argument 1420 copy1DRangeFrom(int off, int count, Allocation data, int dataOff) argument 1993 copy1DRangeToUnchecked(int off, int count, Object array, Element.DataType dt, int arrayLen) argument 2028 copy1DRangeToUnchecked(int off, int count, Object array) argument 2056 copy1DRangeToUnchecked(int off, int count, int[] d) argument 2082 copy1DRangeToUnchecked(int off, int count, short[] d) argument 2108 copy1DRangeToUnchecked(int off, int count, byte[] d) argument 2134 copy1DRangeToUnchecked(int off, int count, float[] d) argument 2163 copy1DRangeTo(int off, int count, Object array) argument 2193 copy1DRangeTo(int off, int count, int[] d) argument 2222 copy1DRangeTo(int off, int count, short[] d) argument 2251 copy1DRangeTo(int off, int count, byte[] d) argument 2280 copy1DRangeTo(int off, int count, float[] d) argument 2613 createSized(RenderScript rs, Element e, int count, int usage) argument 2636 createSized(RenderScript rs, Element e, int count) argument [all...] |
/frameworks/base/core/java/android/gesture/ |
H A D | Gesture.java | 68 final int count = mStrokes.size(); 69 for (int i = 0; i < count; i++) { 109 final int count = strokes.size(); 111 for (int i = 0; i < count; i++) { 133 final int count = strokes.size(); 135 for (int i = 0; i < count; i++) { 150 final int count = strokes.size(); 152 for (int i = 0; i < count; i++) { 201 final int count = strokes.size(); 203 for (int i = 0; i < count; [all...] |
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/ |
H A D | ton_stab.cpp | 171 CLOCK CYCLES: (cycle count equation for this function) + (variable 172 used to represent cycle count for each subroutine 174 where: (cycle count variable) = cycle count for [subroutine 260 st->count = 0; 276 CLOCK CYCLES: (cycle count equation for this function) + (variable 277 used to represent cycle count for each subroutine 279 where: (cycle count variable) = cycle count for [subroutine 298 st->count [all...] |
/frameworks/base/drm/java/android/drm/ |
H A D | DrmOutputStream.java | 93 public void write(byte[] buffer, int offset, int count) throws IOException { argument 94 Arrays.checkOffsetAndCount(buffer.length, offset, count); 97 if (count == buffer.length) { 100 exactBuffer = new byte[count]; 101 System.arraycopy(buffer, offset, exactBuffer, 0, count);
|
/frameworks/base/media/java/android/media/midi/ |
H A D | MidiInputPort.java | 76 public void onSend(byte[] msg, int offset, int count, long timestamp) throws IOException { argument 77 if (offset < 0 || count < 0 || offset + count > msg.length) { 78 throw new IllegalArgumentException("offset or count out of range"); 80 if (count > MidiPortImpl.MAX_PACKET_DATA_SIZE) { 81 throw new IllegalArgumentException("count exceeds max message size"); 88 int length = MidiPortImpl.packData(msg, offset, count, timestamp, mBuffer);
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/drawer/ |
H A D | DashboardCategory.java | 109 final int count = tiles.size(); 110 dest.writeInt(count); 112 for (int n = 0; n < count; n++) { 123 final int count = in.readInt(); 125 for (int n = 0; n < count; n++) {
|
/frameworks/base/services/net/java/android/net/netlink/ |
H A D | NetlinkSocket.java | 138 public boolean sendMessage(byte[] bytes, int offset, int count) argument 140 return sendMessage(bytes, offset, count, 0); 149 public boolean sendMessage(byte[] bytes, int offset, int count, long timeoutMs) argument 162 return (count == Os.write(mDescriptor, bytes, offset, count));
|
/frameworks/base/tools/aapt/ |
H A D | Package.cpp | 61 int count; local 112 count = processAssets(bundle, zip, outputSet); 113 if (count < 0) { 116 result = count; 121 printf("Generated %d file%s\n", count, (count==1) ? "" : "s"); 124 count = processJarFiles(bundle, zip); 125 if (count < 0) { 128 result = count; 133 printf("Included %d file%s from jar/zip files.\n", count, (coun 220 ssize_t count = 0; local 406 size_t count = 0; local 430 ssize_t count = 0; local [all...] |
/frameworks/av/media/img_utils/include/img_utils/ |
H A D | TiffWriter.h | 121 * - BAD_VALUE - The given count doesn't match the required count for 132 * was constructed with. The count and type are validated. 137 * - BAD_VALUE - The given count doesn't match the required count for 144 status_t addEntry(uint16_t tag, uint32_t count, const T* data, uint32_t ifd); 149 * with. The count and type are validated. If this succeeds, the resulting 155 * - BAD_VALUE - The given count doesn't match the required count for 161 status_t buildEntry(uint16_t tag, uint32_t count, cons 272 buildEntry(uint16_t tag, uint32_t count, const T* data, sp<TiffEntry>* outEntry) const argument 301 addEntry(uint16_t tag, uint32_t count, const T* data, uint32_t ifd) argument 314 uncheckedBuildEntry(uint16_t tag, TagType type, uint32_t count, Endianness end, const T* data) argument [all...] |
/frameworks/av/drm/mediacas/plugins/clearkey/ |
H A D | ecm.h | 58 // This contains 1 or 2 EcmDescriptors and a count. It contains no 249 // Contains a count and 1 or 2 EcmDescriptors. This is included in the video 254 // Wire size of the count field. 272 // - INTERNAL if the EcmContainer is in a bad state (count != 0, 1, or 2). 274 // - count() is within bounds (1 or 2). 282 // - ERROR_OUT_OF_RANGE if the count contained in the serialized EcmContainer 286 // - count() is within bounds (1 or 2) and. 291 // Sets the |count| of contained EcmDecriptors. Illegal values are silently 293 inline void set_count(size_t count) { argument 294 if (!CountLegal(count)) retur 299 inline size_t count() const { return count_; } function in class:android::clearkeycas::EcmContainer [all...] |
/frameworks/av/include/media/ |
H A D | MediaAnalyticsItem.h | 109 int32_t count() const; 115 void setRate(Attr, int64_t count, int64_t duration); 123 void addRate(Attr, int64_t count, int64_t duration); 131 bool getRate(Attr, int64_t *count, int64_t *duration, double *rate); 146 int32_t filter(int count, Attr attrs[]); 147 int32_t filterNot(int count, Attr attrs[]); 215 struct { int64_t count, duration; } rate; member in struct:android::MediaAnalyticsItem::Prop::__anon81::__anon82
|
/frameworks/av/media/libmediametrics/include/ |
H A D | MediaAnalyticsItem.h | 109 int32_t count() const; 115 void setRate(Attr, int64_t count, int64_t duration); 123 void addRate(Attr, int64_t count, int64_t duration); 131 bool getRate(Attr, int64_t *count, int64_t *duration, double *rate); 146 int32_t filter(int count, Attr attrs[]); 147 int32_t filterNot(int count, Attr attrs[]); 215 struct { int64_t count, duration; } rate; member in struct:android::MediaAnalyticsItem::Prop::__anon394::__anon395
|
/frameworks/base/core/java/com/android/internal/app/procstats/ |
H A D | PssTable.java | 65 final long count = getValue(key, PSS_SAMPLE_COUNT); 66 if (count == 0) { 75 setValue(key, PSS_SAMPLE_COUNT, count + inCount); 86 (long)(((val*(double)count)+(avgPss*(double)inCount)) / (count+inCount))); 100 (long)(((val*(double)count)+(avgUss*(double)inCount)) / (count+inCount)));
|
/frameworks/native/libs/sensor/ |
H A D | SensorEventQueue.cpp | 75 size_t count = min(numEvents, mAvailable); local 76 memcpy(events, mRecBuffer + mConsumed, count * sizeof(ASensorEvent)); 77 mAvailable -= count; 78 mConsumed += count; 79 return static_cast<ssize_t>(count); 172 void SensorEventQueue::sendAck(const ASensorEvent* events, int count) { argument 173 for (int i = 0; i < count; ++i) {
|