Searched refs:count (Results 51 - 75 of 783) sorted by relevance

1234567891011>>

/frameworks/base/telephony/java/android/telephony/
H A DPhoneNumberFormattingTextWatcher.java77 public void beforeTextChanged(CharSequence s, int start, int count, argument
83 if (count > 0 && hasSeparator(s, start, count)) {
89 public void onTextChanged(CharSequence s, int start, int before, int count) { argument
94 if (count > 0 && hasSeparator(s, start, count)) {
166 private boolean hasSeparator(final CharSequence s, final int start, final int count) { argument
167 for (int i = start; i < start + count; i++) {
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DLayersActivity.java55 int count = canvas.saveLayer(0.0f, 0.0f, 200.0f, 100.0f, mLayerPaint,
61 canvas.restoreToCount(count);
65 count = canvas.saveLayer(0.0f, 0.0f, 200.0f, 100.0f, mLayerPaint,
72 canvas.restoreToCount(count);
82 count = canvas.saveLayer(50.0f, 25.0f, 150.0f, 75.0f, mLayerPaint,
88 canvas.restoreToCount(count);
99 count = canvas.saveLayer(50.0f, 25.0f, 150.0f, 75.0f, mLayerPaint,
105 canvas.restoreToCount(count);
/frameworks/opt/net/voip/src/jni/rtp/
H A DG711Codec.cpp42 int decode(int16_t *samples, int count, void *payload, int length);
67 int UlawCodec::decode(int16_t *samples, int count, void *payload, int length) argument
70 if (length > count) {
71 length = count;
93 int decode(int16_t *samples, int count, void *payload, int length);
117 int AlawCodec::decode(int16_t *samples, int count, void *payload, int length) argument
120 if (length > count) {
121 length = count;
H A DAudioCodec.h33 virtual int decode(int16_t *samples, int count, void *payload, int length) = 0;
/frameworks/base/core/jni/android/graphics/
H A DShader.cpp118 size_t count = env->GetArrayLength(colorArray); local
121 SkAutoSTMalloc<8, SkScalar> storage(posArray ? count : 0);
125 AutoJavaFloatArray autoPos(env, posArray, count);
128 for (size_t i = 0; i < count; i++) {
135 pos, count,
147 size_t count = env->GetArrayLength(colorArray); local
156 size_t stopCount = count;
160 AutoJavaFloatArray autoPos(env, posArray, count);
164 missLast = posValues[count - 1] != 1.0f;
173 for (size_t i = missFirst; i < count
265 size_t count = env->GetArrayLength(colorArray); local
309 size_t count = env->GetArrayLength(colorArray); local
369 size_t count = env->GetArrayLength(jcolors); local
408 size_t count = env->GetArrayLength(colorArray); local
[all...]
/frameworks/base/services/java/com/android/server/location/
H A DGpsXtraDownloader.java57 int count = 0;
61 if (server1 != null) count++;
62 if (server2 != null) count++;
63 if (server3 != null) count++;
65 if (count == 0) {
69 mXtraServers = new String[count];
70 count = 0;
71 if (server1 != null) mXtraServers[count++] = server1;
72 if (server2 != null) mXtraServers[count++] = server2;
73 if (server3 != null) mXtraServers[count
[all...]
/frameworks/native/include/private/ui/
H A DRegionHelper.h51 size_t count; member in struct:android::region_operator::region
55 : rects(rhs.rects), count(rhs.count), dx(rhs.dx), dy(rhs.dy) { }
57 : rects(r), count(c), dx(), dy() { }
59 : rects(r), count(c), dx(dx), dy(dy) { }
168 if (lhs.count) {
172 if (rhs.count) {
179 return !rhs.count && !lhs.count;
200 size_t count local
[all...]
/frameworks/native/services/sensorservice/
H A DSensorService.cpp79 ssize_t count = dev.getSensorList(&list); local
80 if (count > 0) {
88 mLastEventSeen.setCapacity(count);
89 for (ssize_t i=0 ; i<count ; i++) {
118 registerVirtualSensor( new GravitySensor(list, count) );
119 registerVirtualSensor( new LinearAccelerationSensor(list, count) );
123 registerVirtualSensor( new CorrectedGyroSensor(list, count) );
244 sensors_event_t const* buffer, const int count) {
247 for (int i=0 ; i<count ; i++) {
272 ssize_t count; local
243 cleanupAutoDisabledSensor(const sp<SensorEventConnection>& connection, sensors_event_t const* buffer, const int count) argument
370 recordLastValue( sensors_event_t const * buffer, size_t count) argument
388 sortEventBuffer(sensors_event_t* buffer, size_t count) argument
415 size_t count = mUserSensorList.size(); local
427 size_t count = mUserSensorList.size(); local
692 size_t count = 0; local
[all...]
/frameworks/av/include/media/nbaio/
H A DLibsndfileSink.h45 virtual ssize_t write(const void *buffer, size_t count);
H A DMonoPipeReader.h50 virtual ssize_t read(void *buffer, size_t count, int64_t readPTS);
/frameworks/av/media/libnbaio/
H A DMonoPipeReader.cpp46 ssize_t MonoPipeReader::read(void *buffer, size_t count, int64_t readPTS) argument
50 // with a count (which is the number of audio frames they are going to
52 // by the duration of count will give us the readPTS which will be passed to
57 nextReadPTS = mPipe->offsetTimestampByAudioFrames(readPTS, count);
59 // count == 0 is unlikely and not worth checking for explicitly; will be handled automatically
67 if (CC_LIKELY((size_t) red > count)) {
68 red = count;
H A DNBAIO.cpp156 size_t count = total - accumulator; local
157 if (count > block) {
158 count = block;
160 ssize_t ret = via(user, buffer, count);
162 ALOG_ASSERT((size_t) ret <= count);
193 size_t count = total - accumulator; local
194 if (count > block) {
195 count = block;
197 ssize_t ret = read(buffer, count, readPTS);
199 ALOG_ASSERT((size_t) ret <= count);
[all...]
/frameworks/base/core/java/android/gesture/
H A DLearner.java52 int count = instances.size();
53 for (int i = 0; i < count; i++) {
70 final int count = instances.size();
72 for (int i = 0; i < count; i++) {
/frameworks/base/core/java/android/test/
H A DPerformanceTestCase.java32 void setInternalIterations(int count); argument
46 * <p>If you return a non-zero iteration count, you should call
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/
H A DEnergyProbe.java58 int count = 0;
85 count++;
94 if (count == 0) {
97 return energy/count;
/frameworks/compile/libbcc/include/bcc/Support/
H A DInputFile.h30 ssize_t read(void *pBuf, size_t count);
/frameworks/compile/libbcc/lib/Support/
H A Dsha1.h9 unsigned long count[2]; member in struct:__anon1251
/frameworks/native/opengl/tools/glgen/stubs/gles11/
H A DglDrawElementsInstanced.cpp1 /* void glDrawElementsInstanced ( GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei instanceCount ) */
4 (JNIEnv *_env, jobject _this, jint mode, jint count, jint type, jobject indices_buf, jint instanceCount) {
17 (GLsizei)count,
27 /* void glDrawElementsInstanced ( GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei instanceCount ) */
30 (JNIEnv *_env, jobject _this, jint mode, jint count, jint type, jint indicesOffset, jint instanceCount) {
33 (GLsizei)count,
3 android_glDrawElementsInstanced__IIILjava_nio_Buffer_2I(JNIEnv *_env, jobject _this, jint mode, jint count, jint type, jobject indices_buf, jint instanceCount) argument
29 android_glDrawElementsInstanced__IIIII(JNIEnv *_env, jobject _this, jint mode, jint count, jint type, jint indicesOffset, jint instanceCount) argument
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/reference/vc/m4p2/src/
H A DarmVCM4P2_BlockMatch_Half.c75 OMX_INT outer, inner, count, index; local
95 for (outer = 0, count = 0,index = 0;
99 for (inner = 0; inner < BlockSize; inner++, count++, index++)
101 refSAD += armAbs (pTempSrcRefBuf[index] - pSrcCurrBuf[count]);
150 for (outer = 0, count = 0, candSAD = 0,index = 0;
154 for (inner = 0; inner < BlockSize; inner++, count++,index++)
164 candSAD += armAbs (tempPel - pSrcCurrBuf[count]);
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/arm11_asm/
H A Dh264bsd_interpolate_chroma_hor.s41 count RN 2 label
149 ;// pack values to count register
158 ADD count, count, tmp2, LSL #16 ;// chromaPartHeight-1
159 ADD count, count, tmp2, LSL #24 ;// loop_y
160 ADD count, count, tmp1, LSL #20 ;// chromaPartWidth-1
161 AND tmp2, count, #0x00F00000 ;// loop_x
175 ADD count, coun
[all...]
H A Dh264bsd_interpolate_chroma_hor_ver.s42 count RN 2 label
155 ;// pack values to count register
164 ADD count, count, tmp2, LSL #16 ;// chromaPartHeight-1
165 ADD count, count, tmp2, LSL #24 ;// loop_y
166 ADD count, count, tmp1, LSL #20 ;// chromaPartWidth-1
167 AND tmp2, count, #0x00F00000 ;// loop_x
190 ADD count, coun
[all...]
H A Dh264bsd_interpolate_chroma_ver.s40 count RN 2 label
147 ;// pack values to count register
156 ADD count, count, tmp2, LSL #16 ;// chromaPartHeight-1
157 ADD count, count, tmp2, LSL #24 ;// loop_y
158 ADD count, count, tmp1, LSL #20 ;// chromaPartWidth-1
159 AND tmp2, count, #0x00F00000 ;// loop_x
173 ADD count, coun
[all...]
/frameworks/opt/mailcommon/java/com/android/mailcommon/
H A DMergedAdapter.java91 int count = 0;
93 count += adapter.getCount();
95 return count;
110 int count = 0;
114 int newCount = count + a.getCount();
116 return new LocalAdapterPosition<T>(a, position - count);
118 count = newCount;
140 int count = 0;
142 count += adapter.getViewTypeCount();
144 return count;
[all...]
/frameworks/base/core/java/com/android/internal/util/
H A DMemInfoReader.java73 int count = 0;
74 for (int i=0; i<len && count < 3; i++) {
78 count++;
82 count++;
86 count++;
/frameworks/base/drm/java/android/drm/
H A DDrmOutputStream.java82 public void write(byte[] buffer, int offset, int count) throws IOException { argument
83 Arrays.checkOffsetAndCount(buffer.length, offset, count);
86 if (count == buffer.length) {
89 exactBuffer = new byte[count];
90 System.arraycopy(buffer, offset, exactBuffer, 0, count);

Completed in 578 milliseconds

1234567891011>>