/frameworks/base/core/java/com/android/internal/net/ |
H A D | DNParser.java | 50 private int pos, beg, end; field in class:DNParser 79 for (; pos < length && chars[pos] == ' '; pos++) { 81 if (pos == length) { 86 beg = pos; 89 pos++; 90 for (; pos < length && chars[pos] != '=' && chars[pos] ! [all...] |
/frameworks/base/libs/utils/ |
H A D | Debug.cpp | 107 char* pos = out; local 146 if( fullContext ) *pos++ = '\''; 147 pos = appendcharornum(c[0], pos); 148 pos = appendcharornum(c[1], pos); 149 pos = appendcharornum(c[2], pos); 150 pos = appendcharornum(c[3], pos); 185 unsigned char *pos = (unsigned char *)buf; local [all...] |
/frameworks/base/libs/ui/ |
H A D | GraphicLog.cpp | 32 void writeInt32(uint8_t* base, size_t& pos, int32_t value) { argument 38 base[pos] = EVENT_TYPE_INT; 39 memcpy(&base[pos+1], &v, sizeof(int32_t)); 40 pos += 1+sizeof(int32_t); 44 void writeInt64(uint8_t* base, size_t& pos, int64_t value) { argument 50 base[pos] = EVENT_TYPE_LONG; 51 memcpy(&base[pos+1], &v, sizeof(int64_t)); 52 pos += 1+sizeof(int64_t); 58 size_t pos = 0; local 59 scratch[pos 69 size_t pos = 0; local [all...] |
/frameworks/base/media/libstagefright/codecs/amrwb/src/ |
H A D | dec_acelp_4p_in_64.cpp | 123 void add_pulses(int16 pos[], int16 nb_pulse, int16 track, int16 code[]); 160 int16 k, pos[6]; local 173 dec_1p_N1(L_index, 4, 0, pos); 174 add_pulses(pos, 1, k, code); 182 dec_2p_2N1(L_index, 4, 0, pos); 183 add_pulses(pos, 2, k, code); 190 dec_3p_3N1(L_index, 4, 0, pos); 191 add_pulses(pos, 3, k, code); 196 dec_2p_2N1(L_index, 4, 0, pos); 197 add_pulses(pos, 246 add_pulses(int16 pos[], int16 nb_pulse, int16 track, int16 code[]) argument [all...] |
H A D | q_pulse.h | 66 void dec_1p_N1(int32 index, int16 N, int16 offset, int16 pos[]); 67 void dec_2p_2N1(int32 index, int16 N, int16 offset, int16 pos[]); 68 void dec_3p_3N1(int32 index, int16 N, int16 offset, int16 pos[]); 69 void dec_4p_4N1(int32 index, int16 N, int16 offset, int16 pos[]); 70 void dec_4p_4N(int32 index, int16 N, int16 offset, int16 pos[]); 71 void dec_5p_5N(int32 index, int16 N, int16 offset, int16 pos[]); 72 void dec_6p_6N_2(int32 index, int16 N, int16 offset, int16 pos[]);
|
H A D | dec_alg_codebook.cpp | 87 #define NB_POS 16 /* pos in track, mask for sign bit */ 118 void dec_1p_N1(int32 index, int16 N, int16 offset, int16 pos[]) argument 135 pos[0] = pos1; 145 void dec_2p_2N1(int32 index, int16 N, int16 offset, int16 pos[]) argument 180 pos[0] = pos1; 181 pos[1] = pos2; 192 void dec_3p_3N1(int32 index, int16 N, int16 offset, int16 pos[]) argument 213 dec_2p_2N1(idx, (int16)(N - 1), j, pos); 219 dec_1p_N1(idx, N, offset, pos + 2); 229 void dec_4p_4N1(int32 index, int16 N, int16 offset, int16 pos[]) argument 265 dec_4p_4N(int32 index, int16 N, int16 offset, int16 pos[]) argument 316 dec_5p_5N(int32 index, int16 N, int16 offset, int16 pos[]) argument 350 dec_6p_6N_2(int32 index, int16 N, int16 offset, int16 pos[]) argument [all...] |
/frameworks/base/media/libstagefright/codecs/amrnb/dec/src/ |
H A D | d2_11pf.cpp | 160 Word16 pos[NB_PULSE]; local 170 pos[0] = i * 5 + j * 2 + 1; 185 pos[1] = i * 5 + 4; 189 pos[1] = i * 5 + j; 210 * cod[pos[j]] = 8191; 214 * cod[pos[j]] = -8192; 218 cod[pos[j]] = i * 16383 - 8192;
|
H A D | d4_17pf.cpp | 46 the calculation of pos[2] incorrectly. The correct formula is pos2 =i*5+2, 185 Word16 pos[NB_PULSE]; local 203 pos[0] = i * 5; /* pos0 =i*5 */ 212 pos[1] = i * 5 + 1; /* pos1 =i*5+1 */ 222 pos[2] = i * 5 + 2; /* pos2 =i*5+2 */ 238 pos[3] = i * 5 + 3 + j; /* pos3 =i*5+3+j */ 257 * cod[pos[j]] = 8191; 261 * cod[pos[j]] = -8192; 265 cod[pos[j]] = i * 16383 - 8192;
|
H A D | d3_14pf.cpp | 165 Word16 pos[NB_PULSE]; local 171 pos[0] = i * 5; 185 pos[1] = i * 5 + j * 2 + 1; 199 pos[2] = i * 5 + j * 2 + 2; 218 * cod[pos[j]] = 8191; 222 * cod[pos[j]] = -8192; 226 cod[pos[j]] = i * 16383 - 8192;
|
H A D | d2_9pf.cpp | 187 Word16 pos[NB_PULSE]; local 207 pos[0] = i * 5 + startPos[k++]; 215 pos[1] = i * 5 + startPos[k]; 234 * cod[pos[j]] = 8191; 238 * cod[pos[j]] = -8192; 242 cod[pos[j]] = i * 16383 - 8192;
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | Gradient_Delegate.java | 123 * <var>pos</var> can be anything, even < 0 or > > 1, as the gradient 126 protected int getGradientColor(float pos) { argument 127 if (pos < 0.f) { 131 pos = 0.f; 136 pos = pos - (float)Math.floor(pos); 141 pos = Math.abs(pos); 144 int intPart = (int)Math.floor(pos); [all...] |
/frameworks/base/core/java/android/util/ |
H A D | TimeUtils.java | 158 static private int printField(char[] formatStr, int amt, char suffix, int pos, argument 161 final int startPos = pos; 164 formatStr[pos] = (char)(dig + '0'); 165 pos++; 168 if ((always && zeropad >= 2) || amt > 9 || startPos != pos) { 170 formatStr[pos] = (char)(dig + '0'); 171 pos++; 174 formatStr[pos] = (char)(amt + '0'); 175 pos++; 176 formatStr[pos] [all...] |
/frameworks/base/core/java/android/database/ |
H A D | CrossProcessCursor.java | 26 * copies cursor data into the window start at pos 28 void fillWindow(int pos, CursorWindow winow); argument
|
/frameworks/base/media/libstagefright/codecs/amrwbenc/inc/ |
H A D | q_pulse.h | 31 Word16 pos, /* (i) position of the pulse */
53 Word16 pos[], /* (i) position of the pulse 1..4 */
57 Word16 pos[], /* (i) position of the pulse 1..5 */
61 Word16 pos[], /* (i) position of the pulse 1..6 */
|
/frameworks/base/media/libstagefright/matroska/ |
H A D | mkvparser.cpp | 31 long long mkvparser::ReadUInt(IMkvReader* pReader, long long pos, long& len)
argument 34 assert(pos >= 0);
40 assert(pos < available);
41 assert((available - pos) >= 1); //assume here max u-int len is 8
45 hr = pReader->Read(pos, 1, &b);
93 assert((available - pos) >= len);
96 ++pos;
99 hr = pReader->Read(pos, 1, &b);
109 ++pos;
118 long long pos,
116 GetUIntLength( IMkvReader* pReader, long long pos, long& len) argument 158 SyncReadUInt( IMkvReader* pReader, long long pos, long long stop, long& len) argument 217 UnserializeUInt( IMkvReader* pReader, long long pos, long long size) argument 247 Unserialize4Float( IMkvReader* pReader, long long pos) argument 281 Unserialize8Double( IMkvReader* pReader, long long pos) argument 307 Unserialize1SInt( IMkvReader* pReader, long long pos) argument 329 Unserialize2SInt( IMkvReader* pReader, long long pos) argument 363 Match( IMkvReader* pReader, long long& pos, unsigned long id_, long long& val) argument 409 Match( IMkvReader* pReader, long long& pos, unsigned long id_, char*& val) argument 469 Match( IMkvReader* pReader, long long& pos, unsigned long id_, unsigned char*& buf, size_t& buflen) argument 521 Match( IMkvReader* pReader, long long& pos, unsigned long id_, double& val) argument 571 Match( IMkvReader* pReader, long long& pos, unsigned long id_, short& val) argument 629 Parse( IMkvReader* pReader, long long& pos) argument 818 CreateInstance( IMkvReader* pReader, long long pos, Segment*& pSegment) argument 933 long long pos = m_pos; local 1193 long long pos = m_pos; local [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | AlphabetIndexer.java | 167 int pos; 173 if (Integer.MIN_VALUE != (pos = alphaMap.get(key, Integer.MIN_VALUE))) { 177 if (pos < 0) { 178 pos = -pos; 179 end = pos; 182 return pos; 198 pos = (end + start) / 2; 200 while (pos < end) { 201 // Get letter at pos [all...] |
H A D | ExpandableListConnector.java | 96 * Translates a flat list position to either a) group pos if the specified 97 * flat list position corresponds to a group, or b) child pos if it 99 * groups list to find the flat list pos if it is an exp group, otherwise 100 * finds where the flat list pos fits in between the exp groups. 121 * either), so flPos must be a group and its group pos will be the 172 * specified flat list pos to get the child's position within 216 * one, and then adds it to the prior group's group pos 232 * Subtracts this group's flat list pos from the group after's flat 235 * pos to get this group's pos 258 getFlattenedPos(final ExpandableListPosition pos) argument [all...] |
/frameworks/base/tools/localize/ |
H A D | res_check.cpp | 9 static int check_value(const SourcePos& pos, const XMLNode* value); 10 static int scan_for_unguarded_format(const SourcePos& pos, const XMLNode* value, int depth = 0); 43 err |= check_value(it->pos, value); 63 check_value(const SourcePos& pos, const XMLNode* value) argument 66 err |= scan_for_unguarded_format(pos, value); 81 scan_for_unguarded_format(const SourcePos& pos, const string& string) argument 85 pos.Error("unguarded percent: '%s'\n", string.c_str()); 91 scan_for_unguarded_format(const SourcePos& pos, const XMLNode* value, int depth) argument 98 err |= scan_for_unguarded_format(pos, children[i], depth+1); 103 return scan_for_unguarded_format(pos, valu [all...] |
H A D | ValuesFile.cpp | 31 virtual int OnStartElement(const SourcePos& pos, const string& ns, const string& name, 33 virtual int OnText(const SourcePos& pos, const string& text); 34 virtual int OnComment(const SourcePos& pos, const string& text); 56 ArrayHandler::OnStartElement(const SourcePos& pos, const string& ns, const string& name, argument 60 XMLNode* node = XMLNode::NewElement(pos, ns, name, attrs, XMLNode::EXACT); 61 m_vf->AddString(StringResource(pos, pos.file, m_vf->GetConfiguration(), 69 pos.Error("invalid <%s> element inside <array>\n", name.c_str()); 75 ArrayHandler::OnText(const SourcePos& pos, const string& text) argument 81 ArrayHandler::OnComment(const SourcePos& pos, cons argument 113 OnStartElement(const SourcePos& pos, const string& ns, const string& name, const vector<XMLAttribute>& attrs, XMLHandler** next) argument 133 OnText(const SourcePos& pos, const string& text) argument 139 OnComment(const SourcePos& pos, const string& text) argument [all...] |
/frameworks/base/core/java/com/android/internal/util/ |
H A D | FastXmlSerializer.java | 65 int pos = mPos; 66 if (pos >= (BUFFER_LEN-1)) { 68 pos = mPos; 70 mText[pos] = c; 71 mPos = pos+1; 84 int pos = mPos; 85 if ((pos+length) > BUFFER_LEN) { 87 pos = mPos; 89 str.getChars(i, i+length, mText, pos); 90 mPos = pos [all...] |
/frameworks/base/media/libstagefright/codecs/amrnb/enc/src/ |
H A D | set_sign.cpp | 178 Word16 pos = 0; //initialization only needed to keep gcc silent 211 pos = j; 215 dn2[pos] = -1; 253 Word16 pos = 0; /* initialization only needed to keep gcc silent */ local 288 pos = j; 292 dn2[pos] = -1; 369 Word16 pos = 0; // initialization only needed to keep gcc silent 428 pos = j; 432 pos_max[i] = pos; 447 pos 504 Word16 pos = 0; /* initialization only needed to keep gcc silent */ local [all...] |
/frameworks/base/graphics/java/android/graphics/ |
H A D | PathMeasure.java | 81 * @param pos If not null, eturns the sampled position (x==[0], y==[1]) 85 public boolean getPosTan(float distance, float pos[], float tan[]) { argument 86 if (pos != null && pos.length < 2 || 90 return native_getPosTan(native_instance, distance, pos, tan); 143 private static native boolean native_getPosTan(int native_instance, float distance, float pos[], float tan[]); argument
|
/frameworks/base/libs/rs/java/Film/res/raw/ |
H A D | filmstrip.c | 70 float pos = focusPos + imgId + 0.4f; local 71 int offset = (int)floorf(pos * 2.f); 72 pos = pos - 0.75f; 87 matrixLoadTranslate(mat1, -pos - loadF(5, triangleOffsetsCount / 2), 0, 0);
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
H A D | SettingsBackupAgent.java | 246 int pos = 0; 247 while (pos < settings.length) { 248 int length = readInt(settings, pos); 249 pos += 4; 250 String settingName = length > 0? new String(settings, pos, length) : null; 251 pos += length; 252 length = readInt(settings, pos); 253 pos += 4; 254 String settingValue = length > 0? new String(settings, pos, length) : null; 255 pos 424 writeInt(byte[] out, int pos, int value) argument 432 writeBytes(byte[] out, int pos, byte[] value) argument 437 readInt(byte[] in, int pos) argument [all...] |
/frameworks/base/core/java/com/android/internal/os/ |
H A D | AtomicFile.java | 133 int pos = 0; 137 int amt = stream.read(data, pos, data.length-pos); 138 //Log.i("foo", "Read " + amt + " bytes at " + pos 141 //Log.i("foo", "**** FINISHED READING: pos=" + pos 145 pos += amt; 147 if (avail > data.length-pos) { 148 byte[] newData = new byte[pos+avail]; 149 System.arraycopy(data, 0, newData, 0, pos); [all...] |