Searched refs:length (Results 276 - 300 of 1912) sorted by relevance

<<11121314151617181920>>

/frameworks/base/core/java/android/os/
H A DFileUtils.java219 * Read a text file into a String, optionally limiting the length.
221 * @param max length (positive for head, negative of tail, 0 for no limit)
233 long size = file.length();
237 int length = bis.read(data);
238 if (length <= 0) return "";
239 if (length <= max) return new String(data, 0, length);
252 } while (len == data.length);
258 System.arraycopy(last, len, last, 0, last.length - len);
259 System.arraycopy(data, 0, last, last.length
[all...]
/frameworks/base/graphics/java/android/graphics/
H A DPaint.java1451 if ((index | count) < 0 || index + count > text.length) {
1455 if (text.length == 0 || count == 0) {
1483 if ((start | end | (end - start) | (text.length() - end)) < 0) {
1487 if (text.length() == 0 || start == end) {
1514 if (text.length() == 0) {
1542 if ((start | end | (end - start) | (text.length() - end)) < 0) {
1546 if (text.length() == 0 || start == end) {
1587 if (index < 0 || text.length - index < Math.abs(count)) {
1591 if (text.length == 0 || count == 0) {
1634 if ((start | end | (end - start) | (text.length()
[all...]
H A DInterpolator.java91 if (values.length < mValueCount) {
94 if (blend != null && blend.length < 4) {
137 if (values != null && values.length < mValueCount) {
H A DLinearGradient.java54 if (colors.length < 2) {
57 if (positions != null && colors.length != positions.length) {
58 throw new IllegalArgumentException("color and position arrays must be of equal length");
H A DRadialGradient.java59 if (colors.length < 2) {
62 if (stops != null && colors.length != stops.length) {
63 throw new IllegalArgumentException("color and position arrays must be of equal length");
/frameworks/base/core/java/com/android/internal/statusbar/
H A DStatusBarIconList.java55 final int N = mIcons.length;
91 final int N = slots.length;
100 final int N = mSlots.length;
110 return mSlots.length;
144 final int N = that.mSlots.length;
155 final int N = mSlots.length;
/frameworks/base/core/jni/
H A Dandroid_os_MemoryFile.cpp29 static jobject android_os_MemoryFile_open(JNIEnv* env, jobject clazz, jstring name, jint length) argument
33 int result = ashmem_create_region(namestr, length);
47 jint length, jint prot)
50 void* result = mmap(NULL, length, prot, MAP_SHARED, fd, 0);
57 static void android_os_MemoryFile_munmap(JNIEnv* env, jobject clazz, jlong addr, jint length) argument
59 int result = munmap(reinterpret_cast<void *>(addr), length);
46 android_os_MemoryFile_mmap(JNIEnv* env, jobject clazz, jobject fileDescriptor, jint length, jint prot) argument
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
H A DByteArrayHelpers.java160 if (numbers.length == 0) {
167 ByteBuffer byteBuffer = ByteBuffer.allocate(numbers.length * (Double.SIZE / Byte.SIZE))
170 for (int i = 0; i < numbers.length; ++i) {
196 // Each number written is at least 1 byte, so the position should be at least length
197 if (numbers.length != 0 && byteBuffer.position() < numbers.length) {
200 numbers.length, byteBuffer.position()));
/frameworks/base/wifi/java/android/net/wifi/
H A DWifiSsid.java66 for (int i = 0; i < hexStr.length()-1; i += 2) {
83 while (i< asciiEncoded.length()) {
185 for (int i = 0; i< ssidBytes.length; i++) {
227 int length = in.readInt();
228 byte b[] = new byte[length];
230 ssid.octets.write(b, 0, length);
/frameworks/rs/java/tests/RSTest_CompatLib/src/com/android/rs/test/
H A DUT_copy_test.java39 for (int ct=0; ct < f1.length; ct++) {
47 for (int ct=0; ct < f1.length; ct++) {
63 for (int ct=0; ct < f1.length; ct++) {
71 for (int ct=0; ct < f1.length; ct++) {
87 for (int ct=0; ct < f1.length; ct++) {
95 for (int ct=0; ct < f1.length; ct++) {
/frameworks/rs/java/tests/RsTest/src/com/android/rs/test/
H A DUT_copy_test.java39 for (int ct=0; ct < f1.length; ct++) {
47 for (int ct=0; ct < f1.length; ct++) {
63 for (int ct=0; ct < f1.length; ct++) {
71 for (int ct=0; ct < f1.length; ct++) {
87 for (int ct=0; ct < f1.length; ct++) {
95 for (int ct=0; ct < f1.length; ct++) {
/frameworks/opt/chips/src/com/android/ex/chips/
H A DRecipientEditTextView.java308 paint.getTextBounds(textHeightSample, 0, textHeightSample.length(), textBounds);
375 if (chips != null && chips.length > 0) {
376 last = chips[chips.length - 1];
386 getText().getSpans(0, getText().length(), DrawableRecipientChip.class);
406 setSelection(Math.min(getSpannable().getSpanEnd(last) + 1, getText().length()));
445 super.append(SEPARATOR, 0, SEPARATOR.length());
551 if ((chips == null || chips.length == 0)) {
555 if (whatEnd < text.length() && text.charAt(whatEnd) == ',') {
580 setSelection(text != null && text.length() > 0 ? text.length()
[all...]
/frameworks/base/core/java/android/net/
H A DNetworkStatsHistory.java131 bucketCount = bucketStart.length;
155 rxPackets = new long[bucketStart.length];
157 txPackets = new long[bucketStart.length];
158 operations = new long[bucketStart.length];
159 bucketCount = bucketStart.length;
168 : new long[bucketStart.length];
174 bucketCount = bucketStart.length;
183 if (bucketStart.length != bucketCount || rxBytes.length != bucketCount
184 || rxPackets.length !
[all...]
H A DIpPrefix.java34 * <li>A prefix length. This specifies the length of the prefix by specifing the number of bits
51 if (address.length != 4 && address.length != 16) {
53 "IpPrefix has " + address.length + " bytes which is neither 4 nor 16");
60 * network byte order and a prefix length. Silently truncates the address to the prefix length,
64 * @param prefixLength the prefix length. Must be &gt;= 0 and &lt;= (32 or 128) (IPv4 or IPv6).
75 * Constructs a new {@code IpPrefix} from an IPv4 or IPv6 address and a prefix length. Silently
76 * truncates the address to the prefix length, s
[all...]
/frameworks/base/core/java/android/hardware/camera2/utils/
H A DArrayUtils.java55 for (int i = 0; i < array.length; ++i) {
86 for (int i = 0; i < returnArray.length; ++i) {
125 if (strIndex < convertTo.length) {
/frameworks/base/core/java/android/nfc/
H A DTag.java132 mTechList = Arrays.copyOf(techList, techList.length);
135 mTechExtras = Arrays.copyOf(techListExtras, techList.length);
158 final int size = techList.length;
203 int[] techIntList = new int[techStringList.length];
205 for (int i = 0; i < techStringList.length; i++) {
344 for (int idx = 0; idx < mTechList.length; idx++) {
369 int length = techList.length;
370 for (int i = 0; i < length; i++) {
372 if (i < length
[all...]
/frameworks/base/core/java/android/view/textservice/
H A DTextInfo.java56 return TextUtils.isEmpty(text) ? 0 : text.length();
76 final SpellCheckSpan[] spans = spannableString.getSpans(0, spannableString.length(),
78 for (int i = 0; i < spans.length; ++i) {
/frameworks/base/test-runner/src/junit/runner/
H A DClassPathTestCollector.java17 static final int SUFFIX_LENGTH= ".class".length();
52 for (int i= 0; i < contents.length; i++)
75 String s= classFileName.substring(0, classFileName.length()-SUFFIX_LENGTH);
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/presentation/
H A DCube.java72 ByteBuffer vbb = ByteBuffer.allocateDirect(vertices.length*4);
78 ByteBuffer cbb = ByteBuffer.allocateDirect(colors.length*4);
84 mIndexBuffer = ByteBuffer.allocateDirect(indices.length);
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DPathOpsActivity.java58 mPaths = new Path[ops.length];
60 mSize = w / (ops.length * 2.0f);
68 for (int i = 0; i < ops.length; i++) {
/frameworks/base/tests/TtsTests/src/com/android/speech/tts/
H A DTtsEnginesTests.java72 assertEquals("array length", expected.length, actual.length);
73 for (int i = 0; i < expected.length; i++) {
/frameworks/base/tests/VectorDrawableTest/src/com/android/test/dynamic/
H A DVectorDrawable01.java56 final Button []bArray = new Button[icon.length];
58 for (int i = 0; i < icon.length; i++) {
65 vd.setAlpha((i + 1) * (0xFF / (icon.length + 1)));
/frameworks/base/tools/layoutlib/create/src/com/android/tools/layoutlib/create/
H A DCreateInfo.java110 int count = refactoredClasses.length / 2 + EXCLUDED_CLASSES.length;
112 for (int i = 0; i < refactoredClasses.length; i+=2) {
/frameworks/native/opengl/tools/glgen/specs/gles11/
H A DGLES31Ext.spec3 void glDebugMessageInsertKHR ( GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf )
6 void glPushDebugGroupKHR ( GLenum source, GLuint id, GLsizei length, const GLchar *message )
8 void glObjectLabelKHR ( GLenum identifier, GLuint name, GLsizei length, const GLchar *label )
9 void glGetObjectLabelKHR ( GLenum identifier, GLuint name, GLsizei bufSize, GLsizei *length, GLchar *label )
10 void glObjectPtrLabelKHR ( const void *ptr, GLsizei length, const GLchar *label )
11 void glGetObjectPtrLabelKHR ( const void *ptr, GLsizei bufSize, GLsizei *length, GLchar *label )
/frameworks/opt/net/voip/src/java/android/net/rtp/
H A DAudioCodec.java94 return Arrays.copyOf(sCodecs, sCodecs.length);
117 String channels = clue.substring(codec.rtpmap.length());
118 if (channels.length() == 0 || channels.equals("/1")) {

Completed in 4134 milliseconds

<<11121314151617181920>>