Searched refs:pos (Results 101 - 125 of 323) sorted by relevance

1234567891011>>

/frameworks/base/core/jni/android/graphics/
H A DUtils.cpp29 off64_t pos = fAsset->seek(0, SEEK_SET); local
30 if (pos == (off64_t)-1) {
/frameworks/base/tests/HierarchyViewerTest/src/com/android/test/hierarchyviewer/
H A DDecoder.java93 public DecoderException(byte seen, int pos) { argument
94 super(String.format("Unexpected byte %c seen at position %d", (char)seen, pos));
/frameworks/opt/bluetooth/src/android/bluetooth/client/map/utils/
H A DBmsgTokenizer.java84 throw new ParseException("Property or empty line expected", pos());
105 public int pos() { method in class:BmsgTokenizer
/frameworks/rs/java/tests/ScriptGroupTest/src/com/android/rs/sgtest/
H A DScriptGroupTestActivity.java131 String getFilterName(int pos) { argument
132 return Filters.mFilterClasses[pos].getSimpleName();
156 public void onItemSelected(AdapterView<?> parent, View view, int pos, long id) {
160 pos);
169 public void onItemSelected(AdapterView<?> parent, View view, int pos, long id) {
170 changeTest(pos, mTestSpinner2.getSelectedItemPosition(),
180 public void onItemSelected(AdapterView<?> parent, View view, int pos, long id) {
181 changeTest(mTestSpinner1.getSelectedItemPosition(), pos,
/frameworks/base/core/jni/
H A Dandroid_backup_BackupHelperDispatcher.cpp146 int pos; local
161 pos = lseek(fd, 0, SEEK_CUR);
165 return (jint) pos;
169 writeHeader_native(JNIEnv* env, jobject clazz, jobject headerObj, jobject fdObj, jint pos) argument
187 header.dataSize = prevPos - (pos + header.headerSize);
189 lseek(fd, pos, SEEK_SET);
H A Dandroid_util_Binder.cpp1015 static bool push_eventlog_string(char** pos, const char* end, const char* str) { argument
1018 if (end - *pos < space_needed) {
1020 end - *pos, space_needed);
1023 **pos = EVENT_TYPE_STRING;
1024 (*pos)++;
1025 memcpy(*pos, &len, sizeof(len));
1026 *pos += sizeof(len);
1027 memcpy(*pos, str, len);
1028 *pos += len;
1032 static bool push_eventlog_int(char** pos, cons argument
1076 char* pos = &buf[2]; local
[all...]
H A Dandroid_util_StringBlock.cpp112 const ResStringPool_span* pos = spans; local
114 while (pos->name.index != ResStringPool_span::END) {
116 pos++;
/frameworks/support/v4/java/android/support/v4/util/
H A DLongSparseArray.java339 int pos = mSize;
340 if (pos >= mKeys.length) {
341 int n = ContainerHelpers.idealLongArraySize(pos + 1);
354 mKeys[pos] = key;
355 mValues[pos] = value;
356 mSize = pos + 1;
H A DSparseArrayCompat.java334 int pos = mSize;
335 if (pos >= mKeys.length) {
336 int n = ContainerHelpers.idealIntArraySize(pos + 1);
349 mKeys[pos] = key;
350 mValues[pos] = value;
351 mSize = pos + 1;
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
H A DPositionMap.java344 int pos = mSize;
345 if (pos >= mKeys.length) {
346 int n = idealIntArraySize(pos + 1);
359 mKeys[pos] = key;
360 mValues[pos] = value;
361 mSize = pos + 1;
H A DGridLayoutManager.java389 int pos = anchorInfo.mPosition;
391 while (pos < indexLimit) {
392 int next = getSpanIndex(recycler, state, pos + 1);
394 pos += 1;
400 anchorInfo.mPosition = pos;
455 private int getSpanIndex(RecyclerView.Recycler recycler, RecyclerView.State state, int pos) { argument
457 return mSpanSizeLookup.getCachedSpanIndex(pos, mSpanCount);
459 final int cached = mPreLayoutSpanIndexCache.get(pos, -1);
463 final int adapterPosition = recycler.convertPreLayoutPositionToPostLayout(pos);
467 + " not cached, not in the adapter. Pos:" + pos);
476 getSpanSize(RecyclerView.Recycler recycler, RecyclerView.State state, int pos) argument
[all...]
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/
H A Dvlc_decode.cpp147 int pos = (x_pos + y_pos * doubleWidth) << 1; local
183 mot_x[pos+offset] = (MOT) mvx;
184 mot_y[pos+offset] = (MOT) mvy;
212 mot_x[pos] = mot_x[pos+1] = (MOT) mvx;
213 mot_y[pos] = mot_y[pos+1] = (MOT) mvy;
214 pos += doubleWidth;
215 mot_x[pos] = mot_x[pos
[all...]
/frameworks/opt/telephony/src/java/android/telephony/
H A DSmsMessage.java379 int pos = 0; // Index in code units.
382 while (pos < textLen) {
387 nextPos = pos + Math.min(limit, textLen - pos);
390 nextPos = GsmAlphabet.findGsmSeptetLimitIndex(newMsgBody, pos, limit,
394 nextPos = SmsMessageBase.findNextUnicodePosition(pos, limit, newMsgBody);
396 if ((nextPos <= pos) || (nextPos > textLen)) {
397 Rlog.e(LOG_TAG, "fragmentText failed (" + pos + " >= " + nextPos + " or " +
401 result.add(newMsgBody.substring(pos, nextPos));
402 pos
[all...]
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
H A DSettingsBackupAgent.java953 int pos = 0;
966 while (pos < bytes) {
967 int length = readInt(settings, pos);
968 pos += INTEGER_BYTE_COUNT;
969 String dataKey = length > 0 ? new String(settings, pos, length) : null;
970 pos += length;
971 length = readInt(settings, pos);
972 pos += INTEGER_BYTE_COUNT;
973 String dataValue = length > 0 ? new String(settings, pos, length) : null;
974 pos
1341 writeInt(byte[] out, int pos, int value) argument
1349 writeBytes(byte[] out, int pos, byte[] value) argument
1354 readInt(byte[] in, int pos) argument
[all...]
/frameworks/base/tools/aapt/
H A DStringPool.cpp148 ssize_t pos = vidx >= 0 ? mValues.valueAt(vidx) : -1; local
149 ssize_t eidx = pos >= 0 ? mEntryArray.itemAt(pos) : -1;
196 const bool styled = (pos >= 0 && (size_t)pos < mEntryStyleArray.size()) ?
197 mEntryStyleArray[pos].spans.size() : 0;
199 pos = mEntryArray.add(eidx);
201 vidx = mValues.add(value, pos);
204 ent.indices.add(pos);
208 printf("Adding string %s to pool: pos
[all...]
/frameworks/av/media/libstagefright/
H A DAACExtractor.cpp337 off64_t pos = 0; local
341 if (source->readAt(pos, id3header, sizeof(id3header))
360 pos += len;
363 (long long)pos, (long long)pos);
368 if (source->readAt(pos, &header, 2) != 2) {
378 (*meta)->setInt64("offset", pos);
/frameworks/base/tools/velocityplot/
H A Dvelocityplot.py48 self.pos = 0
52 index = self.buffer.find('\n', self.pos)
54 result = self.buffer[self.pos:index]
55 self.pos = index + 1
58 self.buffer = self.buffer[self.pos:]
59 self.pos = 0
72 self.pos = 0
/frameworks/base/tools/layoutlib/create/src/com/android/tools/layoutlib/create/
H A DAsmGenerator.java192 int pos = entry.indexOf('#');
193 if (pos <= 0 || pos >= entry.length() - 1) {
196 String className = binaryToInternalClassName(entry.substring(0, pos));
197 String methodOrFieldName = entry.substring(pos + 1);
421 int pos = className.indexOf('$');
422 if (pos > 0) {
424 String base = className.substring(0, pos);
427 return newName + className.substring(pos);
/frameworks/base/test-runner/src/junit/runner/
H A DTestCaseClassLoader.java175 int pos= 0;
176 while (pos < size) {
177 int n= stream.read(data, pos, data.length - pos);
178 pos += n;
/frameworks/base/tools/aapt2/compile/
H A DPseudolocalizer.cpp85 size_t lastpos, pos; local
89 for (lastpos = pos = 0; pos < length; pos++) {
90 char16_t c = str[pos];
106 if (mLastDepth != depth || pos == length - 1) {
108 size_t nextpos = pos;
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DLinearGradient_Delegate.java212 float pos;
214 pos = (y - mY0) / mDy;
216 pos = (x - mX0) / mDx;
221 pos = (_x - mX0) / mDx;
224 return getGradientColor(pos);
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DStreamingTextView.java168 int pos = getStreamPosition();
170 int animLen = totalLen - pos;
177 mStreamingAnimation.setIntValues(pos, totalLen);
238 public DottySpan(int seed, int pos) { argument
240 mPosition = pos;
/frameworks/base/libs/hwui/tests/macrobench/
H A Dmain.cpp240 auto pos = TestScene::testMap().find(test); local
241 if (pos == TestScene::testMap().end()) {
245 gRunTests.push_back(pos->second);
/frameworks/compile/mclinker/include/mcld/
H A DInputTree.h288 bool isGroup(const InputTree::iterator& pos);
289 bool isGroup(const InputTree::const_iterator& pos);
290 bool isGroup(const InputTree::dfs_iterator& pos);
291 bool isGroup(const InputTree::const_dfs_iterator& pos);
292 bool isGroup(const InputTree::bfs_iterator& pos);
293 bool isGroup(const InputTree::const_bfs_iterator& pos);
/frameworks/opt/bluetooth/src/android/bluetooth/client/map/
H A DBluetoothMapBmessageParser.java109 return new ParseException("Expected: " + sb.toString(), mParser.pos());
216 throw new ParseException("bEnvelope is nested more than 3 times", mParser.pos());
292 throw new ParseException("Invalid LENGTH value", mParser.pos());
317 int restartPos = mParser.pos() + offset;
357 throw new ParseException("Invalid LENGTH value", mParser.pos());
454 mParser.pos());

Completed in 1167 milliseconds

1234567891011>>