/development/ndk/platforms/android-9/arch-mips/include/asm/ |
H A D | scatterlist.h | 27 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 D | scatterlist.h | 22 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 D | scatterlist_32.h | 27 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 D | CardService.java | 110 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 D | reiserfs_xattr.h | 32 size_t length; member in struct:reiserfs_security_handle
|
H A D | blkpg.h | 41 long long length; member in struct:blkpg_partition
|
/development/ndk/platforms/android-L/include/linux/usb/ |
H A D | f_mtp.h | 27 int64_t length; member in struct:mtp_file_range 34 size_t length; member in struct:mtp_event
|
H A D | functionfs.h | 42 __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 D | NewsCategory.java | 38 for (i = 0; i < mArticles.length; i++) { 45 return mArticles.length;
|
H A D | NewsSource.java | 44 mCategory = new NewsCategory[CATEGORIES.length]; 45 for (i = 0; i < CATEGORIES.length; i++) {
|
/development/samples/SpellChecker/SampleSpellCheckerService/src/com/example/android/samplespellcheckerservice/ |
H A D | SampleSpellCheckerService.java | 65 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 D | AdbMessage.java | 55 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 D | ElizaResponder.java | 106 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 D | ToyVpnServer.cpp | 131 int length = strlen(parameter); local 135 if (length == 2 && parameter[0] == '-') { 137 --length; 142 if (offset + length >= size) { 149 memcpy(¶meters[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 D | MorseCodeConverterTest.java | 47 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 D | Cheeses.java | 162 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 D | Cheeses.java | 162 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 D | Cheeses.java | 162 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 D | CustomLocaleReceiver.java | 61 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 D | blkpg.h | 35 long long length; member in struct:blkpg_partition
|
/development/samples/HoneycombGallery/src/com/example/android/hcgallery/ |
H A D | DirectoryCategory.java | 33 return entries.length;
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/spritetext/ |
H A D | NumericSprite.java | 69 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 D | EncryptedDocument.java | 78 /** 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 D | NinePatchLab.java | 93 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 D | MediaIDHelper.java | 58 return segments.length == 2 ? segments[1] : null; 83 if (categoryAndValue != null && categoryAndValue.length == 2) {
|