Home
last modified time | relevance | path

Searched refs:kind (Results 1 – 25 of 127) sorted by relevance

123456

/frameworks/base/core/java/com/android/internal/util/
DArrayUtils.java105 public static <T> T[] emptyArray(Class<T> kind) { in emptyArray() argument
106 if (kind == Object.class) { in emptyArray()
110 int bucket = ((System.identityHashCode(kind) / 8) & 0x7FFFFFFF) % CACHE_SIZE; in emptyArray()
113 if (cache == null || cache.getClass().getComponentType() != kind) { in emptyArray()
114 cache = Array.newInstance(kind, 0); in emptyArray()
185 public static <T> T[] appendElement(Class<T> kind, T[] array, T element) { in appendElement() argument
190 result = (T[])Array.newInstance(kind, end + 1); in appendElement()
194 result = (T[])Array.newInstance(kind, 1); in appendElement()
211 public static <T> T[] removeElement(Class<T> kind, T[] array, T element) { in removeElement() argument
219 T[] result = (T[])Array.newInstance(kind, length - 1); in removeElement()
/frameworks/base/core/java/android/text/method/
DDigitsKeyListener.java84 int kind = (sign ? SIGN : 0) | (decimal ? DECIMAL : 0); in DigitsKeyListener() local
85 mAccepted = CHARACTERS[kind]; in DigitsKeyListener()
101 int kind = (sign ? SIGN : 0) | (decimal ? DECIMAL : 0); in getInstance() local
103 if (sInstance[kind] != null) in getInstance()
104 return sInstance[kind]; in getInstance()
106 sInstance[kind] = new DigitsKeyListener(sign, decimal); in getInstance()
107 return sInstance[kind]; in getInstance()
DTextKeyListener.java188 int kind = kmap.getKeyboardType(); in getKeyListener() local
190 if (kind == KeyCharacterMap.ALPHA) { in getKeyListener()
192 } else if (kind == KeyCharacterMap.NUMERIC) { in getKeyListener()
194 } else if (kind == KeyCharacterMap.FULL in getKeyListener()
195 || kind == KeyCharacterMap.SPECIAL_FUNCTION) { in getKeyListener()
/frameworks/base/core/java/android/text/
DSpannableStringInternal.java205 public <T> T[] getSpans(int queryStart, int queryEnd, Class<T> kind) { in getSpans() argument
215 if (kind != null && !kind.isInstance(spans[i])) { in getSpans()
243 ret = (Object[]) Array.newInstance(kind, spanCount - i + 1); in getSpans()
269 return (T[]) ArrayUtils.emptyArray(kind); in getSpans()
272 ret = (Object[]) Array.newInstance(kind, 1); in getSpans()
280 Object[] nret = (Object[]) Array.newInstance(kind, count); in getSpans()
285 public int nextSpanTransition(int start, int limit, Class kind) { in nextSpanTransition() argument
290 if (kind == null) { in nextSpanTransition()
291 kind = Object.class; in nextSpanTransition()
298 if (st > start && st < limit && kind.isInstance(spans[i])) in nextSpanTransition()
[all …]
DAlteredCharSequence.java66 public <T> T[] getSpans(int start, int end, Class<T> kind) { in getSpans() argument
67 return mSpanned.getSpans(start, end, kind); in getSpans()
82 public int nextSpanTransition(int start, int end, Class kind) { in nextSpanTransition() argument
83 return mSpanned.nextSpanTransition(start, end, kind); in nextSpanTransition()
DSpannableStringBuilder.java770 public <T> T[] getSpans(int queryStart, int queryEnd, Class<T> kind) { in getSpans() argument
771 if (kind == null) return ArrayUtils.emptyArray(kind); in getSpans()
810 if (!kind.isInstance(spans[i])) continue; in getSpans()
819 ret = (T[]) Array.newInstance(kind, spanCount - i + 1); in getSpans()
847 return ArrayUtils.emptyArray(kind); in getSpans()
851 ret = (T[]) Array.newInstance(kind, 1); in getSpans()
860 T[] nret = (T[]) Array.newInstance(kind, count); in getSpans()
870 public int nextSpanTransition(int start, int limit, Class kind) { in nextSpanTransition() argument
878 if (kind == null) { in nextSpanTransition()
879 kind = Object.class; in nextSpanTransition()
[all …]
/frameworks/compile/mclinker/lib/LD/
DLDSection.cpp94 assert(LDFileFormat::Relocation != kind() && LDFileFormat::EhFrame != kind()); in hasSectionData()
100 assert(LDFileFormat::Relocation == kind()); in hasRelocData()
106 assert(LDFileFormat::EhFrame == kind()); in hasEhFrame()
DEhFrameReader.cpp60 result.kind = Terminator; in scan()
83 result.kind = CIE; in scan()
85 result.kind = FDE; in scan()
142 if (!transition[cur_state][token.kind](pEhFrame, *entry, token)) { in read()
157 cur_state = autometa[cur_state][token.kind]; in read()
DELFReaderIf.cpp59 LDFileFormat::Ignore == pInput.context()->getSection(pShndx)->kind()) in getSymDesc()
122 if (LDFileFormat::Ignore == sect_hdr->kind()) in getSymFragmentRef()
125 if (LDFileFormat::Group == sect_hdr->kind()) in getSymFragmentRef()
DELFSegment.cpp44 if ((*it)->kind() != LDFileFormat::BSS) { in isDataSegment()
59 if ((*it)->kind() != LDFileFormat::BSS) in isBssSegment()
DDiagnostic.cpp124 DiagnosticEngine::ArgumentKind kind = getArgKind(arg_no); in format() local
125 switch (kind) { in format()
DELFObjectReader.cpp108 switch((*section)->kind()) { in readSections()
178 if (NULL == link_sect || LDFileFormat::Ignore == link_sect->kind()) { in readSections()
308 if (LDFileFormat::Ignore == (*rs)->kind()) in readRelocations()
/frameworks/base/core/java/android/provider/
DMediaStore.java606 static Bitmap getThumbnail(ContentResolver cr, long origId, long groupId, int kind, in getThumbnail() argument
619 if (kind == MICRO_KIND) { in getThumbnail()
632 } else if (kind == MINI_KIND) { in getThumbnail()
653 if (kind == MICRO_KIND) { in getThumbnail()
665 } else if (kind == MINI_KIND) { in getThumbnail()
670 throw new IllegalArgumentException("Unsupported kind: " + kind); in getThumbnail()
676 + ", kind=" + kind + ", isVideo="+isVideo); in getThumbnail()
689 bitmap = ThumbnailUtils.createVideoThumbnail(filePath, kind); in getThumbnail()
691 bitmap = ThumbnailUtils.createImageThumbnail(filePath, kind); in getThumbnail()
841 int kind) { in StoreThumbnail() argument
[all …]
/frameworks/base/core/tests/coretests/src/android/text/
DTextUtilsTest.java279 TextUtils.TruncateAt kind = null; in testEllipsize() local
283 kind = TextUtils.TruncateAt.START; in testEllipsize()
287 kind = TextUtils.TruncateAt.END; in testEllipsize()
291 kind = TextUtils.TruncateAt.MIDDLE; in testEllipsize()
295 String out1 = TextUtils.ellipsize(s1, p, i, kind).toString(); in testEllipsize()
296 String out2 = TextUtils.ellipsize(s2, p, i, kind).toString(); in testEllipsize()
297 String out3 = TextUtils.ellipsize(s3, p, i, kind).toString(); in testEllipsize()
299 String keep1 = TextUtils.ellipsize(s1, p, i, kind, true, null).toString(); in testEllipsize()
300 String keep2 = TextUtils.ellipsize(s2, p, i, kind, true, null).toString(); in testEllipsize()
301 String keep3 = TextUtils.ellipsize(s3, p, i, kind, true, null).toString(); in testEllipsize()
/frameworks/wilhelm/src/
DThreadPool.c37 ClosureKind kind = closure.mKind; in ThreadPool_start() local
41 switch (kind) { in ThreadPool_start()
67 SL_LOGE("Unexpected callback kind %d", kind); in ThreadPool_start()
250 SLresult ThreadPool_add(ThreadPool *tp, ClosureKind kind, ClosureHandler_generic handler, in ThreadPool_add() argument
259 closure->mKind = kind; in ThreadPool_add()
260 switch(kind) { in ThreadPool_add()
271 SL_LOGE("ThreadPool_add() invalid closure kind %d", kind); in ThreadPool_add()
/frameworks/compile/mclinker/lib/Fragment/
DFragmentGraph.cpp154 sym->fragRef()->frag()->getParent()->getSection().kind(); in setNodeSlots()
182 if (LDFileFormat::Ignore == (*rs)->kind() || !(*rs)->hasRelocData()) in createRegularEdges()
200 reloc->targetRef().frag()->getParent()->getSection().kind(); in createRegularEdges()
209 sym->outSymbol()->fragRef()->frag()->getParent()->getSection().kind(); in createRegularEdges()
304 if (LDFileFormat::Regular != section->kind() && in createRegularNodes()
305 LDFileFormat::BSS != section->kind()) in createRegularNodes()
DFragmentLinker.cpp110 if (LDFileFormat::Ignore == (*rs)->kind() || !(*rs)->hasRelocData()) in applyRelocations()
159 if (LDFileFormat::Ignore == (*rs)->kind() || !(*rs)->hasRelocData()) in normalSyncRelocationResult()
202 if (LDFileFormat::Relocation != (*sectIter)->kind()) in partialSyncRelocationResult()
/frameworks/native/opengl/libs/EGL/
DLoader.cpp261 void *Loader::load_driver(const char* kind, in load_driver() argument
266 static String8 find(const char* kind) { in load_driver() argument
269 pattern.appendFormat("lib%s", kind); in load_driver()
355 String8 absolutePath = MatchFile::find(kind); in load_driver()
DLoader.h65 void *load_driver(const char* kind, egl_connection_t* cnx, uint32_t mask);
/frameworks/base/media/java/android/media/
DThumbnailUtils.java90 public static Bitmap createImageThumbnail(String filePath, int kind) { in createImageThumbnail() argument
91 boolean wantMini = (kind == Images.Thumbnails.MINI_KIND); in createImageThumbnail()
142 if (kind == Images.Thumbnails.MICRO_KIND) { in createImageThumbnail()
158 public static Bitmap createVideoThumbnail(String filePath, int kind) { in createVideoThumbnail() argument
178 if (kind == Images.Thumbnails.MINI_KIND) { in createVideoThumbnail()
189 } else if (kind == Images.Thumbnails.MICRO_KIND) { in createVideoThumbnail()
/frameworks/compile/mclinker/include/mcld/MC/
DZOption.h55 Kind kind() const in kind() function
/frameworks/base/core/java/android/app/
DNotification.java431 public String[] kind; field in Notification
753 kind = parcel.createStringArray(); // may set kind to null in Notification()
818 final String[] thiskind = this.kind; in cloneInto()
821 final String[] thatkind = that.kind = new String[N]; in cloneInto()
960 parcel.writeStringArray(kind); // ok for null in writeToParcel()
1081 if (this.kind == null) { in toString()
1084 for (int i=0; i<this.kind.length; i++) { in toString()
1086 sb.append(this.kind[i]); in toString()
1823 n.kind = new String[mKindList.size()]; in buildUnstyled()
1824 mKindList.toArray(n.kind); in buildUnstyled()
[all …]
/frameworks/compile/mclinker/lib/Target/
DGNULDBackend.cpp217 switch (section->kind()) { in initStandardSymbols()
863 switch ((*sect)->kind()) { in sizeNamePools()
1351 if (LDFileFormat::Null == pSectHdr.kind()) in getSectionOrder()
1364 switch (pSectHdr.kind()) { in getSectionOrder()
1696 LDFileFormat::Null != (*sect)->kind()) in createProgramHdrs()
1701 if (LDFileFormat::Null == (*sect)->kind()) { in createProgramHdrs()
1710 else if ((*sect)->kind() == LDFileFormat::BSS && in createProgramHdrs()
1796 if ((*sect)->kind() != LDFileFormat::Note || in createProgramHdrs()
1850 LDFileFormat::Null == segment.front()->kind()) in setupProgramHdrs()
1859 if (LDFileFormat::BSS != last_sect->kind()) in setupProgramHdrs()
[all …]
/frameworks/compile/mclinker/lib/Object/
DObjectBuilder.cpp61 pInputSection.kind(), in MergeSection()
68 switch (target->kind()) { in MergeSection()
/frameworks/base/core/java/android/text/format/
DDateFormat.java526 private static String getDayOfWeekString(LocaleData ld, int day, int count, int kind) { in getDayOfWeekString() argument
527 boolean standalone = (kind == 'c'); in getDayOfWeekString()
537 private static String getMonthString(LocaleData ld, int month, int count, int kind) { in getMonthString() argument
538 boolean standalone = (kind == 'L'); in getMonthString()

123456