Home
last modified time | relevance | path

Searched refs:sources (Results 1 – 25 of 1837) sorted by relevance

12345678910>>...74

/expo/packages/@expo/fingerprint/src/__tests__/
H A DDedup-test.ts6 const sources: HashSource[] = [ constant
19 expect(dedupSources(sources, '/app')).toEqual([
29 const sources: HashSource[] = [ constant
42 expect(dedupSources(sources, '/app')).toEqual([
52 const sources: HashSource[] = [ constant
65 expect(dedupSources(sources, '/app')).toEqual([
75 const sources: HashSource[] = [ constant
88 expect(dedupSources(sources, '/app')).toEqual([
98 const sources: HashSource[] = [ constant
126 const sources: HashSource[] = [ constant
[all …]
H A DSort-test.ts6 const sources: HashSource[] = [ constant
12 expect(sortSources(sources)).toEqual([
20 const sources: HashSource[] = [ constant
29 expect(sortSources(sources)).toEqual([
40 const sources: HashSource[] = [ constant
53 expect(sortSources(sources)).toEqual(sources);
/expo/packages/@expo/fingerprint/src/sourcer/__tests__/
H A DExpo-test.ts60 expect(sources).toContainEqual(
105 expect(sources).toContainEqual(
111 expect(sources).toMatchSnapshot();
114 expect(sources).toContainEqual(
117 expect(sources).toMatchSnapshot();
125 for (const source of sources) {
132 for (const source of sources) {
158 expect(sources.length).toBe(0);
218 expect(sources).toContainEqual(
245 expect(sources).toContainEqual(
[all …]
H A DBare-test.ts24 let sources = await getBareAndroidSourcesAsync('/app', await normalizeOptionsAsync('/app')); variable
25 expect(sources).toContainEqual(expect.objectContaining({ filePath: 'android', type: 'dir' }));
27 sources = await getBareIosSourcesAsync('/app', await normalizeOptionsAsync('/app'));
28 expect(sources).toContainEqual(expect.objectContaining({ filePath: 'ios', type: 'dir' }));
50 const sources = await getRncliAutolinkingSourcesAsync( constant
54 expect(sources).toContainEqual(
60 expect(sources).toMatchSnapshot();
76 const sources = await getRncliAutolinkingSourcesAsync( constant
80 for (const source of sources) {
H A DPatchPackage-test.ts21 const sources = await getPatchPackageSourcesAsync('/app', await normalizeOptionsAsync('/app')); constant
22 expect(sources).toContainEqual(
47 const sources = await getHashSourcesAsync('/app', await normalizeOptionsAsync('/app')); constant
48 expect(sources).toContainEqual(
H A DSourcer-test.ts13 const sources = await getHashSourcesAsync( constant
19 expect(sources).toContainEqual({ type: 'dir', filePath: '/app/scripts', reasons: ['extra'] });
/expo/packages/expo-image/build/web/
H A DuseSourceSelection.js3 function findBestSourceForSize(sources, size) { argument
4 if (sources?.length === 1) {
5 return sources[0];
7 return ([...(sources || [])]
32 function selectSource(sources, size, responsivePolicy) { argument
33 if (sources == null || sources.length === 0) {
37 return findBestSourceForSize(sources, size);
39 const staticSupportedSources = sources
44 return findBestSourceForSize(sources, size);
60 const hasMoreThanOneSource = (sources?.length ?? 0) > 1;
[all …]
/expo/packages/expo-image/src/web/
H A DuseSourceSelection.ts7 sources: ImageSource[] | undefined,
10 if (sources?.length === 1) {
11 return sources[0];
14 [...(sources || [])]
52 sources: ImageSource[] | undefined,
56 if (sources == null || sources.length === 0) {
61 return findBestSourceForSize(sources, size);
63 const staticSupportedSources = sources
75 return findBestSourceForSize(sources, size);
98 sources?: ImageSource[],
[all …]
/expo/ios/versioned-react-native/ABI48_0_0/ReactNative/ReactCommon/react/renderer/components/image/
H A DABI48_0_0ImageShadowNode.cpp45 auto sources = getConcreteProps().sources; in getImageSource() local
47 if (sources.empty()) { in getImageSource()
57 if (sources.size() == 1) { in getImageSource()
58 auto source = sources[0]; in getImageSource()
69 for (const auto &source : sources) { in getImageSource()
H A DABI48_0_0ImageProps.cpp20 sources( in ImageProps()
21 CoreFeatures::enablePropIteratorSetter ? sourceProps.sources in ImageProps()
26 sourceProps.sources, in ImageProps()
91 RAW_SET_PROP_SWITCH_CASE(sources, "source", {}); in setProp()
/expo/ios/versioned-react-native/ABI47_0_0/ReactNative/ReactCommon/react/renderer/components/image/
H A DABI47_0_0ImageShadowNode.cpp46 auto sources = getConcreteProps().sources; in getImageSource() local
48 if (sources.empty()) { in getImageSource()
58 if (sources.size() == 1) { in getImageSource()
59 auto source = sources[0]; in getImageSource()
70 for (const auto &source : sources) { in getImageSource()
H A DABI47_0_0ImageProps.cpp20 sources( in ImageProps()
21 convertRawProp(context, rawProps, "source", sourceProps.sources, {})), in ImageProps()
/expo/ios/versioned-react-native/ABI49_0_0/ReactNative/ReactCommon/react/renderer/components/image/
H A DABI49_0_0ImageShadowNode.cpp45 auto sources = getConcreteProps().sources; in getImageSource() local
47 if (sources.empty()) { in getImageSource()
57 if (sources.size() == 1) { in getImageSource()
58 auto source = sources[0]; in getImageSource()
69 for (const auto &source : sources) { in getImageSource()
H A DABI49_0_0ImageProps.cpp20 sources( in ImageProps()
21 CoreFeatures::enablePropIteratorSetter ? sourceProps.sources in ImageProps()
26 sourceProps.sources, in ImageProps()
93 RAW_SET_PROP_SWITCH_CASE(sources, "source"); in setProp()
/expo/packages/expo-image/build/utils/
H A DresolveSources.js39 export function resolveSources(sources) { argument
40 if (Array.isArray(sources)) {
41 return sources.map(resolveSource).filter(Boolean);
43 return [resolveSource(sources)].filter(Boolean);
/expo/packages/@expo/fingerprint/src/
H A DFingerprint.ts16 const sources = await getHashSourcesAsync(projectRoot, opts); constant
17 const normalizedSources = sortSources(dedupSources(sources, projectRoot));
55 return fingerprint2.sources.filter((newItem) => {
56 return !fingerprint1.sources.find(
H A DSort.ts3 export function sortSources<T extends HashSource>(sources: T[]): T[] {
9 return sources.sort((a, b) => {
/expo/packages/@expo/fingerprint/build/
H A DFingerprint.js14 const sources = await (0, Sourcer_1.getHashSourcesAsync)(projectRoot, opts);
15 …const normalizedSources = (0, Sort_1.sortSources)((0, Dedup_1.dedupSources)(sources, projectRoot));
43 return fingerprint2.sources.filter((newItem) => {
44 …return !fingerprint1.sources.find((item) => item.type === newItem.type && item.hash === newItem.ha…
H A DSort.js4 function sortSources(sources) { argument
10 return sources.sort((a, b) => {
/expo/packages/expo-image/src/utils/
H A DresolveSources.tsx43 export function resolveSources(sources?: ImageProps['source']): ImageNativeProps['source'] {
44 if (Array.isArray(sources)) {
45 return sources.map(resolveSource).filter(Boolean) as ImageSource[];
47 return [resolveSource(sources)].filter(Boolean) as ImageSource[];
/expo/packages/expo-image/ios/
H A DImageUtils.swift129 func getBestSource(from sources: [ImageSource]?, forSize size: CGSize, scale: Double = 1.0) -> Imag… in getBestSource()
130 guard let sources = sources, !sources.isEmpty else { in getBestSource() variable
136 if sources.count == 1 { in getBestSource()
137 return sources.first in getBestSource()
143 for source in sources { in getBestSource()
/expo/ios/versioned/sdk49/ExpoImage/
H A DImageUtils.swift129 func getBestSource(from sources: [ImageSource]?, forSize size: CGSize, scale: Double = 1.0) -> Imag… in getBestSource()
130 guard let sources = sources, !sources.isEmpty else { in getBestSource() variable
136 if sources.count == 1 { in getBestSource()
137 return sources.first in getBestSource()
143 for source in sources { in getBestSource()
/expo/ios/versioned/sdk48/ExpoImage/
H A DImageUtils.swift129 func getBestSource(from sources: [ImageSource]?, forSize size: CGSize, scale: Double = 1.0) -> Imag… in getBestSource()
130 guard let sources = sources, !sources.isEmpty else { in getBestSource() variable
136 if sources.count == 1 { in getBestSource()
137 return sources.first in getBestSource()
143 for source in sources { in getBestSource()
/expo/.github/workflows/
H A Dexpotools.yml34 - name: �� Compile TypeScript sources
37 - name: �� Typecheck sources
40 - name: �� Lint TypeScript sources
/expo/packages/expo-camera/src/
H A DWebUserMediaManager.ts32 const sources: any[] = await new Promise((resolve) => constant
34 MediaStreamTrack.getSources((sources) => resolve(sources))
40 sources.forEach((source) => {

12345678910>>...74