Home
last modified time | relevance | path

Searched refs:index (Results 1 – 25 of 186) sorted by relevance

12345678

/packages/apps/Browser/src/com/android/browser/
DMeshTracker.java85 int index; in doit1() local
87 index = 10; in doit1()
89 index = 4; in doit1()
91 mCubics[index*2 + 0] = mOrig[index*2 + 0] + dx; in doit1()
92 mCubics[index*2 + 2] = mOrig[index*2 + 2] + dx; in doit1()
95 index = 1; in doit1()
97 index = 7; in doit1()
99 mCubics[index*2 + 1] = mOrig[index*2 + 1] + dy; in doit1()
100 mCubics[index*2 + 3] = mOrig[index*2 + 3] + dy; in doit1()
109 int index; in doit2() local
[all …]
DDots.java72 public void setSelected(int index) {
73 if (index < 0 || index >= MAX_DOTS) return;
80 ((ImageView)getChildAt(index)).setImageResource(R.drawable.page_indicator);
81 mSelected = index;
/packages/apps/Email/src/org/apache/james/mime4j/decoder/
DUnboundedFifoByteBuffer.java192 private int increment(int index) { in increment() argument
193 index++; in increment()
194 if (index >= buffer.length) { in increment()
195 index = 0; in increment()
197 return index; in increment()
206 private int decrement(int index) { in decrement() argument
207 index--; in decrement()
208 if (index < 0) { in decrement()
209 index = buffer.length - 1; in decrement()
211 return index; in decrement()
[all …]
/packages/apps/Email/src/com/android/exchange/utility/
DDuration.java50 int index = 0; in parse() local
60 index++; in parse()
62 index++; in parse()
65 if (len < index) { in parse()
69 c = str.charAt(index); in parse()
73 + index, index); in parse()
75 index++; in parse()
78 for (; index < len; index++) { in parse()
79 c = str.charAt(index); in parse()
102 + c + "' at index=" + index, index); in parse()
/packages/apps/Gallery3D/src/com/cooliris/media/
DPool.java29 int index = --mFreeListIndex; in create() local
30 if (index >= 0 && index < mFreeList.length) { in create()
31 E object = mFreeList[index]; in create()
32 mFreeList[index] = null; in create()
39 int index = mFreeListIndex; in delete() local
40 if (index >= 0 && index < mFreeList.length) { in delete()
41 mFreeList[index] = object; in delete()
DConcurrentPool.java32 final int index = mFreeListIndex.decrementAndGet(); in create() local
33 E object = mFreeList.get(index); in create()
34 mFreeList.set(index, null); in create()
39 final int index = mFreeListIndex.getAndIncrement(); in delete() local
40 while (!mFreeList.compareAndSet(index, null, object)) { in delete()
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DDuration.java58 int index = 0; in parse() local
68 index++; in parse()
71 index++; in parse()
74 if (len < index) { in parse()
78 c = str.charAt(index); in parse()
82 + index); in parse()
84 index++; in parse()
87 for (; index < len; index++) { in parse()
88 c = str.charAt(index); in parse()
118 + c + "' at index=" + index); in parse()
/packages/apps/Nfc/jni/
Dcom_android_nfc.cpp475 int index = 0; in nfc_jni_get_technology_tree() local
488 index = addTechIfNeeded(technologies, handles, libnfctypes, index, in nfc_jni_get_technology_tree()
490 index = addTechIfNeeded(technologies, handles, libnfctypes, index, in nfc_jni_get_technology_tree()
496 index = addTechIfNeeded(technologies, handles, libnfctypes, index, in nfc_jni_get_technology_tree()
498 index = addTechIfNeeded(technologies, handles, libnfctypes, index, in nfc_jni_get_technology_tree()
503 index = addTechIfNeeded(technologies, handles, libnfctypes, in nfc_jni_get_technology_tree()
504 index, MAX_NUM_TECHNOLOGIES, TARGET_TYPE_ISO14443_3A, handle, type); in nfc_jni_get_technology_tree()
511 index = addTechIfNeeded(technologies, handles, libnfctypes, in nfc_jni_get_technology_tree()
512 index, MAX_NUM_TECHNOLOGIES, TARGET_TYPE_ISO14443_4, handle, type); in nfc_jni_get_technology_tree()
513 index = addTechIfNeeded(technologies, handles, libnfctypes, in nfc_jni_get_technology_tree()
[all …]
/packages/apps/Email/src/com/android/email/mail/store/imap/
DImapList.java70 public final boolean is(int index, String s) { in is() argument
71 return is(index, s, false); in is()
77 public final boolean is(int index, String s, boolean prefixMatch) { in is() argument
79 return getStringOrEmpty(index).is(s); in is()
81 return getStringOrEmpty(index).startsWith(s); in is()
89 public final ImapElement getElementOrNone(int index) { in getElementOrNone() argument
90 return (index >= mList.size()) ? ImapElement.NONE : mList.get(index); in getElementOrNone()
97 public final ImapList getListOrEmpty(int index) { in getListOrEmpty() argument
98 ImapElement el = getElementOrNone(index); in getListOrEmpty()
106 public final ImapString getStringOrEmpty(int index) { in getStringOrEmpty() argument
[all …]
/packages/apps/Camera/src/com/android/camera/ui/
DZoomIndicator.java119 public void onZoomChanged(int index, float value, boolean isMoving) { in onZoomChanged() argument
121 mZoomListener.onZoomChanged(index, value, isMoving); in onZoomChanged()
123 if (mZoomIndex != index) onZoomIndexChanged(index); in onZoomChanged()
127 private void onZoomIndexChanged(int index) { in onZoomIndexChanged() argument
128 if (mZoomIndex == index) return; in onZoomIndexChanged()
129 mZoomIndex = index; in onZoomIndexChanged()
137 public void setZoomIndex(int index) { in setZoomIndex() argument
138 if (mZoomIndex == index) return; in setZoomIndex()
140 mZoomController.setZoomIndex(index); in setZoomIndex()
142 onZoomIndexChanged(index); in setZoomIndex()
DOtherSettingsIndicator.java115 public GLView getView(int index) { in getView() argument
117 if (index < adapter.size()) { in getView()
118 return adapter.getView(index); in getView()
120 index -= adapter.size(); in getView()
125 public boolean isSelectable(int index) { in isSelectable() argument
127 if (index < adapter.size()) { in isSelectable()
128 return adapter.isSelectable(index); in isSelectable()
130 index -= adapter.size(); in isSelectable()
167 public GLView getView(int index) { in getView() argument
168 return index == 0 ? mHeader : mItem; in getView()
[all …]
DBasicIndicator.java48 int index = pref.findIndexOfValue( in updateContent() local
50 if (mIndex != index) { in updateContent()
51 mIndex = index; in updateContent()
108 int index = mIndex; in getIcon() local
109 if (mIcon[index] == null) { in getIcon()
111 mIcon[index] = new ResourceTexture( in getIcon()
112 context, mPreference.getLargeIconIds()[index]); in getIcon()
114 return mIcon[index]; in getIcon()
DIndicatorBar.java129 private void setSelectedItem(GLView view, int index) { in setSelectedItem() argument
130 if (index == mSelectedIndex) return; in setSelectedItem()
132 mSelectedIndex = index; in setSelectedItem()
134 if (index == INDEX_NONE) { in setSelectedItem()
137 mSelectedListener.onItemSelected(view, index); in setSelectedItem()
143 public void setSelectedIndex(int index) { in setSelectedIndex() argument
144 if (index == mSelectedIndex) return; in setSelectedIndex()
145 setSelectedItem(index == INDEX_NONE ? null :getComponent(index), index); in setSelectedIndex()
DPreferenceAdapter.java97 int index = position - 1; in onItemSelected() local
99 if (oldIndex != index) { in onItemSelected()
101 pref.setValueIndex(index); in onItemSelected()
110 public GLView getView(int index) { in getView() argument
111 return mContent.get(index); in getView()
114 public boolean isSelectable(int index) { in isSelectable() argument
115 return mContent.get(index) instanceof GLOptionItem; in isSelectable()
/packages/apps/Gallery/src/com/android/camera/gallery/
DImageListUber.java99 public IImage getImageAt(int index) { in getImageAt() argument
100 if (index < 0 || index > getCount()) { in getImageAt()
102 "index " + index + " out of range max is " + getCount()); in getImageAt()
123 if (skipCount + offset > index) { in getImageAt()
124 int subindex = mSkipCounts[which] + (index - skipCount); in getImageAt()
134 if (skipCount == index) { in getImageAt()
175 private void modifySkipCountForDeletedImage(int index) { in modifySkipCountForDeletedImage() argument
180 if (skipCount + offset > index) { in modifySkipCountForDeletedImage()
188 private boolean removeImage(IImage image, int index) { in removeImage() argument
191 modifySkipCountForDeletedImage(index); in removeImage()
[all …]
/packages/apps/Email/src/com/android/email/mail/
DMultipart.java32 public void addBodyPart(BodyPart part, int index) throws MessagingException { in addBodyPart() argument
33 mParts.add(index, part); in addBodyPart()
36 public BodyPart getBodyPart(int index) throws MessagingException { in getBodyPart() argument
37 return mParts.get(index); in getBodyPart()
52 public void removeBodyPart(int index) throws MessagingException { in removeBodyPart() argument
53 mParts.remove(index); in removeBodyPart()
/packages/apps/Launcher2/src/com/android/launcher2/
DAllApps3D.java579 int index = (((int) pos) * columnsCount) + (row * columnsCount) + col;
581 if (index >= mAllAppsList.size()) {
584 return index;
764 int index;
769 index = sRollo.mState.selectedIconIndex;
770 if (index >= 0) {
771 ApplicationInfo info = mAllAppsList.get(index);
774 pos = index;
889 int index = Collections.binarySearch(mAllAppsList, item,
891 if (index < 0) {
[all …]
/packages/apps/Camera/src/com/android/camera/gallery/
DImageListUber.java79 public IImage getImageAt(int index) { in getImageAt() argument
80 if (index < 0 || index > getCount()) { in getImageAt()
82 "index " + index + " out of range max is " + getCount()); in getImageAt()
103 if (skipCount + offset > index) { in getImageAt()
104 int subindex = mSkipCounts[which] + (index - skipCount); in getImageAt()
114 if (skipCount == index) { in getImageAt()
177 public MergeSlot(IImageList list, int index) { in MergeSlot() argument
179 mListIndex = index; in MergeSlot()
/packages/apps/Email/src/org/apache/commons/io/
DHexDump.java60 OutputStream stream, int index) in dump() argument
64 if ((index < 0) || (index >= data.length)) { in dump()
66 "illegal index: " + index + " into array of length " in dump()
72 long display_offset = offset + index; in dump()
75 for (int j = index; j < data.length; j += 16) { in dump()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/voice/
DWaveformImage.java59 int index = start / 2 - delay; in drawWaveform() local
60 if (index < 0) { in drawWaveform()
61 index = 0; in drawWaveform()
63 final int size = endIndex - index; in drawWaveform()
78 final short s = buf.get(index); in drawWaveform()
81 index += delta; in drawWaveform()
/packages/apps/Email/src/org/apache/james/mime4j/field/address/
DMailboxList.java54 public Mailbox get(int index) { in get() argument
55 if (0 > index || size() <= index) in get()
57 return (Mailbox) mailboxes.get(index); in get()
DDomainList.java56 public String get(int index) { in get() argument
57 if (0 > index || size() <= index) in get()
59 return (String) domains.get(index); in get()
/packages/apps/Contacts/src/com/android/contacts/
DScrollingTabWidget.java139 public View getChildTabViewAt(int index) { in getChildTabViewAt() argument
140 return mTabsView.getChildAt(index); in getChildTabViewAt()
197 public void setCurrentTab(int index) { in setCurrentTab() argument
198 if (index < 0 || index >= getTabCount()) { in setCurrentTab()
205 mSelectedTab = index; in setCurrentTab()
230 public void focusCurrentTab(int index) { in focusCurrentTab() argument
231 if (index < 0 || index >= getTabCount()) { in focusCurrentTab()
235 setCurrentTab(index); in focusCurrentTab()
236 getChildTabViewAt(index).requestFocus(); in focusCurrentTab()
/packages/apps/Settings/src/com/android/settings/wifi/
DSummary.java29 int index = state.ordinal(); in get() local
31 if (index >= formats.length || formats[index].length() == 0) { in get()
34 return String.format(formats[index], ssid); in get()
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
DOpenWnnDictionaryImpl.java378 public int setDictionary(int index, int base, int high ) { in setDictionary() argument
380 switch( index ) { in setDictionary()
398 … return OpenWnnDictionaryImplJni.setDictionaryParameter( this.mWnnWork, index, base, high ); in setDictionary()
869 for( int index = 0 ; index < word.length ; index++ ) { in addWordToUserDictionary()
870 … if( word[index].stroke.length() > 0 && word[index].stroke.length() <= MAX_STROKE_LENGTH && in addWordToUserDictionary()
871 … word[index].candidate.length() > 0 && word[index].candidate.length() <= MAX_CANDIDATE_LENGTH ) { in addWordToUserDictionary()
874 DatabaseUtils.appendEscapedSQLString( strokeSQL, word[index].stroke ); in addWordToUserDictionary()
875 … DatabaseUtils.appendEscapedSQLString( candidateSQL, word[index].candidate ); in addWordToUserDictionary()
894 content.put( COLUMN_NAME_STROKE, word[index].stroke ); in addWordToUserDictionary()
895 content.put( COLUMN_NAME_CANDIDATE, word[index].candidate ); in addWordToUserDictionary()
[all …]

12345678