Searched refs:length (Results 201 - 225 of 1461) sorted by relevance

1234567891011>>

/frameworks/opt/vcard/java/com/android/vcard/
H A DVCardParserImpl_V30.java92 } else if (line.length() == 0) {
164 if (strArray.length == 2) {
225 final int length = paramValue.length();
226 for (int i = 0; i < length; i++) {
236 if (builder.length() > 0) {
272 if (builder.length() == 0) {
330 if (line.length() == 0) {
356 final int length = text.length();
[all...]
/frameworks/support/volley/tests/src/com/android/volley/toolbox/
H A DPoolingByteArrayOutputStreamTest.java57 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/testing/uiautomator/cmds/uiautomator/src/com/android/commands/uiautomator/
H A DLauncher.java75 if (args.length >= 1) {
79 if (args.length > 1) {
81 args2 = Arrays.copyOfRange(args, 1, args.length);
/frameworks/base/core/tests/coretests/src/android/text/util/
H A DLinkifyTest.java37 assertTrue(tv.getUrls().length == 0);
49 assertTrue(tv.getUrls().length == 2);
62 assertTrue(tv.getUrls().length == 2);
/frameworks/base/packages/WAPPushManager/tests/src/com/android/smspush/unitTests/
H A DDataVerify.java55 if (arr1.length != arr2.length) {
59 for (i = 0; i < arr1.length; i++) {
H A DWapPushTest.java64 (byte) 0x04, // sender address length?
866 Log.d(LOG_TAG, "random arr length:" + arr.length);
872 int len = arr.length;
950 for (i = 0; i < str.length(); i++) {
1050 for (i = 0; i < str.length(); i++) {
1073 Log.d(LOG_TAG, "random arr length:" + arr.length);
1079 int len = arr.length;
1155 for (i = 0; i < str.length();
[all...]
/frameworks/base/test-runner/src/android/test/
H A DMoreAsserts.java86 if (expected.length != actual.length) {
87 failWrongLength(message, expected.length, actual.length);
89 for (int i = 0; i < expected.length; i++) {
112 if (expected.length != actual.length) {
113 failWrongLength(message, expected.length, actual.length);
115 for (int i = 0; i < expected.length;
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/
H A DSimulatedGsmCallState.java57 if (number.length() > 0 && number.charAt(0) == '+') {
183 for (int i = 0 ; i < calls.length ; i++) {
220 for (int i = 0 ; i < calls.length ; i++) {
246 for (int i = 0 ; i < calls.length ; i++) {
283 for (int i = 0 ; i < calls.length ; i++) {
295 for (int i = 0 ; i < calls.length ; i++) {
320 for (int i = 0 ; i < calls.length ; i++) {
342 for (int i = 0 ; i < calls.length ; i++) {
359 for (int i = 0 ; i < calls.length ; i++) {
378 for (int i = 0 ; i < calls.length ;
[all...]
/frameworks/base/obex/javax/obex/
H A DHeaderSet.java71 * Represents the OBEX Length header. This is the length of the object in
198 private byte[] mWho; // length prefixed byte sequence
200 private byte[] mAppParam; // byte sequence of the form tag length value
319 mTarget = new byte[((byte[])headerValue).length];
320 System.arraycopy(headerValue, 0, mTarget, 0, mTarget.length);
331 mHttpHeader = new byte[((byte[])headerValue).length];
332 System.arraycopy(headerValue, 0, mHttpHeader, 0, mHttpHeader.length);
343 mWho = new byte[((byte[])headerValue).length];
344 System.arraycopy(headerValue, 0, mWho, 0, mWho.length);
355 mObjectClass = new byte[((byte[])headerValue).length];
[all...]
H A DClientOperation.java107 for (int i = 0; i < headerList.length; i++) {
113 mRequestHeader.mAuthChall = new byte[(header).mAuthChall.length];
115 (header).mAuthChall.length);
119 mRequestHeader.mAuthResp = new byte[(header).mAuthResp.length];
121 (header).mAuthResp.length);
203 * Returns the length of the content which is being provided. E.g. if the
204 * connection is via HTTP, then the value of the content-length header field
206 * @return the content length of the resource that this connection's URL
207 * references, or -1 if the content length is not known
287 return headerArray.length;
[all...]
/frameworks/base/core/java/android/text/method/
H A DWordIterator.java35 // 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) +
H A DTouch.java92 ds = buffer.getSpans(0, buffer.length(), DragState.class);
94 for (int i = 0; i < ds.length; i++) {
104 ds = buffer.getSpans(0, buffer.length(), DragState.class);
106 for (int i = 0; i < ds.length; i++) {
110 if (ds.length > 0 && ds[0].mUsed) {
117 ds = buffer.getSpans(0, buffer.length(), DragState.class);
119 if (ds.length > 0) {
182 DragState[] ds = buffer.getSpans(0, buffer.length(), DragState.class);
183 return ds.length > 0 ? ds[0].mScrollX : -1;
191 DragState[] ds = buffer.getSpans(0, buffer.length(), DragStat
[all...]
H A DReplacementTransformationMethod.java65 int n = original.length;
119 public int length() { method in class:ReplacementTransformationMethod.ReplacementCharSequence
120 return mSource.length();
126 int n = mOriginal.length;
144 char[] c = new char[length()];
146 getChars(0, length(), c, 0);
153 int n = mOriginal.length;
/frameworks/base/core/tests/coretests/src/android/database/
H A DDatabaseLocaleTest.java75 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 DSettingsBackupAgent.java307 if (restoredSupplicantData.length <= 0) return;
318 if (restoredWifiConfigFile.length <= 0) return;
336 restoredSupplicantData, restoredSupplicantData.length);
344 restoredWifiConfigFile, restoredWifiConfigFile.length);
422 if (DEBUG_BACKUP) Log.d(TAG, systemSettingsData.length + " bytes of settings data");
423 out.writeInt(systemSettingsData.length);
425 if (DEBUG_BACKUP) Log.d(TAG, secureSettingsData.length + " bytes of secure settings data");
426 out.writeInt(secureSettingsData.length);
428 if (DEBUG_BACKUP) Log.d(TAG, globalSettingsData.length + " bytes of global settings data");
429 out.writeInt(globalSettingsData.length);
[all...]
/frameworks/base/core/java/android/preference/
H A DMultiCheckPreference.java82 mSetValues = new boolean[entries.length];
83 mOrigValues = new boolean[entries.length];
127 mEntryValues = new String[values.length];
128 for (int i=0; i<values.length; i++) {
166 values.length < mSetValues.length ? values.length : mSetValues.length);
222 for (int i = mEntryValues.length - 1; i >= 0; i--) {
240 mOrigValues = Arrays.copyOf(mSetValues, mSetValues.length);
[all...]
/frameworks/base/core/jni/
H A Dandroid_hardware_SerialPort.cpp169 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/wifi/java/android/net/wifi/p2p/nsd/
H A DWifiP2pServiceResponse.java201 if (args.length != 4) {
223 // The length equals to 3 plus the number of octets in the vendor
225 int length = ((dis.readByte() & 0xff) +
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...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/recent/
H A DRecentsScrollViewPerformanceHelper.java109 int length = (int) fadeHeight;
111 // clip the fade length if top and bottom fades overlap
113 if (mIsVertical && (top + length > bottom - length)) {
114 length = (bottom - top) / 2;
118 if (!mIsVertical && (left + length > right - length)) {
119 length = (right - left) / 2;
140 canvas.drawRect(left, top, right, top + length, p);
148 canvas.drawRect(left, bottom - length, righ
[all...]
/frameworks/av/media/mtp/
H A DMtpPacket.cpp55 void MtpPacket::allocate(int length) { argument
56 if (length > mBufferSize) {
57 int newLength = length + mAllocationIncrement;
88 int length = src.mPacketSize; local
89 allocate(length);
90 mPacketSize = length;
91 memcpy(mBuffer, src.mBuffer, length);
/frameworks/base/core/java/android/content/
H A DClipDescription.java94 final int typeLength = desiredType.length();
128 for (int i=0; i<mMimeTypes.length; i++) {
146 for (int i=0; i<mMimeTypes.length; i++) {
166 return mMimeTypes.length;
181 if (mMimeTypes.length <= 0) {
184 for (int i=0; i<mMimeTypes.length; i++) {
205 for (int i=0; i<mMimeTypes.length; i++) {
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DGradient_Delegate.java50 if (colors.length < 2) {
53 if (positions != null && colors.length != positions.length) {
54 throw new IllegalArgumentException("color and position arrays must be of equal length");
58 float spacing = 1.f / (colors.length - 1);
59 positions = new float[colors.length];
61 positions[colors.length-1] = 1.f;
62 for (int i = 1; i < colors.length - 1 ; i++) {
/frameworks/base/wifi/java/android/net/wifi/
H A DWifiSsid.java60 int length = 0;
67 for (int i = 0; i < hexStr.length()-1; i += 2) {
84 while (i< asciiEncoded.length()) {
186 for (int i = 0; i< ssidBytes.length; i++) {
223 int length = in.readInt();
224 byte b[] = new byte[length];
226 ssid.octets.write(b, 0, length);
/frameworks/base/graphics/java/android/graphics/
H A DPaint.java1292 if ((index | count) < 0 || index + count > text.length) {
1296 if (text.length == 0 || count == 0) {
1324 if ((start | end | (end - start) | (text.length() - end)) < 0) {
1328 if (text.length() == 0 || start == end) {
1355 if (text.length() == 0) {
1381 if ((start | end | (end - start) | (text.length() - end)) < 0) {
1385 if (text.length() == 0 || start == end) {
1426 if (index < 0 || text.length - index < Math.abs(count)) {
1430 if (text.length == 0 || count == 0) {
1471 if ((start | end | (end - start) | (text.length()
[all...]
/frameworks/base/core/java/android/nfc/
H A DTag.java131 mTechList = Arrays.copyOf(techList, techList.length);
134 mTechExtras = Arrays.copyOf(techListExtras, techList.length);
157 final int size = techList.length;
300 for (int idx = 0; idx < mTechList.length; idx++) {
325 int length = techList.length;
326 for (int i = 0; i < length; i++) {
328 if (i < length - 1) {
351 out.writeInt(b.length);
366 dest.writeInt(mTechList.length);
[all...]

Completed in 5831 milliseconds

1234567891011>>