Searched defs:count (Results 176 - 200 of 519) sorted by relevance

1234567891011>>

/frameworks/base/libs/hwui/
H A DGradientCache.h36 count = 0;
41 GradientCacheEntry(uint32_t* colors, float* positions, uint32_t count) { argument
42 copy(colors, positions, count);
46 copy(entry.colors.get(), entry.positions.get(), entry.count);
51 copy(entry.colors.get(), entry.positions.get(), entry.count);
71 uint32_t count; member in struct:android::uirenderer::GradientCacheEntry
74 void copy(uint32_t* colors, float* positions, uint32_t count) { argument
75 this->count = count;
76 this->colors.reset(new uint32_t[count]);
[all...]
H A DTextureCache.cpp196 size_t count = mGarbage.size(); local
197 for (size_t i = 0; i < count; i++) {
/frameworks/base/libs/usb/tests/accessorytest/
H A Dhid.c95 int count = desc_length - offset; local
96 if (count > max_packet) count = max_packet;
98 fprintf(stderr, "sending ACCESSORY_SET_HID_REPORT_DESC offset: %d count: %d desc_length: %d\n",
99 offset, count, desc_length);
101 ACCESSORY_SET_HID_REPORT_DESC, id, offset, &desc.value[offset], count, 1000);
103 offset += count;
167 int count = read(inotify_fd, event_buf, sizeof(event_buf)); local
168 if (count < (int)sizeof(*event)) {
174 while (count >
[all...]
/frameworks/base/media/java/android/media/midi/
H A DMidiInputPort.java76 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/media/packages/BluetoothMidiService/src/com/android/bluetoothmidiservice/
H A DBluetoothMidiDevice.java203 public void writePacket(byte[] buffer, int count) { argument
208 byte[] writeBuffer = mWriteBuffers[count];
209 System.arraycopy(buffer, 0, writeBuffer, 0, count);
258 mPacketEncoder.send(event.data, 0, event.count,
290 private static void logByteArray(String prefix, byte[] value, int offset, int count) { argument
292 for (int i = offset; i < count; i++) {
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/bots/
H A DDirectoryListBot.java56 public void assertDocumentsCount(int count) throws UiObjectNotFoundException { argument
58 assertEquals(count, docsList.getChildCount());
87 public void assertDocumentsCountOnList(boolean exists, int count) throws UiObjectNotFoundException { argument
91 assertEquals(count, docsList.getChildCount());
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
H A DAnglesClassifier.java144 // the angle variance so far and start to count the values for the angle
167 public float getAnglesVariance(float sumSquares, float sum, float count) { argument
168 return sumSquares / count - (sum / count) * (sum / count);
/frameworks/base/tools/aapt2/process/
H A DSymbolTable.cpp147 ssize_t count = table.lockBag(id.id, &entry); local
148 if (count < 0) {
158 for (size_t i = 0; i < (size_t) count; i++) {
167 for (size_t i = 0; i < (size_t) count; i++) {
/frameworks/compile/mclinker/lib/Target/Mips/
H A DMipsPLT.cpp103 size_t count = 0; local
131 uint64_t gotEntryAddr = pGOTPLT.getEntryAddr(count++);
/frameworks/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/
H A DObservableArrayListTest.java49 public void onItemRangeChanged(ObservableList sender, int start, int count) {
50 mNotifications.add(new ListChange(CHANGE, start, count));
54 public void onItemRangeInserted(ObservableList sender, int start, int count) {
55 mNotifications.add(new ListChange(INSERT, start, count));
59 public void onItemRangeMoved(ObservableList sender, int from, int to, int count) {
60 mNotifications.add(new ListChange(MOVE, from, to, count));
64 public void onItemRangeRemoved(ObservableList sender, int start, int count) {
65 mNotifications.add(new ListChange(REMOVE, start, count));
71 public ListChange(int change, int start, int count) { argument
73 this.count
79 ListChange(int change, int from, int to, int count) argument
89 public final int count; field in class:ObservableArrayListTest.ListChange
[all...]
/frameworks/ex/common/tests/src/com/android/common/widget/
H A DCompositeCursorAdapterTest.java250 private Cursor makeCursor(String name, int count) { argument
252 for (int i = 0; i < count; i++) {
/frameworks/native/libs/gui/
H A DSensorEventQueue.cpp78 size_t count = min(numEvents, mAvailable); local
79 memcpy(events, mRecBuffer + mConsumed, count * sizeof(ASensorEvent));
80 mAvailable -= count;
81 mConsumed += count;
82 return static_cast<ssize_t>(count);
175 void SensorEventQueue::sendAck(const ASensorEvent* events, int count) { argument
176 for (int i = 0; i < count; ++i) {
H A DSensorManager.cpp151 size_t count = mSensors.size(); local
153 static_cast<Sensor const**>(malloc(count * sizeof(Sensor*)));
156 for (size_t i=0 ; i<count ; i++) {
182 size_t count = dynamicSensors.size(); local
184 return static_cast<ssize_t>(count);
/frameworks/native/libs/ui/
H A DFence.cpp140 status_t Fence::flatten(void*& buffer, size_t& size, int*& fds, size_t& count) const {
141 if (size < getFlattenedSize() || count < getFdCount()) {
149 count--;
154 status_t Fence::unflatten(void const*& buffer, size_t& size, int const*& fds, size_t& count) { argument
171 if (count < numFds) {
177 count--;
/frameworks/native/services/surfaceflinger/
H A DClient.cpp44 const size_t count = mLayers.size(); local
45 for (size_t i=0 ; i<count ; i++) {
67 const size_t count = mLayers.size(); local
68 for (size_t i=0 ; i<count ; i++) {
/frameworks/opt/net/voip/src/jni/rtp/
H A DAmrCodec.cpp55 int decode(int16_t *samples, int count, void *payload, int length);
131 int AmrCodec::decode(int16_t *samples, int /* count */, void *payload, int length)
216 int decode(int16_t *samples, int count, void *payload, int length);
242 int GsmEfrCodec::decode(int16_t *samples, int count, void *payload, int length) argument
246 while (n + 160 <= count && length >= 31 && (bytes[0] >> 4) == 0x0C) {
/frameworks/rs/cpp/
H A DType.cpp51 uint32_t count = x * y * z * faces; local
63 count += x * y * z * faces;
65 mElementCount = count;
/frameworks/rs/java/tests/RsBLAS_Benchmark/src/com/example/android/rs/blasbenchmark/
H A DBNNMTest.java88 private void addByteNoise(byte[] data, int count, float frequency, int maxDelta) { argument
90 for (int n = 0; n < count; ++n) {
/frameworks/support/v4/java/android/support/v4/text/
H A DTextDirectionHeuristicsCompat.java124 public boolean isRtl(char[] array, int start, int count) { argument
125 return isRtl(CharBuffer.wrap(array), start, count);
129 public boolean isRtl(CharSequence cs, int start, int count) { argument
130 if (cs == null || start < 0 || count < 0 || cs.length() - count < start) {
136 return doCheck(cs, start, count);
139 private boolean doCheck(CharSequence cs, int start, int count) { argument
140 switch(mAlgorithm.checkRtl(cs, start, count)) {
173 int checkRtl(CharSequence cs, int start, int count); argument
182 public int checkRtl(CharSequence cs, int start, int count) { argument
205 checkRtl(CharSequence cs, int start, int count) argument
[all...]
/frameworks/support/v7/recyclerview/jvm-tests/src/android/support/v7/util/
H A DSortedListAdapterCallbackWrapperTest.java48 public void onInserted(int position, int count) {
51 lastReceivedCount = count;
55 public void onRemoved(int position, int count) {
58 lastReceivedCount = count;
69 public void onChanged(int position, int count) {
72 lastReceivedCount = count;
300 private void assertLast(int type, int position, int count) throws Throwable { argument
306 if (count >= 0) {
307 assertEquals(lastReceivedCount, count);
310 throw new Throwable("last event: expected=" + log(type, position, count)
316 assertPending(int type, int position, int count) argument
332 log(int type, int position, int count) argument
[all...]
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DWrapContentBasicTest.java179 private View[] createMockChildren(int count) { argument
180 View[] views = new View[count];
181 for (int i = 0; i < count; i++) {
/frameworks/wilhelm/src/desktop/
H A DSndFile.c46 sf_count_t count; local
47 count = sf_read_short(thiz->mSNDFILE, pBuffer, (sf_count_t) SndFile_BUFSIZE);
75 if (0 < count) {
77 SLuint32 size = (SLuint32) (count * sizeof(short));
194 SLboolean empty = 0 == audioPlayer->mBufferQueue.mState.count;
/frameworks/av/camera/
H A DCameraBase.cpp213 int32_t count; local
216 &count);
220 count = 0;
222 return count;
/frameworks/av/media/libmedia/
H A DJetPlayer.cpp160 EAS_I32 count; local
205 result = EAS_Render(mEasData, p, pLibConfig->mixBufferSize, &count);
209 p += count * pLibConfig->numChannels;
210 num_output += count * pLibConfig->numChannels * sizeof(EAS_PCM);
H A DToneGenerator.cpp1146 // Update pcm frame count and end time (current time at the end of this process)
1240 // Pre increment loop count and restart if total count not reached. Stop sequence otherwise
1568 // Description: Generates count samples of a sine wave and accumulates
1573 // count: number of samples to produce.
1581 unsigned int count, unsigned int command) {
1599 if (count == 0) {
1602 long dec = lAmplitude/count;
1604 while (count) {
1605 count
1580 getSamples(short *outBuffer, unsigned int count, unsigned int command) argument
[all...]

Completed in 835 milliseconds

1234567891011>>