/frameworks/base/core/java/com/android/internal/util/ |
D | ArrayUtils.java | 101 public static <T> T[] emptyArray(Class<T> kind) { in emptyArray() argument 102 if (kind == Object.class) { in emptyArray() 106 int bucket = ((System.identityHashCode(kind) / 8) & 0x7FFFFFFF) % CACHE_SIZE; in emptyArray() 109 if (cache == null || cache.getClass().getComponentType() != kind) { in emptyArray() 110 cache = Array.newInstance(kind, 0); in emptyArray() 161 public static <T> T[] appendElement(Class<T> kind, T[] array, T element) { in appendElement() argument 166 result = (T[])Array.newInstance(kind, end + 1); in appendElement() 170 result = (T[])Array.newInstance(kind, 1); in appendElement() 187 public static <T> T[] removeElement(Class<T> kind, T[] array, T element) { in removeElement() argument 195 T[] result = (T[])Array.newInstance(kind, length - 1); in removeElement()
|
/frameworks/base/core/java/android/text/method/ |
D | DigitsKeyListener.java | 75 int kind = (sign ? SIGN : 0) | (decimal ? DECIMAL : 0); in DigitsKeyListener() local 76 mAccepted = CHARACTERS[kind]; in DigitsKeyListener() 92 int kind = (sign ? SIGN : 0) | (decimal ? DECIMAL : 0); in getInstance() local 94 if (sInstance[kind] != null) in getInstance() 95 return sInstance[kind]; in getInstance() 97 sInstance[kind] = new DigitsKeyListener(sign, decimal); in getInstance() 98 return sInstance[kind]; in getInstance()
|
D | TextKeyListener.java | 188 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/ |
D | SpannableStringInternal.java | 205 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 …]
|
D | AlteredCharSequence.java | 66 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()
|
D | SpannableStringBuilder.java | 770 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 …]
|
D | TextUtils.java | 655 int kind = p.readInt(); 662 if (kind == 1) { 669 kind = p.readInt(); 671 if (kind == 0) 674 switch (kind) { 768 throw new RuntimeException("bogus span encoding " + kind); 984 Class kind, in copySpansFrom() argument 986 if (kind == null) { in copySpansFrom() 987 kind = Object.class; in copySpansFrom() 990 Object[] spans = source.getSpans(start, end, kind); in copySpansFrom()
|
/frameworks/base/core/java/android/provider/ |
D | MediaStore.java | 595 static Bitmap getThumbnail(ContentResolver cr, long origId, long groupId, int kind, in getThumbnail() argument 608 if (kind == MICRO_KIND) { in getThumbnail() 621 } else if (kind == MINI_KIND) { in getThumbnail() 642 if (kind == MICRO_KIND) { in getThumbnail() 654 } else if (kind == MINI_KIND) { in getThumbnail() 659 throw new IllegalArgumentException("Unsupported kind: " + kind); in getThumbnail() 665 + ", kind=" + kind + ", isVideo="+isVideo); in getThumbnail() 678 bitmap = ThumbnailUtils.createVideoThumbnail(filePath, kind); in getThumbnail() 680 bitmap = ThumbnailUtils.createImageThumbnail(filePath, kind); in getThumbnail() 830 int kind) { in StoreThumbnail() argument [all …]
|
/frameworks/base/core/tests/coretests/src/android/text/ |
D | TextUtilsTest.java | 279 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/ |
D | ThreadPool.c | 37 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()
|
D | ThreadPool.h | 88 extern SLresult ThreadPool_add(ThreadPool *tp, ClosureKind kind,
|
/frameworks/compile/mclinker/lib/LD/ |
D | ELFDynObjWriter.cpp | 58 switch(sect->kind()) { in writeDynObj() 86 << sect->kind() in writeDynObj() 95 switch(sect->kind()) { in writeDynObj()
|
D | ELFExecWriter.cpp | 61 switch(sect->kind()) { in writeExecutable() 89 << sect->kind() in writeExecutable() 98 switch(sect->kind()) { in writeExecutable()
|
D | Diagnostic.cpp | 126 DiagnosticEngine::ArgumentKind kind = getArgKind(arg_no); in format() local 127 switch (kind) { in format()
|
D | ELFObjectReader.cpp | 94 switch((*section)->kind()) { in readSections() 255 (*section)->kind() == LDFileFormat::Relocation) { in readRelocations() 265 (*section)->kind() == LDFileFormat::Relocation) { in readRelocations()
|
/frameworks/base/media/java/android/media/ |
D | ThumbnailUtils.java | 90 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/native/opengl/libs/EGL/ |
D | Loader.cpp | 270 void *Loader::load_driver(const char* kind, const char *tag, in load_driver() argument 277 snprintf(driver_absolute_path, PATH_MAX, search1, kind, tag); in load_driver() 279 snprintf(driver_absolute_path, PATH_MAX, search2, kind, tag); in load_driver()
|
D | Loader.h | 66 void *load_driver(const char* kind, const char *tag, egl_connection_t* cnx, uint32_t mask);
|
/frameworks/compile/mclinker/include/mcld/LD/ |
D | ELFReader.tcc | 170 LDFileFormat::Kind kind = getLDSectionKind(sh_type, in readSectionHeaders() local 174 kind, in readSectionHeaders() 195 if (LDFileFormat::NamePool == info->section->kind() || in readSectionHeaders() 196 LDFileFormat::Group == info->section->kind() || in readSectionHeaders() 197 LDFileFormat::Note == info->section->kind()) { in readSectionHeaders() 201 if (LDFileFormat::Relocation == info->section->kind()) { in readSectionHeaders() 219 pInputSectHdr.kind(), in readRegularSection()
|
/frameworks/base/core/java/android/app/ |
D | Notification.java | 431 public String[] kind; field in Notification 590 kind = parcel.createStringArray(); // may set kind to null in Notification() 647 final String[] thiskind = this.kind; in clone() 650 final String[] thatkind = that.kind = new String[N]; in clone() 746 parcel.writeStringArray(kind); // ok for null in writeToParcel() 878 if (this.kind == null) { in toString() 881 for (int i=0; i<this.kind.length; i++) { in toString() 883 sb.append(this.kind[i]); in toString() 1612 n.kind = new String[mKindList.size()]; in buildUnstyled() 1613 mKindList.toArray(n.kind); in buildUnstyled() [all …]
|
/frameworks/compile/mclinker/include/mcld/MC/ |
D | ZOption.h | 55 Kind kind() const in kind() function
|
/frameworks/av/services/camera/libcameraservice/ |
D | CameraService.cpp | 378 void CameraService::playSound(sound_kind kind) { in playSound() argument 379 LOG1("playSound(%d)", kind); in playSound() 381 sp<MediaPlayer> player = mSoundPlayer[kind]; in playSound()
|
/frameworks/base/tools/aidl/ |
D | aidl.cpp | 267 kind_to_string(int kind) argument 269 switch (kind) 405 check_method(const char* filename, int kind, method_type* m) argument 419 if (kind != INTERFACE_TYPE_RPC) { 425 if (!(kind == INTERFACE_TYPE_BINDER ? returnType->CanWriteToParcel() 471 if (!(kind == INTERFACE_TYPE_BINDER ? t->CanWriteToParcel() : t->CanWriteToRpcData())) {
|
/frameworks/av/media/libstagefright/ |
D | AVIExtractor.cpp | 619 Track::Kind kind = Track::OTHER; in parseStreamHeader() local 636 kind = Track::VIDEO; in parseStreamHeader() 642 kind = Track::AUDIO; in parseStreamHeader() 658 track->mKind = kind; in parseStreamHeader() 724 ssize_t trackIndex, Track::Kind kind, uint32_t chunkType) { in IsCorrectChunkType() argument 727 switch (kind) { in IsCorrectChunkType()
|
/frameworks/compile/mclinker/lib/MC/ |
D | MCLDOptions.cpp | 83 switch (pOption.kind()) { in addZOption()
|