Home
last modified time | relevance | path

Searched refs:length (Results 1 – 25 of 313) sorted by relevance

12345678910>>...13

/developers/samples/android/connectivity/nfc/CardEmulation/Application/tests/src/com/example/android/cardemulation/tests/
DSampleTests.java78 for (int i = 0; i < testData.length; i++) { in testHexToBinary()
104 assertEquals(expectedResponse.length, output.length); in testRequestAccoutNumber()
105 for (int i = 0; i < expectedResponse.length; i++) { in testRequestAccoutNumber()
123 assertEquals(expectedResponse.length, output.length); in testInvalidCommand()
124 for (int i = 0; i < expectedResponse.length; i++) { in testInvalidCommand()
140 assertEquals(expected.length, result.length); in testArrayConcat()
141 for (int i = 0; i < expected.length; i++) { in testArrayConcat()
164 assertEquals(expectedResult.length, result.length); in testBuildSelectApdu()
165 for (int i = 0; i < expectedResult.length; i++) { in testBuildSelectApdu()
/developers/build/prebuilts/gradle/CardEmulation/Application/tests/src/com/example/android/cardemulation/tests/
DSampleTests.java78 for (int i = 0; i < testData.length; i++) { in testHexToBinary()
104 assertEquals(expectedResponse.length, output.length); in testRequestAccoutNumber()
105 for (int i = 0; i < expectedResponse.length; i++) { in testRequestAccoutNumber()
123 assertEquals(expectedResponse.length, output.length); in testInvalidCommand()
124 for (int i = 0; i < expectedResponse.length; i++) { in testInvalidCommand()
140 assertEquals(expected.length, result.length); in testArrayConcat()
141 for (int i = 0; i < expected.length; i++) { in testArrayConcat()
164 assertEquals(expectedResult.length, result.length); in testBuildSelectApdu()
165 for (int i = 0; i < expectedResult.length; i++) { in testBuildSelectApdu()
/developers/samples/android/system/RuntimePermissionsBasic/kotlinApp/Application/src/main/java/com/example/android/basicpermissions/util/
DViewExt.kt22 fun View.showSnackbar(msgId: Int, length: Int) { in showSnackbar()
23 showSnackbar(context.getString(msgId), length) in showSnackbar()
26 fun View.showSnackbar(msg: String, length: Int) { in showSnackbar()
27 showSnackbar(msg, length, null, {}) in showSnackbar()
32 length: Int, in showSnackbar()
36 showSnackbar(context.getString(msgId), length, context.getString(actionMessageId), action) in showSnackbar()
41 length: Int, in showSnackbar()
45 val snackbar = Snackbar.make(this, msg, length) in showSnackbar()
/developers/build/prebuilts/gradle/RuntimePermissionsBasic/kotlinApp/Application/src/main/java/com/example/android/basicpermissions/util/
DViewExt.kt22 fun View.showSnackbar(msgId: Int, length: Int) { in showSnackbar()
23 showSnackbar(context.getString(msgId), length) in showSnackbar()
26 fun View.showSnackbar(msg: String, length: Int) { in showSnackbar()
27 showSnackbar(msg, length, null, {}) in showSnackbar()
32 length: Int, in showSnackbar()
36 showSnackbar(context.getString(msgId), length, context.getString(actionMessageId), action) in showSnackbar()
41 length: Int, in showSnackbar()
45 val snackbar = Snackbar.make(this, msg, length) in showSnackbar()
/developers/samples/android/input/autofill/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/util/
DSecurityHelper.java47 if (signatures.length != 1) { in getFingerprint()
48 throw new SecurityException(packageName + " has " + signatures.length + " signatures"); in getFingerprint()
61 StringBuilder builder = new StringBuilder(bytes.length * 2); in toHexFormat()
62 for (int i = 0; i < bytes.length; i++) { in toHexFormat()
64 int length = hex.length(); in toHexFormat() local
65 if (length == 1) { in toHexFormat()
68 if (length > 2) { in toHexFormat()
69 hex = hex.substring(length - 2, length); in toHexFormat()
72 if (i < (bytes.length - 1)) { in toHexFormat()
/developers/build/prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/util/
DSecurityHelper.java47 if (signatures.length != 1) { in getFingerprint()
48 throw new SecurityException(packageName + " has " + signatures.length + " signatures"); in getFingerprint()
61 StringBuilder builder = new StringBuilder(bytes.length * 2); in toHexFormat()
62 for (int i = 0; i < bytes.length; i++) { in toHexFormat()
64 int length = hex.length(); in toHexFormat() local
65 if (length == 1) { in toHexFormat()
68 if (length > 2) { in toHexFormat()
69 hex = hex.substring(length - 2, length); in toHexFormat()
72 if (i < (bytes.length - 1)) { in toHexFormat()
/developers/samples/android/connectivity/nfc/CardEmulation/Application/src/main/java/com/example/android/cardemulation/
DCardService.java110 aid.length() / 2) + aid); in BuildSelectApdu()
121 char[] hexChars = new char[bytes.length * 2]; // Each byte has two hex characters (nibbles) in ByteArrayToHexString()
123 for (int j = 0; j < bytes.length; j++) { in ByteArrayToHexString()
141 int len = s.length(); in HexStringToByteArray()
161 int totalLength = first.length; in ConcatArrays()
163 totalLength += array.length; in ConcatArrays()
166 int offset = first.length; in ConcatArrays()
168 System.arraycopy(array, 0, result, offset, array.length); in ConcatArrays()
169 offset += array.length; in ConcatArrays()
/developers/build/prebuilts/gradle/CardEmulation/Application/src/main/java/com/example/android/cardemulation/
DCardService.java110 aid.length() / 2) + aid); in BuildSelectApdu()
121 char[] hexChars = new char[bytes.length * 2]; // Each byte has two hex characters (nibbles) in ByteArrayToHexString()
123 for (int j = 0; j < bytes.length; j++) { in ByteArrayToHexString()
141 int len = s.length(); in HexStringToByteArray()
161 int totalLength = first.length; in ConcatArrays()
163 totalLength += array.length; in ConcatArrays()
166 int offset = first.length; in ConcatArrays()
168 System.arraycopy(array, 0, result, offset, array.length); in ConcatArrays()
169 offset += array.length; in ConcatArrays()
/developers/samples/android/deprecated/wearable/wear/ElizaChat/Application/src/main/java/com/example/android/wearable/elizachat/
DElizaResponder.java106 for (int i = 0; i < CONVERSATION_TO_RESPONSES_MAP.length / 2; i++) { in ElizaResponder()
127 for (; keywordIndex < CONVERSATION_KEYWORDS.length; ++keywordIndex) { in elzTalk()
135 if (keywordIndex == CONVERSATION_KEYWORDS.length) { in elzTalk()
139 afterKeyword = input.substring(index + CONVERSATION_KEYWORDS[keywordIndex].length()); in elzTalk()
141 for (int i = 0; i < WORDS_TO_REPLACE.length / 2; i++) { in elzTalk()
144 for (int j = 0; j < parts.length; ++j) { in elzTalk()
162 result = result.substring(0, result.length() - 1); in elzTalk()
/developers/build/prebuilts/gradle/ElizaChat/Application/src/main/java/com/example/android/wearable/elizachat/
DElizaResponder.java106 for (int i = 0; i < CONVERSATION_TO_RESPONSES_MAP.length / 2; i++) { in ElizaResponder()
127 for (; keywordIndex < CONVERSATION_KEYWORDS.length; ++keywordIndex) { in elzTalk()
135 if (keywordIndex == CONVERSATION_KEYWORDS.length) { in elzTalk()
139 afterKeyword = input.substring(index + CONVERSATION_KEYWORDS[keywordIndex].length()); in elzTalk()
141 for (int i = 0; i < WORDS_TO_REPLACE.length / 2; i++) { in elzTalk()
144 for (int j = 0; j < parts.length; ++j) { in elzTalk()
162 result = result.substring(0, result.length() - 1); in elzTalk()
/developers/samples/android/ui/text/TextStyling-Java/app/src/main/java/com/android/example/text/styling/renderer/
DMarkdownBuilder.java100 int startIndex = builder.length(); in buildBulletPointSpans()
105 builder.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in buildBulletPointSpans()
109 int startIndex = builder.length(); in buildQuoteSpans()
112 builder.setSpan(new StyleSpan(Typeface.ITALIC), startIndex, builder.length(), in buildQuoteSpans()
114 builder.setSpan(new LeadingMarginSpan.Standard(40), startIndex, builder.length(), in buildQuoteSpans()
116 builder.setSpan(new RelativeSizeSpan(1.1f), startIndex, builder.length(), in buildQuoteSpans()
121 int startIndex = builder.length(); in buildCodeBlockSpan()
124 builder.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in buildCodeBlockSpan()
/developers/samples/android/ui/text/TextStyling-Java/app/src/androidTest/java/com/android/example/text/styling/renderer/
DMarkdownBuilderTest.java59 Object[] spans = result.getSpans(0, result.length(), Object.class); in text()
60 assertEquals(0, spans.length); in text()
68 Object[] spans = result.getSpans(0, result.length(), Object.class); in textWithQuote()
69 assertEquals(3, spans.length); in textWithQuote()
88 Object[] spans = result.getSpans(0, result.length(), Object.class); in textWithBulletPoints()
89 assertEquals(2, spans.length); in textWithBulletPoints()
104 Object[] spans = result.getSpans(0, result.length(), Object.class); in textWithCode()
105 assertEquals(1, spans.length); in textWithCode()
/developers/samples/android/connectivity/nfc/CardReader/Application/tests/src/com/example/android/cardreader/tests/
DSampleTests.java84 assertEquals(expectedResult.length, result.length); in testBuildSelectApdu()
85 for (int i = 0; i < expectedResult.length; i++) { in testBuildSelectApdu()
96 for (int i = 0; i < testData.length; i++) { in testHexToBinary()
/developers/build/prebuilts/gradle/CardReader/Application/tests/src/com/example/android/cardreader/tests/
DSampleTests.java84 assertEquals(expectedResult.length, result.length); in testBuildSelectApdu()
85 for (int i = 0; i < expectedResult.length; i++) { in testBuildSelectApdu()
96 for (int i = 0; i < testData.length; i++) { in testHexToBinary()
/developers/samples/android/input/autofill/AutofillFramework/kotlinApp/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/
DPackageVerifier.kt66 val length = hex.length in <lambda>() constant
67 if (length == 1) { in <lambda>()
70 if (length > 2) { in <lambda>()
71 hex = hex.substring(length - 2, length) in <lambda>()
/developers/build/prebuilts/gradle/AutofillFramework/kotlinApp/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/
DPackageVerifier.kt66 val length = hex.length in <lambda>() constant
67 if (length == 1) { in <lambda>()
70 if (length > 2) { in <lambda>()
71 hex = hex.substring(length - 2, length) in <lambda>()
/developers/samples/android/connectivity/nfc/CardReader/Application/src/main/java/com/example/android/cardreader/
DLoyaltyCardReader.java85 int resultLength = result.length; in onTagDiscovered()
110 … return HexStringToByteArray(SELECT_APDU_HEADER + String.format("%02X", aid.length() / 2) + aid); in BuildSelectApdu()
121 char[] hexChars = new char[bytes.length * 2]; in ByteArrayToHexString()
123 for ( int j = 0; j < bytes.length; j++ ) { in ByteArrayToHexString()
140 int len = s.length(); in HexStringToByteArray()
/developers/build/prebuilts/gradle/CardReader/Application/src/main/java/com/example/android/cardreader/
DLoyaltyCardReader.java85 int resultLength = result.length; in onTagDiscovered()
110 … return HexStringToByteArray(SELECT_APDU_HEADER + String.format("%02X", aid.length() / 2) + aid); in BuildSelectApdu()
121 char[] hexChars = new char[bytes.length * 2]; in ByteArrayToHexString()
123 for ( int j = 0; j < bytes.length; j++ ) { in ByteArrayToHexString()
140 int len = s.length(); in HexStringToByteArray()
/developers/samples/android/common/src/java/com/example/android/common/dummydata/
DCheeses.java162 for (int i = 0, z = CHEESES.length ; i < z ; i++) { in asList()
178 count = Math.min(count, CHEESES.length); in randomList()
181 items.add(CHEESES[random.nextInt(CHEESES.length)]); in randomList()
/developers/build/prebuilts/gradle/SwipeRefreshMultipleViews/Application/src/main/java/com/example/android/common/dummydata/
DCheeses.java162 for (int i = 0, z = CHEESES.length ; i < z ; i++) { in asList()
178 count = Math.min(count, CHEESES.length); in randomList()
181 items.add(CHEESES[random.nextInt(CHEESES.length)]); in randomList()
/developers/build/prebuilts/gradle/SwipeRefreshLayoutBasic/Application/src/main/java/com/example/android/common/dummydata/
DCheeses.java162 for (int i = 0, z = CHEESES.length ; i < z ; i++) { in asList()
178 count = Math.min(count, CHEESES.length); in randomList()
181 items.add(CHEESES[random.nextInt(CHEESES.length)]); in randomList()
/developers/build/prebuilts/gradle/SwipeRefreshListFragment/Application/src/main/java/com/example/android/common/dummydata/
DCheeses.java162 for (int i = 0, z = CHEESES.length ; i < z ; i++) { in asList()
178 count = Math.min(count, CHEESES.length); in randomList()
181 items.add(CHEESES[random.nextInt(CHEESES.length)]); in randomList()
/developers/samples/android/ui/text/TextStyling-Kotlin/app/src/main/java/com/android/example/text/styling/parser/
DParser.kt68 if (lastStartIndex < string.length) { in parse()
69 val text = string.subSequence(lastStartIndex, string.length) in parse()
81 endOfParagraph = string.length in getEndOfParagraph()
123 markEnd = string.length in findElements()
140 if (lastStartIndex < string.length) { in findElements()
141 val text = string.subSequence(lastStartIndex, string.length) in findElements()
/developers/samples/android/ui/text/TextStyling-Java/app/src/main/java/com/android/example/text/styling/parser/
DParser.java87 if (lastStartIndex < string.length()) { in parse()
88 String text = string.substring(lastStartIndex, string.length()); in parse()
100 endOfParagraph = string.length(); in getEndOfParagraph()
144 markEnd = string.length(); in findElements()
160 if (lastStartIndex < string.length()) { in findElements()
161 String text = string.substring(lastStartIndex, string.length()); in findElements()
/developers/build/prebuilts/gradle/SwipeRefreshMultipleViews/Application/src/main/java/com/example/android/swiperefreshmultipleviews/
DMultiSwipeRefreshLayout.java51 mSwipeableChildren = new View[ids.length]; in setSwipeableChildren()
52 for (int i = 0; i < ids.length; i++) { in setSwipeableChildren()
68 if (mSwipeableChildren != null && mSwipeableChildren.length > 0) { in canChildScrollUp()

12345678910>>...13