Searched refs:length (Results 226 - 250 of 3067) sorted by last modified time

1234567891011>>

/frameworks/support/core-utils/java/android/support/v4/provider/
H A DDocumentFile.java253 * Returns the length of this file in bytes. Returns 0 if the file does not
254 * exist, or if the length is unknown. The result for a directory is not
260 public abstract long length(); method in class:DocumentFile
H A DRawDocumentFile.java102 public long length() { method in class:RawDocumentFile
103 return mFile.length();
H A DSingleDocumentFile.java80 public long length() { method in class:SingleDocumentFile
81 return DocumentsContractApi19.length(mContext, mUri);
H A DTreeDocumentFile.java82 public long length() { method in class:TreeDocumentFile
83 return DocumentsContractApi19.length(mContext, mUri);
109 final DocumentFile[] resultFiles = new DocumentFile[result.length];
110 for (int i = 0; i < result.length; i++) {
/frameworks/support/core-utils/java/android/support/v4/text/
H A DBidiFormatter.java299 final boolean isRtl = heuristic.isRtl(str, 0, str.length());
327 final boolean isRtl = heuristic.isRtl(str, 0, str.length());
357 return mDefaultTextDirectionHeuristicCompat.isRtl(str, 0, str.length());
411 final boolean isRtl = heuristic.isRtl(str, 0, str.length());
603 * The length of the text in chars.
605 private final int length; field in class:BidiFormatter.DirectionalityEstimator
630 length = text.length();
649 while (charIndex < length && firstNonEmptyEmbeddingLevel == 0) {
743 charIndex = length;
[all...]
/frameworks/support/core-utils/kitkat/android/support/v4/provider/
H A DDocumentsContractApi19.java87 public static long length(Context context, Uri self) { method in class:DocumentsContractApi19
/frameworks/support/core-utils/tests/java/android/support/v4/app/
H A DFrameMetricsAggregatorTest.java75 for (int i = 0; i < durations.length; ++i) {
/frameworks/support/core-utils/tests/java/android/support/v4/content/
H A DFileProviderTest.java203 assertEquals(TEST_DATA.length, cursor.getLong(cursor.getColumnIndex(SIZE)));
220 assertEquals(TEST_DATA.length, cursor.getLong(0));
232 assertEquals(TEST_DATA.length, cursor.getLong(1));
249 assertEquals(TEST_DATA.length, cursor.getLong(0));
/frameworks/support/core-utils/tests/java/android/support/v4/provider/
H A DDocumentFileTest.java150 assertEquals("length", 3, docs.length);
160 assertEquals("length", 0, bar.listFiles().length);
231 assertEquals("length", 3, meow.listFiles().length);
240 assertEquals("length", 0, newFile.length());
242 assertEquals("length", 4, newFile.length());
[all...]
/frameworks/support/core-utils/tests/java/android/support/v4/text/
H A DBidiFormatterTest.java206 CS_EN_HE.setSpan(RELATIVE_SIZE_SPAN, 0, EN.length(), Spanned.SPAN_INCLUSIVE_INCLUSIVE);
213 spans = wrapped.getSpans(0, wrapped.length(), Object.class);
214 assertEquals(1, spans.length);
217 assertEquals(EN.length(), wrapped.getSpanEnd(RELATIVE_SIZE_SPAN));
221 spans = wrapped.getSpans(0, wrapped.length(), Object.class);
222 assertEquals(1, spans.length);
225 assertEquals(EN.length(), wrapped.getSpanEnd(RELATIVE_SIZE_SPAN));
229 spans = wrapped.getSpans(0, wrapped.length(), Object.class);
230 assertEquals(1, spans.length);
233 assertEquals(EN.length(), wrappe
[all...]
/frameworks/support/design/src/android/support/design/internal/
H A DBottomNavigationMenuView.java292 if (menuSize != mButtons.length) {
/frameworks/support/design/src/android/support/design/widget/
H A DAppBarLayout.java522 final int[] states = super.onCreateDrawableState(extraSpace + extraStates.length);
H A DCheckableImageButton.java95 super.onCreateDrawableState(extraSpace + DRAWABLE_STATE_CHECKED.length),
H A DCollapsingTextHelper.java400 mTextPaint.measureText(mTextToDraw, 0, mTextToDraw.length()) : 0;
432 ? mTextPaint.measureText(mTextToDraw, 0, mTextToDraw.length()) : 0;
516 canvas.drawText(mTextToDraw, 0, mTextToDraw.length(), x, y, mTextPaint);
528 : TextDirectionHeuristicsCompat.FIRSTSTRONG_LTR).isRtl(text, 0, text.length());
629 final int w = Math.round(mTextPaint.measureText(mTextToDraw, 0, mTextToDraw.length()));
639 c.drawText(mTextToDraw, 0, mTextToDraw.length(), 0, h - mTextPaint.descent(), mTextPaint);
H A DCoordinatorLayout.java215 final int count = mKeylines.length;
572 if (index < 0 || index >= mKeylines.length) {
H A DTextInputLayout.java369 updateCounter(s.length());
395 updateCounter(mEditText.getText().length());
802 updateCounter(mEditText.getText().length());
824 * Sets the max length to display at the character counter.
838 updateCounter(mEditText == null ? 0 : mEditText.getText().length());
863 * Returns the max length shown at the character counter.
871 void updateCounter(int length) { argument
874 mCounterView.setText(String.valueOf(length));
877 mCounterOverflowed = length > mCounterMaxLength;
883 length, mCounterMaxLengt
[all...]
/frameworks/support/design/tests/src/android/support/design/testutils/
H A DTestUtilsActions.java190 for (int i = 0; i < tabs.length; i++) {
H A DViewStructureImpl.java69 final int start = mChildren.length;
81 return mChildren.length;
/frameworks/support/design/tests/src/android/support/design/widget/
H A DBottomNavigationViewTest.java84 mMenuStringContent = new HashMap<>(MENU_CONTENT_ITEM_IDS.length);
110 assertEquals("Should have matching number of items", MENU_CONTENT_ITEM_IDS.length,
112 for (int i = 0; i < MENU_CONTENT_ITEM_IDS.length; i++) {
H A DBottomSheetBehaviorTest.java204 int delayBetweenMovements = DURATION / steps.length;
208 for (int i = 0; i < steps.length; i++) {
231 Preconditions.checkElementIndex(1, start.length);
232 Preconditions.checkElementIndex(1, end.length);
H A DCustomSnackbarTest.java143 final int length, @Snackbar.Callback.DismissEvent final int expectedEvent)
148 .setSubtitle(SUBTITLE_TEXT).setDuration(length)
141 verifyDismissCallback(final ViewInteraction interaction, @Nullable final ViewAction action, @Nullable final DismissAction dismissAction, final int length, @Snackbar.Callback.DismissEvent final int expectedEvent) argument
H A DNavigationViewTest.java118 mMenuStringContent = new HashMap<>(MENU_CONTENT_ITEM_IDS.length);
134 assertEquals("Should have matching number of items", MENU_CONTENT_ITEM_IDS.length + 1,
136 for (int i = 0; i < MENU_CONTENT_ITEM_IDS.length; i++) {
142 for (int i = 0; i < MENU_CONTENT_ITEM_IDS.length; i++) {
173 for (int i = 0; i < MENU_CONTENT_ITEM_IDS.length; i++) {
184 for (int i = 0; i < MENU_CONTENT_ITEM_IDS.length; i++) {
201 for (int i = 0; i < MENU_CONTENT_ITEM_IDS.length; i++) {
214 for (int i = 0; i < MENU_CONTENT_ITEM_IDS.length; i++) {
231 for (int i = 0; i < MENU_CONTENT_ITEM_IDS.length; i++) {
252 for (int i = 0; i < MENU_CONTENT_ITEM_IDS.length;
[all...]
H A DSnackbarTest.java144 final int length, @Snackbar.Callback.DismissEvent final int expectedEvent)
148 final Snackbar snackbar = Snackbar.make(mCoordinatorLayout, MESSAGE_TEXT, length)
142 verifyDismissCallback(final ViewInteraction interaction, final @Nullable ViewAction action, final @Nullable DismissAction dismissAction, final int length, @Snackbar.Callback.DismissEvent final int expectedEvent) argument
H A DTabLayoutTest.java268 for (int i = 0; i < positions.length; i++) {
H A DTabLayoutWithViewPagerTest.java226 int itemCount = title.length;

Completed in 215 milliseconds

1234567891011>>