/frameworks/base/telephony/common/com/android/internal/telephony/util/ |
D | ArrayUtils.java | 40 public static <T> T[] appendElement(Class<T> kind, @Nullable T[] array, T element) { in appendElement() argument 41 return appendElement(kind, array, element, false); in appendElement() 55 public static <T> T[] appendElement(Class<T> kind, @Nullable T[] array, T element, in appendElement() argument 62 result = (T[]) Array.newInstance(kind, end + 1); in appendElement() 66 result = (T[]) Array.newInstance(kind, 1); in appendElement() 82 public static <T> T[] concatElements(Class<T> kind, @Nullable T[]... arrays) { in concatElements() argument 84 return createEmptyArray(kind); in concatElements() 98 return createEmptyArray(kind); in concatElements() 101 final T[] all = (T[]) Array.newInstance(kind, totalLength); in concatElements() 113 private static @NonNull <T> T[] createEmptyArray(Class<T> kind) { in createEmptyArray() argument [all …]
|
/frameworks/ml/nn/tools/api/ |
D | types.spec | 5 %kind ndk 53 %/kind 55 %kind hal* 84 %/kind 86 %kind hal_1.0 hal_1.1 100 %/kind 102 %kind hal_1.2 hal_1.3 105 %/kind 107 %kind hal_1.2 111 %/kind [all …]
|
D | generate_api.sh | 34 typeset -r kind="$1" in="$2" out="$3" 35 echo "=== $kind" 36 ${DRYRUN} ${TOOL} --kind ${kind} --specification ${SPECFILE} --template ${in} --out ${out}
|
D | README.md | 31 * `--kind KIND` token identifying kind of file to generate 33 The "kind" is an arbitrary token that the specification file can reference with 34 the `%kind` directive to help generate different text in different situations. 94 A *conditional region* is a sequence of lines immediately preceded by the `%kind 95 *list*` directive and immediately followed by the `%/kind` directive. The 96 `%kind` directive establishes a condition state **on** or **off** (see the 177 #### `%kind *list*`, `%else`, `%/kind` 179 `%kind *list*` creates a *conditional region* terminated by `%/kind`. 185 * One of the simple pattern tokens equals the "kind" 186 * One of the wildcard pattern tokens less the `*` is a prefix of the "kind" [all …]
|
D | generate_api.py | 47 def __init__(self, filename, kind): argument 54 self.kind = kind 111 if re.search("^" + re.escape(wildcard_match[1]), self.kind): 122 return self.kind in self.kinds[lowest_pos:] 129 if pattern == self.kind: 267 assert self.kind in kinds, "kind \"" + self.kind + "\" is not listed on " + self.context() 357 specification = Specification(args.specification, args.kind)
|
/frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/ |
D | Relation.java | 43 private Relation(String kind, String detail) { in Relation() argument 44 mKind = kind; in Relation() 69 public static Relation create(@NonNull String kind, @NonNull String detail) in create() argument 71 if (!KIND_PATTERN.matcher(kind).matches() || !DETAIL_PATTERN.matcher(detail).matches()) { in create() 74 return new Relation(kind, detail); in create()
|
/frameworks/compile/mclinker/lib/LD/ |
D | LDSection.cpp | 88 assert(LDFileFormat::Relocation != kind() && LDFileFormat::EhFrame != kind()); in hasSectionData() 93 assert(LDFileFormat::Relocation == kind()); in hasRelocData() 98 assert(LDFileFormat::EhFrame == kind()); in hasEhFrame() 103 assert(LDFileFormat::DebugString == kind()); in hasDebugString()
|
D | GarbageCollection.cpp | 63 if (pSection.kind() == LDFileFormat::TEXT || in mayProcessGC() 64 pSection.kind() == LDFileFormat::DATA || in mayProcessGC() 65 pSection.kind() == LDFileFormat::BSS || in mayProcessGC() 66 pSection.kind() == LDFileFormat::GCCExceptTable) in mayProcessGC() 138 if ((LDFileFormat::Ignore == reloc_sect->kind()) || in setUpReachedSections() 351 if (LDFileFormat::Ignore == reloc_sect->getLink()->kind()) in stripSections()
|
D | ELFReaderIf.cpp | 55 LDFileFormat::Ignore == pInput.context()->getSection(pShndx)->kind()) in getSymDesc() 113 if (sect_hdr->kind() == LDFileFormat::Ignore) in getSymFragmentRef() 116 if (sect_hdr->kind() == LDFileFormat::Group) in getSymFragmentRef()
|
D | EhFrameReader.cpp | 57 result.kind = Terminator; in scan() 81 result.kind = CIE; in scan() 83 result.kind = FDE; in scan() 139 if (!transition[cur_state][token.kind](pEhFrame, entry, token)) { in read() 153 cur_state = autometa[cur_state][token.kind]; in read()
|
/frameworks/ml/nn/common/ |
D | GraphDump.cpp | 172 const char* kind = nullptr; in graphDump() local 176 kind = "COPY"; in graphDump() 179 kind = "REF"; in graphDump() 188 kind = "NO"; in graphDump() 191 kind = "SUBGRAPH"; in graphDump() 201 if (kind) { in graphDump() 202 dump << ": " << kind; in graphDump()
|
/frameworks/base/core/java/com/android/internal/util/ |
D | ArrayUtils.java | 120 public static <T> T[] emptyArray(Class<T> kind) { in emptyArray() argument 121 if (kind == Object.class) { in emptyArray() 125 int bucket = (kind.hashCode() & 0x7FFFFFFF) % CACHE_SIZE; in emptyArray() 128 if (cache == null || cache.getClass().getComponentType() != kind) { in emptyArray() 129 cache = Array.newInstance(kind, 0); in emptyArray() 324 public static @NonNull <T> T[] concatElements(Class<T> kind, @Nullable T[] a, @Nullable T[] b) { in concatElements() argument 328 if (kind == String.class) { in concatElements() 330 } else if (kind == Object.class) { in concatElements() 334 final T[] res = (T[]) Array.newInstance(kind, an + bn); in concatElements() 346 public static @NonNull <T> T[] appendElement(Class<T> kind, @Nullable T[] array, T element) { in appendElement() argument [all …]
|
/frameworks/base/core/java/android/text/method/ |
D | DigitsKeyListener.java | 123 final int kind = (mSign ? SIGN : 0) | (mDecimal ? DECIMAL : 0); in setToCompat() local 124 mAccepted = COMPATIBILITY_CHARACTERS[kind]; in setToCompat() 129 final int kind = (mSign ? SIGN : 0) | (mDecimal ? DECIMAL : 0); in calculateNeedForAdvancedInput() local 130 mNeedsAdvancedInput = !ArrayUtils.containsAll(COMPATIBILITY_CHARACTERS[kind], mAccepted); in calculateNeedForAdvancedInput() 266 final int kind = (sign ? SIGN : 0) | (decimal ? DECIMAL : 0); in getInstance() local 269 if (cachedValue != null && cachedValue[kind] != null) { in getInstance() 270 return cachedValue[kind]; in getInstance() 276 return cachedValue[kind] = new DigitsKeyListener(locale, sign, decimal); in getInstance()
|
D | TextKeyListener.java | 193 int kind = kmap.getKeyboardType(); in getKeyListener() local 195 if (kind == KeyCharacterMap.ALPHA) { in getKeyListener() 197 } else if (kind == KeyCharacterMap.NUMERIC) { in getKeyListener() 199 } else if (kind == KeyCharacterMap.FULL in getKeyListener() 200 || kind == KeyCharacterMap.SPECIAL_FUNCTION) { in getKeyListener()
|
/frameworks/base/core/java/android/text/ |
D | SpannableStringInternal.java | 338 public <T> T[] getSpans(int queryStart, int queryEnd, Class<T> kind) { in getSpans() argument 368 if (kind != null && kind != Object.class && !kind.isInstance(spans[i])) { in getSpans() 377 ret = (Object[]) Array.newInstance(kind, spanCount - i + 1); in getSpans() 403 return (T[]) ArrayUtils.emptyArray(kind); in getSpans() 406 ret = (Object[]) Array.newInstance(kind, 1); in getSpans() 414 Object[] nret = (Object[]) Array.newInstance(kind, count); in getSpans() 420 public int nextSpanTransition(int start, int limit, Class kind) { in nextSpanTransition() argument 425 if (kind == null) { in nextSpanTransition() 426 kind = Object.class; in nextSpanTransition() 433 if (st > start && st < limit && kind.isInstance(spans[i])) in nextSpanTransition() [all …]
|
D | AlteredCharSequence.java | 68 public <T> T[] getSpans(int start, int end, Class<T> kind) { in getSpans() argument 69 return mSpanned.getSpans(start, end, kind); in getSpans() 84 public int nextSpanTransition(int start, int end, Class kind) { in nextSpanTransition() argument 85 return mSpanned.nextSpanTransition(start, end, kind); in nextSpanTransition()
|
D | SpannableStringBuilder.java | 848 public <T> T[] getSpans(int queryStart, int queryEnd, @Nullable Class<T> kind) { in getSpans() argument 849 return getSpans(queryStart, queryEnd, kind, true); in getSpans() 867 public <T> T[] getSpans(int queryStart, int queryEnd, @Nullable Class<T> kind, in getSpans() argument 869 if (kind == null) return (T[]) ArrayUtils.emptyArray(Object.class); in getSpans() 870 if (mSpanCount == 0) return ArrayUtils.emptyArray(kind); in getSpans() 871 int count = countSpans(queryStart, queryEnd, kind, treeRoot()); in getSpans() 873 return ArrayUtils.emptyArray(kind); in getSpans() 877 T[] ret = (T[]) Array.newInstance(kind, count); in getSpans() 880 getSpansRec(queryStart, queryEnd, kind, treeRoot(), ret, prioSortBuffer, in getSpans() 890 private int countSpans(int queryStart, int queryEnd, Class kind, int i) { in countSpans() argument [all …]
|
/frameworks/base/media/java/android/media/ |
D | ThumbnailUtils.java | 79 private static Size convertKind(int kind) { in convertKind() argument 80 if (kind == ThumbnailConstants.MICRO_KIND) { in convertKind() 82 } else if (kind == ThumbnailConstants.FULL_SCREEN_KIND) { in convertKind() 84 } else if (kind == ThumbnailConstants.MINI_KIND) { in convertKind() 87 throw new IllegalArgumentException("Unsupported kind: " + kind); in convertKind() 131 public static @Nullable Bitmap createAudioThumbnail(@NonNull String filePath, int kind) { in createAudioThumbnail() argument 133 return createAudioThumbnail(new File(filePath), convertKind(kind), null); in createAudioThumbnail() 223 public static @Nullable Bitmap createImageThumbnail(@NonNull String filePath, int kind) { in createImageThumbnail() argument 225 return createImageThumbnail(new File(filePath), convertKind(kind), null); in createImageThumbnail() 326 public static @Nullable Bitmap createVideoThumbnail(@NonNull String filePath, int kind) { in createVideoThumbnail() argument [all …]
|
/frameworks/wilhelm/src/ |
D | ThreadPool.cpp | 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()
|
/frameworks/native/opengl/libs/EGL/ |
D | Loader.cpp | 434 static void* load_system_driver(const char* kind, const char* suffix, const bool exact) { in load_system_driver() argument 496 std::string libraryName = std::string("lib") + kind; in load_system_driver() 529 static void* load_angle_from_namespace(const char* kind, android_namespace_t* ns) { in load_angle_from_namespace() argument 535 std::string name = std::string("lib") + kind + "_angle.so"; in load_angle_from_namespace() 549 static void* load_angle(const char* kind, android_namespace_t* ns, egl_connection_t* cnx) { in load_angle() argument 553 so = load_angle_from_namespace(kind, ns); in load_angle() 560 ALOGV("Loaded ANGLE %s library for '%s' (instead of native)", kind, in load_angle() 603 ALOGV("Loaded native %s library for '%s' (instead of ANGLE)", kind, in load_angle() 612 static void* load_updated_driver(const char* kind, android_namespace_t* ns) { in load_updated_driver() argument 624 std::string name = std::string("lib") + kind + "_" + prop + ".so"; in load_updated_driver()
|
/frameworks/compile/mclinker/include/mcld/Script/ |
D | StrToken.h | 38 Kind kind() const { return m_Kind; } in kind() function 43 return pToken->kind() == StrToken::String; in classof()
|
/frameworks/av/media/codec2/vndk/util/ |
D | C2Debug.cpp | 90 i.kind() == C2Param::STRUCT ? 'S' : in attribParamIndex() 91 i.kind() == C2Param::INFO ? 'i' : in attribParamIndex() 92 i.kind() == C2Param::TUNING ? 't' : in attribParamIndex() 93 i.kind() == C2Param::SETTING ? 's' : in attribParamIndex() 94 i.kind() == C2Param::NONE ? '-' : '?') in attribParamIndex()
|
/frameworks/base/core/tests/coretests/src/android/text/ |
D | TextUtilsTest.java | 297 TextUtils.TruncateAt kind = null; in testEllipsize() local 301 kind = TextUtils.TruncateAt.START; in testEllipsize() 305 kind = TextUtils.TruncateAt.END; in testEllipsize() 309 kind = TextUtils.TruncateAt.MIDDLE; in testEllipsize() 313 String out1 = TextUtils.ellipsize(s1, p, i, kind).toString(); in testEllipsize() 314 String out2 = TextUtils.ellipsize(s2, p, i, kind).toString(); in testEllipsize() 315 String out3 = TextUtils.ellipsize(s3, p, i, kind).toString(); in testEllipsize() 317 String keep1 = TextUtils.ellipsize(s1, p, i, kind, true, null).toString(); in testEllipsize() 318 String keep2 = TextUtils.ellipsize(s2, p, i, kind, true, null).toString(); in testEllipsize() 319 String keep3 = TextUtils.ellipsize(s3, p, i, kind, true, null).toString(); in testEllipsize()
|
/frameworks/compile/mclinker/lib/Object/ |
D | ObjectLinker.cpp | 343 switch ((*sect)->kind()) { in mergeSections() 357 if ((*sect)->getLink()->kind() == LDFileFormat::Ignore || in mergeSections() 358 (*sect)->getLink()->kind() == LDFileFormat::Folded) in mergeSections() 463 .kind() || in addSymbolToOutput() 470 .kind())) in addSymbolToOutput() 593 if (LDFileFormat::Ignore == (*rs)->kind() || !(*rs)->hasRelocData()) in scanRelocations() 797 if (LDFileFormat::Ignore == (*rs)->kind() || !(*rs)->hasRelocData()) in relocation() 815 .kind() == LDFileFormat::DebugString) { in relocation() 881 if (LDFileFormat::Ignore == (*rs)->kind() || !(*rs)->hasRelocData()) in normalSyncRelocationResult() 933 if (LDFileFormat::Relocation != (*sectIter)->kind()) in partialSyncRelocationResult()
|
/frameworks/compile/mclinker/lib/Target/ |
D | GNULDBackend.cpp | 223 switch (section->kind()) { in initStandardSymbols() 1309 if (LDFileFormat::Null == pSectHdr.kind()) in getSectionOrder() 1322 switch (pSectHdr.kind()) { in getSectionOrder() 1763 LDFileFormat::Null != sect->kind()) in createProgramHdrs() 1768 (*out)->getSection()->kind() != LDFileFormat::Null) in createProgramHdrs() 1773 if (LDFileFormat::Null == sect->kind()) { in createProgramHdrs() 1780 } else if (sect->kind() == LDFileFormat::BSS && load_seg->isDataSegment() && in createProgramHdrs() 1791 } else if (LDFileFormat::Null == (*prev)->getSection()->kind() && in createProgramHdrs() 1902 (*seg)->front()->kind() == LDFileFormat::Null && (*seg)->size() == 1) in setupProgramHdrs() 1907 (*seg)->front()->kind() == LDFileFormat::Null) { in setupProgramHdrs() [all …]
|