| /expo/ios/versioned/sdk48/ExpoModulesCore/ios/Swift/ |
| H A D | Conversions.swift | 6 switch array.count { in toTuple() 10 return (array[0]) in toTuple() 12 return (array[0], array[1]) in toTuple() 14 return (array[0], array[1], array[2]) in toTuple() 16 return (array[0], array[1], array[2], array[3]) in toTuple() 18 return (array[0], array[1], array[2], array[3], array[4]) in toTuple() 20 return (array[0], array[1], array[2], array[3], array[4], array[5]) in toTuple() 22 return (array[0], array[1], array[2], array[3], array[4], array[5], array[6]) in toTuple() 24 return (array[0], array[1], array[2], array[3], array[4], array[5], array[6], array[7]) in toTuple() 26 … return (array[0], array[1], array[2], array[3], array[4], array[5], array[6], array[7], array[8]) in toTuple() [all …]
|
| /expo/ios/versioned/sdk47/ExpoModulesCore/ios/Swift/ |
| H A D | Conversions.swift | 6 switch array.count { in toTuple() 10 return (array[0]) in toTuple() 12 return (array[0], array[1]) in toTuple() 14 return (array[0], array[1], array[2]) in toTuple() 16 return (array[0], array[1], array[2], array[3]) in toTuple() 18 return (array[0], array[1], array[2], array[3], array[4]) in toTuple() 20 return (array[0], array[1], array[2], array[3], array[4], array[5]) in toTuple() 22 return (array[0], array[1], array[2], array[3], array[4], array[5], array[6]) in toTuple() 24 return (array[0], array[1], array[2], array[3], array[4], array[5], array[6], array[7]) in toTuple() 26 … return (array[0], array[1], array[2], array[3], array[4], array[5], array[6], array[7], array[8]) in toTuple() [all …]
|
| /expo/packages/expo-modules-core/ios/Swift/ |
| H A D | Conversions.swift | 6 switch array.count { in toTuple() 10 return (array[0]) in toTuple() 12 return (array[0], array[1]) in toTuple() 14 return (array[0], array[1], array[2]) in toTuple() 16 return (array[0], array[1], array[2], array[3]) in toTuple() 18 return (array[0], array[1], array[2], array[3], array[4]) in toTuple() 20 return (array[0], array[1], array[2], array[3], array[4], array[5]) in toTuple() 22 return (array[0], array[1], array[2], array[3], array[4], array[5], array[6]) in toTuple() 24 return (array[0], array[1], array[2], array[3], array[4], array[5], array[6], array[7]) in toTuple() 26 … return (array[0], array[1], array[2], array[3], array[4], array[5], array[6], array[7], array[8]) in toTuple() [all …]
|
| /expo/ios/versioned/sdk49/ExpoModulesCore/ios/Swift/ |
| H A D | Conversions.swift | 6 switch array.count { in toTuple() 10 return (array[0]) in toTuple() 12 return (array[0], array[1]) in toTuple() 14 return (array[0], array[1], array[2]) in toTuple() 16 return (array[0], array[1], array[2], array[3]) in toTuple() 18 return (array[0], array[1], array[2], array[3], array[4]) in toTuple() 20 return (array[0], array[1], array[2], array[3], array[4], array[5]) in toTuple() 22 return (array[0], array[1], array[2], array[3], array[4], array[5], array[6]) in toTuple() 24 return (array[0], array[1], array[2], array[3], array[4], array[5], array[6], array[7]) in toTuple() 26 … return (array[0], array[1], array[2], array[3], array[4], array[5], array[6], array[7], array[8]) in toTuple() [all …]
|
| /expo/packages/expo-modules-core/ios/Tests/ |
| H A D | TypedArraysSpec.swift | 32 let array = try runtime in spec() variable 40 expect(array[0]?.getInt()) == 0 // Remains unset in spec() 41 expect(array[1]?.getInt()) == randomInt in spec() 42 expect(array[2]?.getInt()) == 0 // Remains unset in spec() 112 return array[index] in definition() 116 array[index] = value in definition() 120 return array[start...end] in definition() 124 array[start...end] = values in definition() 128 return array.jsTypedArray in definition() 132 let _ = SecRandomCopyBytes(kSecRandomDefault, array.byteLength, array.rawPointer) in definition() [all …]
|
| /expo/ios/versioned/sdk49/ExpoModulesCore/ios/Tests/ |
| H A D | TypedArraysSpec.swift | 32 let array = try runtime in spec() variable 40 expect(array[0]?.getInt()) == 0 // Remains unset in spec() 41 expect(array[1]?.getInt()) == randomInt in spec() 42 expect(array[2]?.getInt()) == 0 // Remains unset in spec() 112 return array[index] in definition() 116 array[index] = value in definition() 120 return array[start...end] in definition() 124 array[start...end] = values in definition() 128 return array.jsTypedArray in definition() 132 let _ = SecRandomCopyBytes(kSecRandomDefault, array.byteLength, array.rawPointer) in definition() [all …]
|
| /expo/android/versioned-abis/expoview-abi49_0_0/src/main/java/abi49_0_0/host/exp/exponent/modules/api/netinfo/ |
| H A D | NetInfoUtils.java | 16 public static void reverseByteArray(byte[] array) { in reverseByteArray() argument 17 for (int i = 0; i < array.length / 2; i++) { in reverseByteArray() 18 byte temp = array[i]; in reverseByteArray() 19 array[i] = array[array.length - i - 1]; in reverseByteArray() 20 array[array.length - i - 1] = temp; in reverseByteArray()
|
| /expo/android/expoview/src/main/java/versioned/host/exp/exponent/modules/api/netinfo/ |
| H A D | NetInfoUtils.java | 16 public static void reverseByteArray(byte[] array) { in reverseByteArray() argument 17 for (int i = 0; i < array.length / 2; i++) { in reverseByteArray() 18 byte temp = array[i]; in reverseByteArray() 19 array[i] = array[array.length - i - 1]; in reverseByteArray() 20 array[array.length - i - 1] = temp; in reverseByteArray()
|
| /expo/android/versioned-abis/expoview-abi48_0_0/src/main/java/abi48_0_0/host/exp/exponent/modules/api/netinfo/ |
| H A D | NetInfoUtils.java | 16 public static void reverseByteArray(byte[] array) { in reverseByteArray() argument 17 for (int i = 0; i < array.length / 2; i++) { in reverseByteArray() 18 byte temp = array[i]; in reverseByteArray() 19 array[i] = array[array.length - i - 1]; in reverseByteArray() 20 array[array.length - i - 1] = temp; in reverseByteArray()
|
| /expo/android/versioned-abis/expoview-abi47_0_0/src/main/java/abi47_0_0/host/exp/exponent/modules/api/netinfo/ |
| H A D | NetInfoUtils.java | 16 public static void reverseByteArray(byte[] array) { in reverseByteArray() argument 17 for (int i = 0; i < array.length / 2; i++) { in reverseByteArray() 18 byte temp = array[i]; in reverseByteArray() 19 array[i] = array[array.length - i - 1]; in reverseByteArray() 20 array[array.length - i - 1] = temp; in reverseByteArray()
|
| /expo/packages/expo-standard-web-crypto/src/__tests__/ |
| H A D | getRandomValues-test.ts | 19 const array = new TypedArray(valueCount); constant 20 const result = getRandomValues(array); 21 expect(result).toBe(array); 24 expect(Crypto.getRandomValues).toHaveBeenCalledWith(array); 28 expect(array).not.toEqual(zeros); 67 const array = new TypedArray(valueCount); constant 68 const result = getRandomValuesInsecure(array); 69 expect(result).toBe(array); 73 expect(array).not.toEqual(zeros);
|
| /expo/ios/versioned-react-native/ABI47_0_0/ReactNative/ReactCommon/react/renderer/graphics/ |
| H A D | ABI47_0_0conversions.h | 95 auto array = (std::vector<Float>)value; in fromRawValue() local 97 if (array.size() >= 2) { in fromRawValue() 98 result = {array.at(0), array.at(1)}; in fromRawValue() 129 auto array = (std::vector<Float>)value; in fromRawValue() local 131 if (array.size() >= 2) { in fromRawValue() 132 result = {array.at(0), array.at(1)}; in fromRawValue() 173 auto array = (std::vector<Float>)value; in fromRawValue() local 175 if (array.size() >= 4) { in fromRawValue() 176 result = {array.at(0), array.at(1), array.at(2), array.at(3)}; in fromRawValue() 219 if (array.size() >= 4) { in fromRawValue() [all …]
|
| /expo/ios/versioned-react-native/ABI48_0_0/ReactNative/ReactCommon/react/renderer/graphics/ |
| H A D | ABI48_0_0conversions.h | 95 auto array = (std::vector<Float>)value; in fromRawValue() local 97 if (array.size() >= 2) { in fromRawValue() 98 result = {array.at(0), array.at(1)}; in fromRawValue() 129 auto array = (std::vector<Float>)value; in fromRawValue() local 131 if (array.size() >= 2) { in fromRawValue() 132 result = {array.at(0), array.at(1)}; in fromRawValue() 173 auto array = (std::vector<Float>)value; in fromRawValue() local 175 if (array.size() >= 4) { in fromRawValue() 176 result = {array.at(0), array.at(1), array.at(2), array.at(3)}; in fromRawValue() 219 if (array.size() >= 4) { in fromRawValue() [all …]
|
| /expo/ios/versioned-react-native/ABI49_0_0/ReactNative/ReactCommon/react/renderer/core/ |
| H A D | ABI49_0_0graphicsConversions.h | 94 auto array = (std::vector<Float>)value; in fromRawValue() local 96 if (array.size() >= 2) { in fromRawValue() 97 result = {array.at(0), array.at(1)}; in fromRawValue() 128 auto array = (std::vector<Float>)value; in fromRawValue() local 130 if (array.size() >= 2) { in fromRawValue() 131 result = {array.at(0), array.at(1)}; in fromRawValue() 172 auto array = (std::vector<Float>)value; in fromRawValue() local 174 if (array.size() >= 4) { in fromRawValue() 175 result = {array.at(0), array.at(1), array.at(2), array.at(3)}; in fromRawValue() 218 if (array.size() >= 4) { in fromRawValue() [all …]
|
| /expo/packages/@expo/cli/src/utils/ |
| H A D | array.ts | 2 export function findLastIndex<T>(array: T[], predicate: (item: T) => boolean) { 3 for (let i = array.length - 1; i >= 0; i--) { 4 if (predicate(array[i])) { 26 export function uniqBy<T>(array: T[], key: (item: T) => string): T[] { 28 return array.filter((item) => { 39 export function chunk<T>(array: T[], size: number): T[][] { 42 while (index < array.length) { 43 chunked.push(array.slice(index, (index += size)));
|
| /expo/ios/versioned-react-native/ABI49_0_0/ReactNative/ReactCommon/yoga/yoga/ |
| H A D | ABI49_0_0YGLayout.h | 17 std::array<float, 4> position = {}; 18 std::array<float, 2> dimensions = {{ABI49_0_0YGUndefined, ABI49_0_0YGUndefined}}; 19 std::array<float, 4> margin = {}; 20 std::array<float, 4> border = {}; 21 std::array<float, 4> padding = {}; 39 std::array<ABI49_0_0YGCachedMeasurement, ABI49_0_0YG_MAX_CACHED_RESULT_COUNT> 41 std::array<float, 2> measuredDimensions = {{ABI49_0_0YGUndefined, ABI49_0_0YGUndefined}};
|
| /expo/packages/expo-random/build/ |
| H A D | ExpoRandom.web.js | 6 const array = new Uint8Array(length); constant 8 return (window.crypto ?? window.msCrypto).getRandomValues(array); 11 const array = new Uint8Array(length); constant 13 return (window.crypto ?? window.msCrypto).getRandomValues(array);
|
| /expo/packages/@expo/prebuild-config/build/plugins/unversioned/expo-splash-screen/ |
| H A D | InterfaceBuilder.js | 135 function ensureUniquePush(array, item) { argument 136 if (!array) return array; 137 removeExisting(array, item); 138 array.push(item); 139 return array; 141 function removeExisting(array, item) { argument 144 …const existingItem = array === null || array === void 0 ? void 0 : array.findIndex(existingItem =>… 146 debug(`Removing existing IB item with id ${id}, from: %O`, array); 147 array.splice(existingItem, 1); 149 return array;
|
| /expo/packages/expo-random/src/ |
| H A D | ExpoRandom.web.ts | 6 const array = new Uint8Array(length); constant 8 return (window.crypto ?? window.msCrypto).getRandomValues(array); 11 const array = new Uint8Array(length); constant 13 return (window.crypto ?? window.msCrypto).getRandomValues(array);
|
| /expo/packages/expo-modules-core/android/src/test/java/expo/modules/kotlin/types/ |
| H A D | PairTypeConverterTest.kt | 10 fun `should convert array to pair`() { in should convert array to pair() 11 val array = DynamicFromObject( in should convert array to pair() constant 18 val converted = convert<Pair<Int, Int>>(array) in should convert array to pair() 26 fun `should convert array with two different types to pair`() { in should convert array with two different types to pair() 27 val array = DynamicFromObject( in should convert array with two different types to pair() constant 34 val converted = convert<Pair<Int, String>>(array) in should convert array with two different types to pair()
|
| /expo/ios/versioned-react-native/ABI49_0_0/ReactNative/ReactCommon/react/bridging/ |
| H A D | ABI49_0_0Array.h | 29 const T &array, in toJs() 31 return toJs(rt, array, jsInvoker, std::make_index_sequence<N>{}); in toJs() 38 const T &array, in toJs() 42 rt, bridging::toJs(rt, std::get<Index>(array), jsInvoker)...); in toJs() 66 struct Bridging<std::array<T, N>> 67 : array_detail::BridgingStatic<std::array<T, N>, N> {}; 93 const jsi::Array &array, 95 size_t length = array.length(rt); 102 bridging::fromJs<T>(rt, array.getValueAtIndex(rt, i), jsInvoker)); 113 const jsi::Array &array, [all …]
|
| /expo/ios/versioned-react-native/ABI48_0_0/ReactNative/ReactCommon/react/bridging/ |
| H A D | ABI48_0_0Array.h | 29 const T &array, in toJs() 31 return toJs(rt, array, jsInvoker, std::make_index_sequence<N>{}); in toJs() 38 const T &array, in toJs() 42 rt, bridging::toJs(rt, std::get<Index>(array), jsInvoker)...); in toJs() 66 struct Bridging<std::array<T, N>> 67 : array_detail::BridgingStatic<std::array<T, N>, N> {}; 93 const jsi::Array &array, 95 size_t length = array.length(rt); 102 bridging::fromJs<T>(rt, array.getValueAtIndex(rt, i), jsInvoker)); 113 const jsi::Array &array, [all …]
|
| /expo/ios/versioned-react-native/ABI48_0_0/ReactNative/ReactCommon/yoga/yoga/ |
| H A D | ABI48_0_0YGLayout.h | 19 std::array<float, 4> position = {}; 20 std::array<float, 2> dimensions = {{ABI48_0_0YGUndefined, ABI48_0_0YGUndefined}}; 21 std::array<float, 4> margin = {}; 22 std::array<float, 4> border = {}; 23 std::array<float, 4> padding = {}; 45 std::array<ABI48_0_0YGCachedMeasurement, ABI48_0_0YG_MAX_CACHED_RESULT_COUNT> 47 std::array<float, 2> measuredDimensions = {{ABI48_0_0YGUndefined, ABI48_0_0YGUndefined}};
|
| /expo/ios/versioned-react-native/ABI47_0_0/ReactNative/ReactCommon/yoga/yoga/ |
| H A D | ABI47_0_0YGLayout.h | 19 std::array<float, 4> position = {}; 20 std::array<float, 2> dimensions = {{ABI47_0_0YGUndefined, ABI47_0_0YGUndefined}}; 21 std::array<float, 4> margin = {}; 22 std::array<float, 4> border = {}; 23 std::array<float, 4> padding = {}; 45 std::array<ABI47_0_0YGCachedMeasurement, ABI47_0_0YG_MAX_CACHED_RESULT_COUNT> 47 std::array<float, 2> measuredDimensions = {{ABI47_0_0YGUndefined, ABI47_0_0YGUndefined}};
|
| /expo/ios/versioned-react-native/ABI47_0_0/ReactNative/ReactCommon/react/bridging/ |
| H A D | ABI47_0_0Array.h | 28 const T &array, in toJs() 30 return toJs(rt, array, jsInvoker, std::make_index_sequence<N>{}); in toJs() 37 const T &array, in toJs() 41 rt, bridging::toJs(rt, std::get<Index>(array), jsInvoker)...); in toJs() 65 struct Bridging<std::array<T, N>> 66 : array_detail::BridgingStatic<std::array<T, N>, N> {}; 92 const jsi::Array &array, 94 size_t length = array.length(rt); 101 bridging::fromJs<T>(rt, array.getValueAtIndex(rt, i), jsInvoker));
|