/frameworks/base/graphics/java/android/graphics/ |
H A D | SweepGradient.java | 53 if (colors.length < 2) { 56 if (positions != null && colors.length != positions.length) { 58 "color and position arrays must be of equal length");
|
/frameworks/base/keystore/tests/src/android/security/ |
H A D | SystemKeyStoreTest.java | 70 assertEquals(newKey.length, recKey.length); 71 for (int i = 0; i < newKey.length; i++) {
|
/frameworks/base/packages/WAPPushManager/tests/src/com/android/smspush/unitTests/ |
H A D | DataVerify.java | 55 if (arr1.length != arr2.length) { 59 for (i = 0; i < arr1.length; i++) {
|
/frameworks/base/tests/AccessoryDisplay/common/src/com/android/accessorydisplay/common/ |
H A D | Transport.java | 292 int length = Protocol.HEADER_SIZE; 297 buffer = mInputBufferPool.acquire(length); 299 buffer = mInputBufferPool.grow(buffer, length); 322 length += contentSize; 324 if (position < length) { 330 int next = length; 333 length = Protocol.HEADER_SIZE; 335 if (remaining < length) { 344 length += contentSize; 345 if (remaining < length) { [all...] |
/frameworks/base/tests/CoreTests/android/core/ |
H A D | Sha1Test.java | 47 int numTests = mTestData.length; 57 StringBuffer hex = new StringBuffer(bytes.length * 2); 59 for (int i = 0; i < bytes.length; i++) {
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | GlyphCacheActivity.java | 68 private String createString(int length) { argument 70 for (int i = 0; i < length; i++) { 71 sb.append(mCharacterSet.charAt((int)(Math.random() * mCharacterSet.length())));
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ |
H A D | DataCallResponse.java | 94 if (addresses.length > 0) sb.deleteCharAt(sb.length()-1); 100 if (dnses.length > 0) sb.deleteCharAt(sb.length()-1); 106 if (gateways.length > 0) sb.deleteCharAt(sb.length()-1); 112 if (pcscf.length > 0) sb.deleteCharAt(sb.length()-1); 136 if (addresses != null && addresses.length > 0) { 144 if (ap.length [all...] |
/frameworks/volley/tests/src/com/android/volley/toolbox/ |
H A D | PoolingByteArrayOutputStreamTest.java | 57 for (int i = 0; i < data.length; i++) { 68 for (int i = 0; i < data.length; i++) { 72 for (int i = 0; i < data.length; i++) {
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/ |
H A D | SimulatedGsmCallState.java | 57 if (number.length() > 0 && number.charAt(0) == '+') { 184 for (int i = 0 ; i < mCalls.length ; i++) { 221 for (int i = 0 ; i < mCalls.length ; i++) { 247 for (int i = 0 ; i < mCalls.length ; i++) { 284 for (int i = 0 ; i < mCalls.length ; i++) { 296 for (int i = 0 ; i < mCalls.length ; i++) { 321 for (int i = 0 ; i < mCalls.length ; i++) { 343 for (int i = 0 ; i < mCalls.length ; i++) { 360 for (int i = 0 ; i < mCalls.length ; i++) { 379 for (int i = 0 ; i < mCalls.length ; [all...] |
/frameworks/base/obex/javax/obex/ |
H A D | HeaderSet.java | 72 * Represents the OBEX Length header. This is the length of the object in 201 private byte[] mWho; // length prefixed byte sequence 203 private byte[] mAppParam; // byte sequence of the form tag length value 243 * have length of 5 bytes. It should be 3 bytes with only header id and 244 * length field. 342 mTarget = new byte[((byte[])headerValue).length]; 343 System.arraycopy(headerValue, 0, mTarget, 0, mTarget.length); 354 mHttpHeader = new byte[((byte[])headerValue).length]; 355 System.arraycopy(headerValue, 0, mHttpHeader, 0, mHttpHeader.length); 366 mWho = new byte[((byte[])headerValue).length]; [all...] |
/frameworks/base/core/java/android/text/method/ |
H A D | WordIterator.java | 35 // Size of the window for the word iterator, should be greater than the longest word's length 60 final int windowEnd = Math.min(charSequence.length(), end + WINDOW_WIDTH); 159 if (shiftedOffset >= 1 && shiftedOffset <= mString.length()) { 167 if (shiftedOffset >= 0 && shiftedOffset < mString.length()) { 175 if (shiftedOffset < 0 || shiftedOffset > mString.length()) { 177 ". Valid range is [" + mOffsetShift + ", " + (mString.length() + mOffsetShift) +
|
/frameworks/base/core/java/android/transition/ |
H A D | PatternPathMotion.java | 106 float length = pathMeasure.getLength(); 108 pathMeasure.getPosTan(length, pos, null); 135 float length = distance(dx, dy); 138 mTempMatrix.setScale(length, length);
|
/frameworks/base/core/java/com/android/internal/util/ |
H A D | FastXmlSerializer.java | 80 private void append(String str, int i, final int length) throws IOException { argument 81 if (length > BUFFER_LEN) { 82 final int end = i + length; 91 if ((pos+length) > BUFFER_LEN) { 95 str.getChars(i, i+length, mText, pos); 96 mPos = pos + length; 99 private void append(char[] buf, int i, final int length) throws IOException { argument 100 if (length > BUFFER_LEN) { 101 final int end = i + length; 110 if ((pos+length) > BUFFER_LE [all...] |
/frameworks/base/core/tests/coretests/src/android/database/ |
H A D | DatabaseLocaleTest.java | 75 assertEquals(STRINGS.length, result.length); 120 assertEquals(expectedString.length(), actualString.length()); 121 for (int i = 0; i < expectedString.length(); i++) {
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
H A D | SettingsBackupAgent.java | 229 for (int i = 0; i < typeStrings.length; i++) { 404 if (restoredSupplicantData.length <= 0) return; 415 if (restoredWifiConfigFile.length <= 0) return; 442 restoredSupplicantData, restoredSupplicantData.length); 450 restoredWifiConfigFile, restoredWifiConfigFile.length); 536 if (DEBUG_BACKUP) Log.d(TAG, systemSettingsData.length + " bytes of settings data"); 537 out.writeInt(systemSettingsData.length); 539 if (DEBUG_BACKUP) Log.d(TAG, secureSettingsData.length + " bytes of secure settings data"); 540 out.writeInt(secureSettingsData.length); 542 if (DEBUG_BACKUP) Log.d(TAG, globalSettingsData.length [all...] |
/frameworks/base/rs/java/android/renderscript/ |
H A D | ScriptC.java | 103 int bytesLeft = pgm.length - pgmLength; 105 byte[] buf2 = new byte[pgm.length * 2]; 106 System.arraycopy(pgm, 0, buf2, 0, pgm.length); 108 bytesLeft = pgm.length - pgmLength; 143 return rs.nScriptCCreate(resName, mCachePath, bitcode, bitcode.length);
|
/frameworks/base/telephony/java/android/telephony/ |
H A D | PhoneNumberFormattingTextWatcher.java | 101 mStopFormatting = !(s.length() == 0); 112 s.replace(0, s.length(), formatted, 0, formatted.length()); 120 PhoneNumberUtils.ttsSpanAsPhoneNumber(s, 0, s.length()); 135 int len = s.length();
|
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/ |
H A D | TimeZoneData.java | 124 Log.e(TAG, "Available time zones: " + tzIds.length); 181 mTimeZonesByOffsets = new SparseArray<ArrayList<Integer>>(mHasTimeZonesInHrOffset.length); 268 int length = ids.length; 269 if (ids.length != labels.length) { 270 Log.e(TAG, "timezone_rename_ids len=" + ids.length + " timezone_rename_labels len=" 271 + labels.length); 272 length = Math.min(ids.length, label [all...] |
/frameworks/base/core/java/android/app/ |
H A D | Application.java | 107 for (int i=0; i<callbacks.length; i++) { 116 for (int i=0; i<callbacks.length; i++) { 125 for (int i=0; i<callbacks.length; i++) { 188 for (int i=0; i<callbacks.length; i++) { 198 for (int i=0; i<callbacks.length; i++) { 207 for (int i=0; i<callbacks.length; i++) { 216 for (int i=0; i<callbacks.length; i++) { 225 for (int i=0; i<callbacks.length; i++) { 234 for (int i=0; i<callbacks.length; i++) { 244 for (int i=0; i<callbacks.length; [all...] |
/frameworks/base/core/java/android/preference/ |
H A D | MultiCheckPreference.java | 91 mSetValues = new boolean[entries.length]; 92 mOrigValues = new boolean[entries.length]; 136 mEntryValues = new String[values.length]; 137 for (int i=0; i<values.length; i++) { 175 values.length < mSetValues.length ? values.length : mSetValues.length); 231 for (int i = mEntryValues.length - 1; i >= 0; i--) { 249 mOrigValues = Arrays.copyOf(mSetValues, mSetValues.length); [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | SpellChecker.java | 110 mSpellCheckSpans = new SpellCheckSpan[mIds.length]; 172 final int length = mSpellParsers.length; 173 for (int i = 0; i < length; i++) { 226 end = mTextView.getText().length(); 238 final int length = mSpellParsers.length; 239 for (int i = 0; i < length; i++) { 251 SpellParser[] newSpellParsers = new SpellParser[length + 1]; 252 System.arraycopy(mSpellParsers, 0, newSpellParsers, 0, length); 323 onGetSuggestionsInternal( SuggestionsInfo suggestionsInfo, int offset, int length) argument 453 createMisspelledSuggestionSpan(Editable editable, SuggestionsInfo suggestionsInfo, SpellCheckSpan spellCheckSpan, int offset, int length) argument [all...] |
/frameworks/base/core/jni/ |
H A D | android_hardware_SerialPort.cpp | 169 android_hardware_SerialPort_read_array(JNIEnv *env, jobject thiz, jbyteArray buffer, jint length) argument 172 jbyte* buf = (jbyte *)malloc(length); 178 int ret = read(fd, buf, length); 191 android_hardware_SerialPort_read_direct(JNIEnv *env, jobject thiz, jobject buffer, jint length) argument 201 int ret = read(fd, buf, length); 208 android_hardware_SerialPort_write_array(JNIEnv *env, jobject thiz, jbyteArray buffer, jint length) argument 211 jbyte* buf = (jbyte *)malloc(length); 216 env->GetByteArrayRegion(buffer, 0, length, buf); 218 jint ret = write(fd, buf, length); 225 android_hardware_SerialPort_write_direct(JNIEnv *env, jobject thiz, jobject buffer, jint length) argument [all...] |
/frameworks/base/packages/Keyguard/src/com/android/keyguard/ |
H A D | AppearAnimationUtils.java | 82 for (int row = 0; row < properties.delays.length; row++) { 100 for (int row = 0; row < properties.delays.length; row++) { 103 ? (float) (Math.pow((properties.delays.length - row), 2) 104 / properties.delays.length * mStartTranslation) 106 for (int col = 0; col < columns.length; col++) { 123 mProperties.delays = new long[items.length][]; 124 for (int row = 0; row < items.length; row++) { 141 mProperties.delays = new long[items.length][]; 142 for (int row = 0; row < items.length; row++) { 144 mProperties.delays[row] = new long[columns.length]; [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/recent/ |
H A D | FadedEdgeDrawHelper.java | 114 int length = (int) fadeHeight; 116 // clip the fade length if top and bottom fades overlap 118 if (mIsVertical && (top + length > bottom - length)) { 119 length = (bottom - top) / 2; 123 if (!mIsVertical && (left + length > right - length)) { 124 length = (right - left) / 2; 146 canvas.drawRect(left, top, right, top + length, mFadePaint); 162 canvas.drawRect(left, bottom - length, righ [all...] |
/frameworks/base/wifi/java/android/net/wifi/p2p/nsd/ |
H A D | WifiP2pServiceResponse.java | 201 if (args.length != 4) { 223 // The length equals to 3 plus the number of octets in the vendor 225 int length = (dis.readUnsignedByte() + 230 if (length < 0) { 233 if (length == 0) { 240 if (length > MAX_BUF_SIZE) { 241 dis.skip(length); 244 byte[] data = new byte[length]; 279 int sz = hex.length()/2; 280 byte[] b = new byte[hex.length()/ [all...] |