Home
last modified time | relevance | path

Searched refs:needle (Results 1 – 13 of 13) sorted by relevance

/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/
DCollectionUtils.java175 public static int indexOfSubArray(@NonNull byte[] haystack, @NonNull byte[] needle) { in indexOfSubArray() argument
176 for (int i = 0; i < haystack.length - needle.length + 1; i++) { in indexOfSubArray()
178 for (int j = 0; j < needle.length; j++) { in indexOfSubArray()
179 if (haystack[i + j] != needle[j]) { in indexOfSubArray()
230 for (T needle : needles) { in containsAny()
231 if (haystack.contains(needle)) return true; in containsAny()
258 for (T needle : haystack) { in findFirst()
259 if (condition.test(needle)) return needle; in findFirst()
279 final T needle = haystack.get(i); in findLast() local
280 if (condition.test(needle)) return needle; in findLast()
/packages/modules/Virtualization/libs/apkverify/src/
Dtesting.rs20 pub fn assert_contains(haystack: &str, needle: &str) { in assert_contains()
21 assert!(haystack.contains(needle), "{} is not found in {}", needle, haystack); in assert_contains()
/packages/modules/IPsec/tests/cts/src/android/ipsec/ike/cts/
DTunUtils.java124 private static boolean containsSubArray(byte[] haystack, byte[] needle) { in containsSubArray() argument
126 for (int i = 0; i < haystack.length - needle.length + 1; i++) { in containsSubArray()
128 for (int j = 0; j < needle.length; j++) { in containsSubArray()
129 if (haystack[i + j] != needle[j]) { in containsSubArray()
/packages/modules/Virtualization/libs/apkzip/src/
Dziputil.rs118 fn assert_contains(haystack: &str, needle: &str) { in assert_contains()
119 assert!(haystack.contains(needle), "{} is not found in {}", needle, haystack); in assert_contains()
/packages/modules/Virtualization/pvmfw/src/
Dgpt.rs123 let mut needle = [0; Entry::NAME_SIZE / size_of::<u16>()]; in get_partition_by_name() localVariable
124 for (dest, src) in needle.iter_mut().zip(name.encode_utf16()) { in get_partition_by_name()
139 if entry_name == needle { in get_partition_by_name()
/packages/apps/Settings/src/com/android/settings/gestures/
DLongPressPowerSensitivityPreferenceController.java140 private static int closestValueIndex(int[] values, int needle) { in closestValueIndex() argument
144 int diff = Math.abs(values[i] - needle); in closestValueIndex()
/packages/modules/NetworkStack/src/com/android/networkstack/netlink/
DTcpInfo.java129 private static int getFieldOffset(@NonNull final Field needle) { in getFieldOffset() argument
132 if (field == needle) return offset; in getFieldOffset()
/packages/modules/Permission/tests/cts/permission/src/android/permission/cts/
DProviderPermissionTest.java284 private static boolean contains(String[] haystack, String needle) { in contains() argument
287 if (Objects.equals(test, needle)) { in contains()
/packages/services/BuiltInPrintService/jni/ipphelper/
Dipphelper.c55 static inline const char* strnstr(const char* s, const char* needle, size_t len) { in strnstr() argument
58 const char c = *needle++; in strnstr()
59 const size_t needleLen = strlen(needle); in strnstr()
65 } while (memcmp(s, needle, needleLen) != 0); in strnstr()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/
DStubProvider.java755 File needle = new File(root.file, path.substring(1)); in getFile() local
757 StubDocument found = mStorage.get(getDocumentIdForFile(needle)); in getFile()
/packages/inputmethods/LatinIME/dictionaries/
Den_GB_wordlist.combined.gz
Den_US_wordlist.combined.gz
Den_wordlist.combined.gz