/frameworks/support/wear/src/android/support/wear/internal/widget/drawer/ |
H A D | SinglePageUi.java | 99 public void initialize(int count) { argument 100 if (count < 0 || count >= SINGLE_PAGE_LAYOUT_RES.length 101 || SINGLE_PAGE_LAYOUT_RES[count] == 0) { 106 @LayoutRes int layoutRes = SINGLE_PAGE_LAYOUT_RES[count]; 115 mSinglePageImageViews = new CircledImageView[count]; 116 for (int i = 0; i < count; i++) {
|
/frameworks/base/libs/hwui/ |
H A D | GradientCache.cpp | 43 uint32_t hash = JenkinsHashMix(0, count); 44 for (uint32_t i = 0; i < count; i++) { 52 int deltaInt = int(lhs.count) - int(rhs.count); 55 deltaInt = memcmp(lhs.colors.get(), rhs.colors.get(), lhs.count * sizeof(uint32_t)); 58 return memcmp(lhs.positions.get(), rhs.positions.get(), lhs.count * sizeof(float)); 109 Texture* GradientCache::get(uint32_t* colors, float* positions, int count) { argument 110 GradientCacheEntry gradient(colors, positions, count); 114 texture = addLinearGradient(gradient, colors, positions, count); 124 void GradientCache::getGradientInfo(const uint32_t* colors, const int count, argument 147 addLinearGradient(GradientCacheEntry& gradient, uint32_t* colors, float* positions, int count) argument [all...] |
/frameworks/support/v7/recyclerview/jvm-tests/src/android/support/v7/widget/ |
H A D | AdapterHelperTest.java | 196 void setupBasic(int count, int visibleStart, int visibleCount) { argument 198 log("setupBasic(" + count + "," + visibleStart + "," + visibleCount + ");"); 200 mTestAdapter = new TestAdapter(count, mAdapterHelper); 861 final int count = 10;// + nextInt(random,100); 862 final int start = nextInt(random, count - 1); 863 final int layoutCount = Math.max(1, nextInt(random, count - start)); 864 setupBasic(count, start, layoutCount); 978 AdapterHelper.UpdateOp op(int cmd, int start, int count) { argument 979 return new AdapterHelper.UpdateOp(cmd, start, count, null); 982 AdapterHelper.UpdateOp op(int cmd, int start, int count, Objec argument 986 addOp(int start, int count) argument 990 rmOp(int start, int count) argument 994 upOp(int start, int count, Object payload) argument 998 add(int start, int count) argument 1021 rm(int start, int count) argument 1034 up(int start, int count) argument 1041 up(int start, int count, Object payload) argument 1065 add(int index, int count) argument 1083 remove(int index, int count) argument 1092 update(int index, int count) argument 1096 update(int index, int count, Object payload) argument [all...] |
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/arm11_asm/ |
H A D | h264bsd_interpolate_hor_quarter.s | 38 count RN 2 label 140 ;// pack values to count register 146 MOV count, width 150 ADD count, count, tmp2, LSL #16 156 AND tmp1, count, #0x000F0000 ;// partHeight-1 157 AND tmp3, count, #0x00F00000 ;// partWidth-1 158 ADD count, count, tmp1, LSL #8 161 ADD count, coun [all...] |
/frameworks/ex/common/java/com/android/common/widget/ |
H A D | CompositeCursorAdapter.java | 40 int count; field in class:CompositeCursorAdapter.Partition 59 return count == 0; 173 int count; 175 count = 0; 177 count = cursor.getCount(); 180 if (count != 0 || partition.showIfEmpty) { 181 count++; 184 partition.count = count; 185 mCount += count; [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/ |
H A D | SmsMessageConverter.java | 75 byte count; 101 count = (byte) cdmaSmsMessage.address.digits.size(); 102 addr.numberOfDigits = count; 103 data = new byte[count]; 104 for (int index=0; index < count; index++) { 117 count = (byte) cdmaSmsMessage.subAddress.digits.size(); 119 if (count < 0) { 120 count = 0; 125 data = new byte[count]; 127 for (int index = 0; index < count; [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | TableLayout.java | 209 final int count = getChildCount(); 210 for (int i = 0; i < count; i++) { 222 int count = getChildCount(); 223 for (int i = 0; i < count; i++) { 292 int count = getChildCount(); 293 for (int i = 0; i < count; i++) { 381 final int count = collapsedColumns.size(); 382 for (int i = 0; i < count; i++) { 493 final int count = getChildCount(); 494 for (int i = 0; i < count; [all...] |
H A D | RemoteViewsService.java | 152 int count = 0; 154 count = mFactory.getCount(); 159 return count; 185 int count = 0; 187 count = mFactory.getViewTypeCount(); 192 return count;
|
H A D | SimpleCursorAdapter.java | 137 final int count = mTo.length; 141 for (int i = 0; i < count; i++) { 328 int count = from.length; 329 if (mFrom == null || mFrom.length != count) { 330 mFrom = new int[count]; 332 for (i = 0; i < count; i++) {
|
/frameworks/av/drm/mediacas/plugins/clearkey/ |
H A D | ecm.cpp | 155 size_t count = (count_bytes[0] << 8) | count_bytes[1]; local 156 // Check that count is a legal value. 157 if (!CountLegal(count)) { 158 ALOGE("Invalid descriptor count: expected %zu <= count <= %zu, received %zu.", 159 kMinDescriptorCount, kMaxDescriptorCount, count); 163 if (count > kMinDescriptorCount) { 165 kCountSizeBytes + (count * EcmDescriptor::kSizeBytes); 172 set_count(count);
|
/frameworks/av/include/media/stagefright/ |
H A D | DataSource.h | 76 // Reads in "count" entries of type T into vector *x. 77 // Returns true if "count" entries can be read. 78 // If fewer than "count" entries can be read, return false. In this case, 87 bool getVector(off64_t offset, Vector<T>* x, size_t count, 136 bool DataSource::getVector(off64_t offset, Vector<T>* x, size_t count, argument 143 if (count == 0) { 152 for (i = 0; i + chunkSize < count; i += chunkSize) { 169 // There are (count - i) more records to read. 170 // Right now, (count - i) <= chunkSize. 171 // We do the same thing as above, but with chunkSize replaced by count [all...] |
/frameworks/av/media/libnbaio/ |
H A D | MonoPipe.cpp | 66 ssize_t MonoPipe::write(const void *buffer, size_t count) argument 72 while (count > 0) { 73 ssize_t actual = mFifoWriter.write(buffer, count); 74 ALOG_ASSERT(actual <= count); 86 count -= written; 121 ns = count * (1350000000 / Format_sampleRate(mFormat));
|
/frameworks/av/media/libstagefright/foundation/include/ |
H A D | DataSource.h | 76 // Reads in "count" entries of type T into vector *x. 77 // Returns true if "count" entries can be read. 78 // If fewer than "count" entries can be read, return false. In this case, 87 bool getVector(off64_t offset, Vector<T>* x, size_t count, 136 bool DataSource::getVector(off64_t offset, Vector<T>* x, size_t count, argument 143 if (count == 0) { 152 for (i = 0; i + chunkSize < count; i += chunkSize) { 169 // There are (count - i) more records to read. 170 // Right now, (count - i) <= chunkSize. 171 // We do the same thing as above, but with chunkSize replaced by count [all...] |
/frameworks/av/media/libstagefright/include/ |
H A D | DataSource.h | 76 // Reads in "count" entries of type T into vector *x. 77 // Returns true if "count" entries can be read. 78 // If fewer than "count" entries can be read, return false. In this case, 87 bool getVector(off64_t offset, Vector<T>* x, size_t count, 136 bool DataSource::getVector(off64_t offset, Vector<T>* x, size_t count, argument 143 if (count == 0) { 152 for (i = 0; i + chunkSize < count; i += chunkSize) { 169 // There are (count - i) more records to read. 170 // Right now, (count - i) <= chunkSize. 171 // We do the same thing as above, but with chunkSize replaced by count [all...] |
/frameworks/base/core/jni/ |
H A D | android_os_MemoryFile.cpp | 75 jint count, jboolean unpinned) 84 env->SetByteArrayRegion(buffer, destOffset, count, (const jbyte *)address + srcOffset); 89 return count; 94 jint count, jboolean unpinned) 103 env->GetByteArrayRegion(buffer, srcOffset, count, (jbyte *)address + destOffset); 108 return count; 73 android_os_MemoryFile_read(JNIEnv* env, jobject clazz, jobject fileDescriptor, jlong address, jbyteArray buffer, jint srcOffset, jint destOffset, jint count, jboolean unpinned) argument 92 android_os_MemoryFile_write(JNIEnv* env, jobject clazz, jobject fileDescriptor, jlong address, jbyteArray buffer, jint srcOffset, jint destOffset, jint count, jboolean unpinned) argument
|
/frameworks/base/libs/common_time/ |
H A D | utils.cpp | 96 ++last->count; 100 mRingBuffer[mWr].count = 1; 125 size_t count = mIsFull ? mSize : mWr; local 132 for (size_t i = 0; i < count; ++i) { 138 if (1 != mRingBuffer[ndx].count) { 143 mRingBuffer[ndx].count,
|
/frameworks/native/libs/gui/ |
H A D | BitTube.cpp | 132 ssize_t BitTube::sendObjects(BitTube* tube, void const* events, size_t count, size_t objSize) { 134 ssize_t size = tube->write(vaddr, count * objSize); 138 "BitTube::sendObjects(count=%zu, size=%zu), res=%zd (partial events were " 140 count, objSize, size); 142 // ALOGE_IF(size<0, "error %d sending %d events", size, count); 146 ssize_t BitTube::recvObjects(BitTube* tube, void* events, size_t count, size_t objSize) { argument 148 ssize_t size = tube->read(vaddr, count * objSize); 152 "BitTube::recvObjects(count=%zu, size=%zu), res=%zd (partial events were " 154 count, objSize, size); 156 // ALOGE_IF(size<0, "error %d receiving %d events", size, count); [all...] |
/frameworks/native/libs/sensor/ |
H A D | BitTube.cpp | 144 void const* events, size_t count, size_t objSize) 147 ssize_t size = tube->write(vaddr, count*objSize); 151 "BitTube::sendObjects(count=%zu, size=%zu), res=%zd (partial events were sent!)", 152 count, objSize, size); 154 //ALOGE_IF(size<0, "error %d sending %d events", size, count); 159 void* events, size_t count, size_t objSize) 162 ssize_t size = tube->read(vaddr, count*objSize); 166 "BitTube::recvObjects(count=%zu, size=%zu), res=%zd (partial events were received!)", 167 count, objSize, size); 169 //ALOGE_IF(size<0, "error %d receiving %d events", size, count); 158 recvObjects(const sp<BitTube>& tube, void* events, size_t count, size_t objSize) argument [all...] |
/frameworks/native/libs/ui/ |
H A D | Fence.cpp | 148 status_t Fence::flatten(void*& buffer, size_t& size, int*& fds, size_t& count) const { 149 if (size < getFlattenedSize() || count < getFdCount()) { 157 count--; 162 status_t Fence::unflatten(void const*& buffer, size_t& size, int const*& fds, size_t& count) { argument 179 if (count < numFds) { 185 count--;
|
/frameworks/support/core-ui/java/android/support/v4/widget/ |
H A D | SimpleCursorAdapter.java | 126 final int count = mTo.length; 130 for (int i = 0; i < count; i++) { 317 int count = from.length; 318 if (mFrom == null || mFrom.length != count) { 319 mFrom = new int[count]; 321 for (i = 0; i < count; i++) {
|
/frameworks/support/v7/mediarouter/src/android/support/v7/media/ |
H A D | MediaRouteProviderDescriptor.java | 58 final int count = routeBundles.size(); 59 mRoutes = new ArrayList<MediaRouteDescriptor>(count); 60 for (int i = 0; i < count; i++) { 186 final int count = mRoutes.size(); 187 ArrayList<Bundle> routeBundles = new ArrayList<Bundle>(count); 188 for (int i = 0; i < count; i++) {
|
/frameworks/wilhelm/src/itf/ |
H A D | IBufferQueue.cpp | 67 ++thiz->mState.count; 72 (1 == thiz->mState.count) && (SL_PLAYSTATE_PLAYING == getAssociatedState(thiz))) ? 97 thiz->mState.count = 0; 135 state.count = thiz->mState.count; 181 thiz->mState.count = 0;
|
/frameworks/wilhelm/tests/sandbox/ |
H A D | playbq.cpp | 97 ssize_t count = fifoReader->read(buffer, framesPerBuffer); local 99 if (0 >= count) { 101 count = framesPerBuffer; 104 if (count > 0) { 105 SLuint32 nbytes = count * sfframesize; 122 sf_count_t count; local 126 count = sf_readf_float(sndfile, (float *) temp, READ_FRAMES); 130 count = sf_readf_int(sndfile, (int *) temp, READ_FRAMES); 134 count = sf_readf_short(sndfile, (short *) temp, READ_FRAMES); 137 count 501 sf_count_t count; local [all...] |
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/reference/vc/m4p2/src/ |
H A D | omxVCM4P2_MotionEstimationMB.c | 295 OMX_INT intraSAD, average, count, index, x, y; local 334 for (y = 0, index = count = 0; y < 16; y++, index += srcCurrStep - 16) 336 for(x = 0; x < 16; x++, count++, index++) 338 pTempSrcCurrBuf[count] = pSrcCurrBuf[index]; 516 for (count = 0, average = 0; count < 256 ; count++) 518 average = average + pTempSrcCurrBuf[count]; 525 for (count = 0; count < 25 [all...] |
/frameworks/base/cmds/incidentd/src/ |
H A D | FdBuffer.cpp | 83 int count = poll(&pfds, 1, remainingTime); local 84 if (count == 0) { 87 } else if (count < 0) {
|