/development/samples/USB/AdbTest/src/com/android/adb/ |
D | AdbMessage.java | 55 mMessageBuffer.putInt(12, (data == null ? 0 : data.length)); in set() 59 mDataBuffer.put(data, 0, data.length); in set() 99 int length = getDataLength(); in getDataString() local 100 if (length == 0) return null; in getDataString() 102 return new String(mDataBuffer.array(), 0, length - 1); in getDataString() 111 int length = getDataLength(); in write() local 112 if (length > 0) { in write() 115 if (request.queue(mDataBuffer, length)) { in write() 135 public boolean readData(UsbRequest request, int length) { in readData() argument 137 return request.queue(mDataBuffer, length); in readData() [all …]
|
/development/samples/ToyVpn/server/linux/ |
D | ToyVpnServer.cpp | 131 int length = strlen(parameter); in build_parameters() local 135 if (length == 2 && parameter[0] == '-') { in build_parameters() 137 --length; in build_parameters() 142 if (offset + length >= size) { in build_parameters() 149 memcpy(¶meters[offset + 1], parameter, length); in build_parameters() 150 offset += 1 + length; in build_parameters() 220 int length = read(interface, packet, sizeof(packet)); in main() local 221 if (length > 0) { in main() 223 send(tunnel, packet, length, MSG_NOSIGNAL); in main() 235 length = recv(tunnel, packet, sizeof(packet), 0); in main() [all …]
|
/development/tools/jdwpspy/ |
D | Main.cpp | 20 void printHexDump(const void* vaddr, size_t length) in printHexDump() argument 22 printHexDumpEx(stdout, vaddr, length, kHexDumpLocal, ""); in printHexDump() 24 void printHexDump2(const void* vaddr, size_t length, const char* prefix) in printHexDump2() argument 26 printHexDumpEx(stdout, vaddr, length, kHexDumpLocal, prefix); in printHexDump2() 34 void printHexDumpEx(FILE* fp, const void* vaddr, size_t length, in printHexDumpEx() argument 55 while (length) { in printHexDumpEx() 67 int count = ((int)length > 16-gap) ? 16-gap : (int) length; /* cap length */ in printHexDumpEx() 99 length -= count; in printHexDumpEx()
|
D | Common.h | 96 void printHexDump(const void* vaddr, size_t length); 97 void printHexDump2(const void* vaddr, size_t length, const char* prefix); 98 void printHexDumpEx(FILE* fp, const void* vaddr, size_t length,
|
/development/samples/SpellChecker/SampleSpellCheckerService/src/com/example/android/samplespellcheckerservice/ |
D | SampleSpellCheckerService.java | 65 final int length = input.length(); in onGetSuggestions() local 69 final int flags = length <= 3 ? SuggestionsInfo.RESULT_ATTR_IN_THE_DICTIONARY in onGetSuggestions() 70 : length <= 20 ? SuggestionsInfo.RESULT_ATTR_LOOKS_LIKE_TYPO : 0; in onGetSuggestions() 95 for (int i = 0; i < textInfos.length; ++i) { in onGetSentenceSuggestionsMultiple() 101 final int length = input.length(); in onGetSentenceSuggestionsMultiple() local 125 final int flags = length <= 3 ? SuggestionsInfo.RESULT_ATTR_IN_THE_DICTIONARY in onGetSentenceSuggestionsMultiple() 126 : length <= 20 ? SuggestionsInfo.RESULT_ATTR_LOOKS_LIKE_TYPO : 0; in onGetSentenceSuggestionsMultiple() 131 lengths = new int[] { ti.getText().length() }; in onGetSentenceSuggestionsMultiple()
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/spritetext/ |
D | NumericSprite.java | 69 int length = mText.length(); in draw() local 71 for(int i = 0; i < length; i++) { in draw() 82 int length = mText.length(); in width() local 83 for(int i = 0; i < length; i++) { in width()
|
/development/samples/ApiDemos/tests/src/com/example/android/apis/os/ |
D | MorseCodeConverterTest.java | 47 assertEquals("Unexpected array length.", expected.length, actual.length); in assertArraysEqual() 48 for (int i = 0; i < expected.length; i++) { in assertArraysEqual()
|
/development/ndk/platforms/android-3/arch-arm/include/asm/ |
D | scatterlist.h | 22 unsigned int length; member 26 #define sg_dma_len(sg) ((sg)->length)
|
/development/ndk/platforms/android-9/arch-mips/include/asm/ |
D | scatterlist.h | 27 unsigned int length; member 31 #define sg_dma_len(sg) ((sg)->length)
|
/development/ndk/platforms/android-9/arch-x86/include/asm/ |
D | scatterlist_32.h | 27 unsigned int length; member 32 #define sg_dma_len(sg) ((sg)->length)
|
/development/apps/CustomLocale/src/com/android/customlocale2/ |
D | CustomLocaleReceiver.java | 61 is_ok = is_ok && (locale.length() == 2 || locale.length() == 5); in onReceive() 62 if (is_ok && locale.length() >= 2) { in onReceive() 66 if (is_ok && locale.length() == 5) { in onReceive()
|
/development/samples/SoftKeyboard/src/com/example/android/softkeyboard/ |
D | SoftKeyboard.java | 272 if (mComposing.length() > 0 && (newSelStart != candidatesEnd in onUpdateSelection() 298 for (int i = 0; i < completions.length; i++) { in onDisplayCompletions() 328 if (mComposing.length() > 0) { in translateKeyDown() 329 char accent = mComposing.charAt(mComposing.length() -1 ); in translateKeyDown() 334 mComposing.setLength(mComposing.length()-1); in translateKeyDown() 366 if (mComposing.length() > 0) { in onKeyDown() 433 if (mComposing.length() > 0) { in commitTyped() 434 inputConnection.commitText(mComposing, mComposing.length()); in commitTyped() 500 if (mComposing.length() > 0) { in onKey() 535 if (mComposing.length() > 0) { in onText() [all …]
|
/development/scripts/app_engine_server/gae_shell/static/ |
D | shell.js | 90 if (this.historyCursor == this.history.length - 1) { 103 if (this.historyCursor < this.history.length - 1) { 109 this.historyCursor = this.history.length - 1; 141 this.historyCursor = this.history.length - 1; 179 for (i = 0; i < form.elements.length; i++) {
|
/development/apps/NinePatchLab/src/com/android/ninepatch/ |
D | NinePatchLab.java | 93 mButtons = new Drawable[ids.length]; in NPView() 94 mBGs = new Drawable[bgs.length + 2]; in NPView() 98 for (int i = 0; i < ids.length; i++) { in NPView() 101 for (int i = 0; i < bgs.length; i++) { in NPView() 104 mBGs[bgs.length] = make_custom_bg(); in NPView() 105 mBGs[bgs.length+1] = make_solid_bg(); in NPView() 131 final int N = mButtons.length; in onDraw() 182 mCurrBGIndex = (mCurrBGIndex + 1) % mBGs.length; in onKeyDown()
|
/development/samples/training/multiscreen/newsreader/src/com/example/android/newsreader/ |
D | NewsCategory.java | 38 for (i = 0; i < mArticles.length; i++) { in NewsCategory() 45 return mArticles.length; in getArticleCount()
|
D | NewsSource.java | 44 mCategory = new NewsCategory[CATEGORIES.length]; in NewsSource() 45 for (i = 0; i < CATEGORIES.length; i++) { in NewsSource()
|
/development/samples/ToyVpn/src/com/example/android/toyvpn/ |
D | ToyVpnService.java | 178 int length = in.read(packet.array()); in run() local 179 if (length > 0) { in run() 181 packet.limit(length); in run() 195 length = tunnel.read(packet); in run() 196 if (length > 0) { in run() 200 out.write(packet.array(), 0, length); in run() local 280 int length = tunnel.read(packet); in handshake() local 281 if (length > 0 && packet.get(0) == 0) { in handshake() 282 configure(new String(packet.array(), 1, length - 1).trim()); in handshake()
|
/development/ide/emacs/ |
D | android-compile.el | 64 (unless (> (length topdir) 2) 69 (while (and (> (length default-directory) (length topdir)) 81 (setq default-directory (substring default-directory (length topdir) nil))
|
/development/samples/devbytes/animation/PictureViewer/src/com/example/android/pictureviewer/ |
D | PictureViewer.java | 62 final BitmapDrawable drawables[] = new BitmapDrawable[drawableIDs.length]; in onCreate() 63 for (int i = 0; i < drawableIDs.length; ++i) { in onCreate() 84 (mCurrentDrawable + 1) % drawables.length; in onCreate() 86 (mCurrentDrawable + 1) % drawables.length; in onCreate()
|
/development/tools/idegen/src/com/android/idegen/ |
D | MakeFileParser.java | 123 if (arr.length > 2) { in parse() 128 if (arr.length == 2) { in parse() 159 for (int i = 0; i < value.length(); i++) { in parse() 164 if (token.length() > 0) { in parse() 178 if (token.length() > 0) { in parse() 201 if (value.charAt(value.length() - 1) == '\\') { in parse() 203 return value.substring(0, value.length() - 1); in parse()
|
/development/ndk/platforms/android-3/include/mtd/ |
D | mtd-abi.h | 17 uint32_t length; member 22 uint32_t length; member 74 uint32_t length; member 107 uint32_t length; member
|
/development/samples/SpellChecker/HelloSpellChecker/src/com/example/android/hellospellchecker/ |
D | HelloSpellCheckerActivity.java | 90 final StringBuilder sb, final SuggestionsInfo si, final int length, final int offset) { in dumpSuggestionsInfoInternal() argument 101 if (length != NOT_A_LENGTH) { in dumpSuggestionsInfoInternal() 102 sb.append(" length = " + length + ", offset = " + offset); in dumpSuggestionsInfoInternal() 118 for (int i = 0; i < arg0.length; ++i) { in onGetSuggestions() 144 for (int i = 0; i < arg0.length; ++i) { in onGetSentenceSuggestions()
|
/development/cmds/monkey/src/com/android/commands/monkey/ |
D | MonkeySourceScript.java | 211 String value = line.substring(HEADER_COUNT.length() + 1).trim(); in readHeader() 219 String value = line.substring(HEADER_COUNT.length() + 1).trim(); in readHeader() 281 if (s.indexOf(EVENT_KEYWORD_KEY) >= 0 && args.length == 8) { in handleEvent() 306 && args.length == 12) { in handleEvent() 343 && args.length == 13) { in handleEvent() 420 if ((s.indexOf(EVENT_KEYWORD_ROTATION) >= 0) && args.length == 2) { in handleEvent() 437 if ((s.indexOf(EVENT_KEYWORD_TAP) >= 0) && args.length >= 2) { in handleEvent() 442 if (args.length == 3) { in handleEvent() 468 if ((s.indexOf(EVENT_KEYWORD_PRESSANDHOLD) >= 0) && args.length == 3) { in handleEvent() 497 if ((s.indexOf(EVENT_KEYWORD_DRAG) >= 0) && args.length == 5) { in handleEvent() [all …]
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
D | CreateBitmap.java | 65 return BitmapFactory.decodeByteArray(array, 0, array.length); in codec() 99 mJPEG = new Bitmap[mBitmaps.length]; in SampleView() 100 mPNG = new Bitmap[mBitmaps.length]; in SampleView() 101 for (int i = 0; i < mBitmaps.length; i++) { in SampleView() 110 for (int i = 0; i < mBitmaps.length; i++) { in onDraw()
|
/development/samples/Snake/src/com/example/android/snake/ |
D | BackgroundView.java | 61 int[] mFillColors = new int[mVertexPoints.length]; in onDraw() 63 for (int triangle = 0; triangle < mColors.length; triangle++) { in onDraw() 68 canvas.drawVertices(Canvas.VertexMode.TRIANGLES, mVertexPoints.length, mVertexPoints, in onDraw()
|