Home
last modified time | relevance | path

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

123456

/frameworks/base/telephony/common/com/android/internal/telephony/util/
DArrayUtils.java40 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/
Dtypes.spec5 %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 …]
Dgenerate_api.sh34 typeset -r kind="$1" in="$2" out="$3"
35 echo "=== $kind"
36 ${DRYRUN} ${TOOL} --kind ${kind} --specification ${SPECFILE} --template ${in} --out ${out}
DREADME.md31 * `--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 …]
Dgenerate_api.py47 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/
DRelation.java43 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/
DLDSection.cpp88 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()
DELFReaderIf.cpp55 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()
DGarbageCollection.cpp63 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()
DEhFrameReader.cpp57 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/base/core/java/com/android/internal/util/
DArrayUtils.java120 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()
141 public static @NonNull <T> T[] emptyIfNull(@Nullable T[] items, Class<T> kind) { in emptyIfNull() argument
142 return items != null ? items : emptyArray(kind); in emptyIfNull()
339 public static @NonNull <T> T[] concatElements(Class<T> kind, @Nullable T[]... arrays) { in concatElements() argument
341 return createEmptyArray(kind); in concatElements()
355 return createEmptyArray(kind); in concatElements()
[all …]
/frameworks/ml/nn/common/
DGraphDump.cpp172 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/android/text/method/
DDigitsKeyListener.java123 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()
DTextKeyListener.java193 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/
DAlteredCharSequence.java68 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()
DSpannableStringInternal.java339 public <T> T[] getSpans(int queryStart, int queryEnd, Class<T> kind) { in getSpans() argument
369 if (kind != null && kind != Object.class && !kind.isInstance(spans[i])) { in getSpans()
378 ret = (Object[]) Array.newInstance(kind, spanCount - i + 1); in getSpans()
404 return (T[]) ArrayUtils.emptyArray(kind); in getSpans()
407 ret = (Object[]) Array.newInstance(kind, 1); in getSpans()
415 Object[] nret = (Object[]) Array.newInstance(kind, count); in getSpans()
421 public int nextSpanTransition(int start, int limit, Class kind) { in nextSpanTransition() argument
426 if (kind == null) { in nextSpanTransition()
427 kind = Object.class; in nextSpanTransition()
434 if (st > start && st < limit && kind.isInstance(spans[i])) in nextSpanTransition()
[all …]
DSpannableStringBuilder.java848 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/compile/mclinker/include/mcld/Script/
DStrToken.h38 Kind kind() const { return m_Kind; } in kind() function
43 return pToken->kind() == StrToken::String; in classof()
/frameworks/wilhelm/src/
DThreadPool.cpp37 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/layoutlib/bridge/tests/src/com/android/ide/common/resources/deprecated/
DResourceFolder.java66 public ResourceFile processFile(IAbstractFile file, ResourceDeltaKind kind, in processFile() argument
72 if (kind != ResourceDeltaKind.REMOVED) { in processFile()
79 if (kind != ResourceDeltaKind.REMOVED) { in processFile()
/frameworks/base/services/core/jni/
Dcom_android_server_pm_PackageManagerShellCommandDataLoader.cpp209 IncFsBlockKind kind = INCFS_BLOCK_KIND_DATA; member
249 .kind = INCFS_BLOCK_KIND_HASH, in openLocalFile()
297 .kind = INCFS_BLOCK_KIND_HASH, in openInputs()
460 if (!copyToIncFs(incfsFd, input.size, input.kind, input.fd, input.waitOnEof, in onPrepareImage()
480 bool copyToIncFs(borrowed_fd incfsFd, IncFsSize size, IncFsBlockKind kind, in copyToIncFs() argument
490 if (!flashToIncFs(incfsFd, kind, false, &blockIdx, buffer, blocks)) { in copyToIncFs()
518 if (!buffer->empty() && !flashToIncFs(incfsFd, kind, true, &blockIdx, buffer, blocks)) { in copyToIncFs()
524 bool flashToIncFs(borrowed_fd incfsFd, IncFsBlockKind kind, bool eof, IncFsBlockIndex* blockIdx, in flashToIncFs() argument
533 .kind = kind, in flashToIncFs()
546 .kind = kind, in flashToIncFs()
[all …]
/frameworks/base/media/java/android/media/
DThumbnailUtils.java79 private static Size convertKind(int kind) { in convertKind() argument
80 return MediaStore.Images.Thumbnails.getKindSize(kind); in convertKind()
123 public static @Nullable Bitmap createAudioThumbnail(@NonNull String filePath, int kind) { in createAudioThumbnail() argument
125 return createAudioThumbnail(new File(filePath), convertKind(kind), null); in createAudioThumbnail()
221 public static @Nullable Bitmap createImageThumbnail(@NonNull String filePath, int kind) { in createImageThumbnail() argument
223 return createImageThumbnail(new File(filePath), convertKind(kind), null); in createImageThumbnail()
330 public static @Nullable Bitmap createVideoThumbnail(@NonNull String filePath, int kind) { in createVideoThumbnail() argument
332 return createVideoThumbnail(new File(filePath), convertKind(kind), null); in createVideoThumbnail()
/frameworks/av/media/codec2/vndk/util/
DC2Debug.cpp90 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/
DTextUtilsTest.java297 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/av/media/codec2/sfplugin/tests/
DCCodecConfig_test.cpp65 C2Component::kind_t kind, in init() argument
69 std::make_unique<Configurable>(mReflector, domain, kind, mediaType)); in init()
85 C2Component::kind_t kind, in Configurable() argument
88 mImpl(reflector, domain, kind, mediaType) { in Configurable()
121 C2Component::kind_t kind, in Impl() argument
134 .withConstValue(new C2ComponentKindSetting(kind))
159 bool isEncoder = kind == C2Component::KIND_ENCODER;

123456