Searched refs:length (Results 1 - 25 of 373) sorted by relevance

1234567891011>>

/development/ndk/platforms/android-9/arch-mips/include/asm/
H A Dscatterlist.h27 unsigned int length; member in struct:scatterlist
31 #define sg_dma_len(sg) ((sg)->length)
/development/ndk/platforms/android-3/arch-arm/include/asm/
H A Dscatterlist.h22 unsigned int length; member in struct:scatterlist
26 #define sg_dma_len(sg) ((sg)->length)
/development/ndk/platforms/android-9/arch-x86/include/asm/
H A Dscatterlist_32.h27 unsigned int length; member in struct:scatterlist
32 #define sg_dma_len(sg) ((sg)->length)
/development/samples/browseable/CardEmulation/src/com.example.android.cardemulation/
H A DCardService.java110 aid.length() / 2) + aid);
121 char[] hexChars = new char[bytes.length * 2]; // Each byte has two hex characters (nibbles)
123 for (int j = 0; j < bytes.length; j++) {
138 * @throws java.lang.IllegalArgumentException if input length is incorrect
141 int len = s.length();
161 int totalLength = first.length;
163 totalLength += array.length;
166 int offset = first.length;
168 System.arraycopy(array, 0, result, offset, array.length);
169 offset += array.length;
[all...]
/development/ndk/platforms/android-L/include/linux/
H A Dreiserfs_xattr.h32 size_t length; member in struct:reiserfs_security_handle
H A Dblkpg.h41 long long length; member in struct:blkpg_partition
/development/ndk/platforms/android-L/include/linux/usb/
H A Df_mtp.h27 int64_t length; member in struct:mtp_file_range
34 size_t length; member in struct:mtp_event
H A Dfunctionfs.h42 __le32 length; member in struct:usb_functionfs_descs_head
50 __le32 length; member in struct:usb_functionfs_strings_head
/development/samples/training/multiscreen/newsreader/src/com/example/android/newsreader/
H A DNewsCategory.java38 for (i = 0; i < mArticles.length; i++) {
45 return mArticles.length;
H A DNewsSource.java44 mCategory = new NewsCategory[CATEGORIES.length];
45 for (i = 0; i < CATEGORIES.length; i++) {
/development/samples/SpellChecker/SampleSpellCheckerService/src/com/example/android/samplespellcheckerservice/
H A DSampleSpellCheckerService.java65 final int length = input.length();
67 // length <= 3 for short words that we assume are in the fake dictionary
68 // length > 20 for too long words that we assume can't be recognized (such as CJK words)
69 final int flags = length <= 3 ? SuggestionsInfo.RESULT_ATTR_IN_THE_DICTIONARY
70 : length <= 20 ? SuggestionsInfo.RESULT_ATTR_LOOKS_LIKE_TYPO : 0;
95 for (int i = 0; i < textInfos.length; ++i) {
101 final int length = input.length();
122 // length <
[all...]
/development/samples/USB/AdbTest/src/com/android/adb/
H A DAdbMessage.java55 mMessageBuffer.putInt(12, (data == null ? 0 : data.length));
59 mDataBuffer.put(data, 0, data.length);
92 // returns command's data length
99 int length = getDataLength();
100 if (length == 0) return null;
102 return new String(mDataBuffer.array(), 0, length - 1);
111 int length = getDataLength();
112 if (length > 0) {
115 if (request.queue(mDataBuffer, length)) {
135 public boolean readData(UsbRequest request, int length) { argument
140 extractString(ByteBuffer buffer, int offset, int length) argument
[all...]
/development/samples/browseable/ElizaChat/Application/src/com.example.android.wearable.elizachat/
H A DElizaResponder.java106 for (int i = 0; i < CONVERSATION_TO_RESPONSES_MAP.length / 2; i++) {
127 for (; keywordIndex < CONVERSATION_KEYWORDS.length; ++keywordIndex) {
135 if (keywordIndex == CONVERSATION_KEYWORDS.length) {
139 afterKeyword = input.substring(index + CONVERSATION_KEYWORDS[keywordIndex].length());
141 for (int i = 0; i < WORDS_TO_REPLACE.length / 2; i++) {
144 for (int j = 0; j < parts.length; ++j) {
162 result = result.substring(0, result.length() - 1);
/development/samples/ToyVpn/server/linux/
H A DToyVpnServer.cpp131 int length = strlen(parameter); local
135 if (length == 2 && parameter[0] == '-') {
137 --length;
142 if (offset + length >= size) {
149 memcpy(&parameters[offset + 1], parameter, length);
150 offset += 1 + length;
169 " -a <address> <prefix-length> for the private address\n"
170 " -r <address> <prefix-length> for the forwarding route\n"
220 int length = read(interface, packet, sizeof(packet)); local
221 if (length >
[all...]
/development/samples/ApiDemos/tests/src/com/example/android/apis/os/
H A DMorseCodeConverterTest.java47 assertEquals("Unexpected array length.", expected.length, actual.length);
48 for (int i = 0; i < expected.length; i++) {
/development/samples/browseable/SwipeRefreshLayoutBasic/src/com.example.android.common/dummydata/
H A DCheeses.java162 for (int i = 0, z = CHEESES.length ; i < z ; i++) {
178 count = Math.min(count, CHEESES.length);
181 items.add(CHEESES[random.nextInt(CHEESES.length)]);
/development/samples/browseable/SwipeRefreshListFragment/src/com.example.android.common/dummydata/
H A DCheeses.java162 for (int i = 0, z = CHEESES.length ; i < z ; i++) {
178 count = Math.min(count, CHEESES.length);
181 items.add(CHEESES[random.nextInt(CHEESES.length)]);
/development/samples/browseable/SwipeRefreshMultipleViews/src/com.example.android.common/dummydata/
H A DCheeses.java162 for (int i = 0, z = CHEESES.length ; i < z ; i++) {
178 count = Math.min(count, CHEESES.length);
181 items.add(CHEESES[random.nextInt(CHEESES.length)]);
/development/apps/CustomLocale/src/com/android/customlocale2/
H A DCustomLocaleReceiver.java61 is_ok = is_ok && (locale.length() == 2 || locale.length() == 5);
62 if (is_ok && locale.length() >= 2) {
66 if (is_ok && locale.length() == 5) {
/development/ndk/platforms/android-3/include/linux/
H A Dblkpg.h35 long long length; member in struct:blkpg_partition
/development/samples/HoneycombGallery/src/com/example/android/hcgallery/
H A DDirectoryCategory.java33 return entries.length;
/development/samples/ApiDemos/src/com/example/android/apis/graphics/spritetext/
H A DNumericSprite.java69 int length = mText.length();
71 for(int i = 0; i < length; i++) {
82 int length = mText.length();
83 for(int i = 0; i < length; i++) {
/development/samples/Vault/src/com/example/android/vault/
H A DEncryptedDocument.java78 /** Key length for AES-128 */
80 /** Key length for SHA-256 */
106 if (dataKey.getEncoded().length != DATA_KEY_LENGTH) {
107 throw new IllegalArgumentException("Expected data key length " + DATA_KEY_LENGTH);
109 if (macKey.getEncoded().length != MAC_KEY_LENGTH) {
110 throw new IllegalArgumentException("Expected MAC key length " + MAC_KEY_LENGTH);
184 if (f.length() <= CONTENT_OFFSET) {
284 while ((n = f.read(inbuf, 0, (int) Math.min(section.length, inbuf.length))) != -1) {
285 section.length
359 long length; field in class:EncryptedDocument.Section
[all...]
/development/apps/NinePatchLab/src/com/android/ninepatch/
H A DNinePatchLab.java93 mButtons = new Drawable[ids.length];
94 mBGs = new Drawable[bgs.length + 2];
98 for (int i = 0; i < ids.length; i++) {
101 for (int i = 0; i < bgs.length; i++) {
104 mBGs[bgs.length] = make_custom_bg();
105 mBGs[bgs.length+1] = make_solid_bg();
131 final int N = mButtons.length;
182 mCurrBGIndex = (mCurrBGIndex + 1) % mBGs.length;
/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/utils/
H A DMediaIDHelper.java58 return segments.length == 2 ? segments[1] : null;
83 if (categoryAndValue != null && categoryAndValue.length == 2) {

Completed in 1374 milliseconds

1234567891011>>