Home
last modified time | relevance | path

Searched refs:mediaType (Results 1 – 25 of 79) sorted by relevance

1234

/expo/packages/expo-media-library/android/src/test/java/expo/modules/medialibrary/
H A DMockData.kt15 val mediaType: Int?, constant in expo.modules.medialibrary.MockAsset
25 id, name, path, mediaType, in toColumnArray()
51 mediaType = MEDIA_TYPE_IMAGE,
65 mediaType = MEDIA_TYPE_VIDEO,
79 mediaType = MEDIA_TYPE_AUDIO,
/expo/apps/test-suite/tests/
H A DMediaLibrary.js304 const mediaType = MediaLibrary.MediaType.video;
305 const options = { mediaType, album }; field
307 assets.forEach((asset) => t.expect(asset.mediaType).toBe(mediaType));
313 const options = { mediaType, album }; field
316 assets.forEach((asset) => t.expect(asset.mediaType).toBe(mediaType));
321 const options = { mediaType, album }; field
332 const options = { mediaType, album }; field
399 const options = { mediaType, album }; field
418 const options = { mediaType, album }; field
434 const options = { mediaType, album }; field
[all …]
/expo/packages/expo-media-library/android/src/test/java/expo/modules/medialibrary/assets/
H A DGetAssetsQueryTests.kt36 mediaType = listOf(MediaType.PHOTO.apiName), in test if AssetOptions are handled correctly()
68 mediaType = emptyList(), in test if no input gives default values()
91 mediaType = emptyList(), in test if invalid arguments fall back to defaults()
104 fun `test if invalid mediaType throws`() { in test if invalid mediaType throws()
111 mediaType = listOf("someRandomString"), in test if invalid mediaType throws()
127 mediaType = emptyList(), in test if invalid order throws()
/expo/android/versioned-abis/expoview-abi48_0_0/src/main/java/abi48_0_0/expo/modules/medialibrary/assets/
H A DGetAssetsQuery.kt46 val mediaType = input.mediaType in createSelectionString() constant
47 if (mediaType.isNotEmpty() && !mediaType.contains(MediaType.ALL.apiName)) { in createSelectionString()
48 val mediaTypeInts = mediaType.map { parseMediaType(it) } in createSelectionString()
H A DAssetUtils.kt110 val mediaType = cursor.getInt(mediaTypeIndex) in putAssetsInfo() constant
112 if (mediaType == MediaStore.Files.FileColumns.MEDIA_TYPE_IMAGE) { in putAssetsInfo()
121 getAssetDimensionsFromCursor(contentResolver, exifInterface, cursor, mediaType, localUriIndex) in putAssetsInfo()
126 putString("mediaType", exportMediaType(mediaType)) in putAssetsInfo()
220 mediaType: Int, in getAssetDimensionsFromCursor()
224 if (mediaType == MediaStore.Files.FileColumns.MEDIA_TYPE_VIDEO) { in getAssetDimensionsFromCursor()
257 if (mediaType == MediaStore.Files.FileColumns.MEDIA_TYPE_IMAGE && (width <= 0 || height <= 0)) { in getAssetDimensionsFromCursor()
282 fun exportMediaType(mediaType: Int) = when (mediaType) { in exportMediaType()
/expo/packages/expo-media-library/android/src/main/java/expo/modules/medialibrary/assets/
H A DGetAssetsQuery.kt46 val mediaType = input.mediaType in createSelectionString() constant
47 if (mediaType.isNotEmpty() && !mediaType.contains(MediaType.ALL.apiName)) { in createSelectionString()
48 val mediaTypeInts = mediaType.map { parseMediaType(it) } in createSelectionString()
H A DAssetUtils.kt110 val mediaType = cursor.getInt(mediaTypeIndex) in putAssetsInfo() constant
112 if (mediaType == MediaStore.Files.FileColumns.MEDIA_TYPE_IMAGE) { in putAssetsInfo()
121 getAssetDimensionsFromCursor(contentResolver, exifInterface, cursor, mediaType, localUriIndex) in putAssetsInfo()
126 putString("mediaType", exportMediaType(mediaType)) in putAssetsInfo()
220 mediaType: Int, in getAssetDimensionsFromCursor()
224 if (mediaType == MediaStore.Files.FileColumns.MEDIA_TYPE_VIDEO) { in getAssetDimensionsFromCursor()
257 if (mediaType == MediaStore.Files.FileColumns.MEDIA_TYPE_IMAGE && (width <= 0 || height <= 0)) { in getAssetDimensionsFromCursor()
282 fun exportMediaType(mediaType: Int) = when (mediaType) { in exportMediaType()
/expo/android/versioned-abis/expoview-abi49_0_0/src/main/java/abi49_0_0/expo/modules/medialibrary/assets/
H A DGetAssetsQuery.kt46 val mediaType = input.mediaType in createSelectionString() constant
47 if (mediaType.isNotEmpty() && !mediaType.contains(MediaType.ALL.apiName)) { in createSelectionString()
48 val mediaTypeInts = mediaType.map { parseMediaType(it) } in createSelectionString()
H A DAssetUtils.kt110 val mediaType = cursor.getInt(mediaTypeIndex) in putAssetsInfo() constant
112 if (mediaType == MediaStore.Files.FileColumns.MEDIA_TYPE_IMAGE) { in putAssetsInfo()
121 getAssetDimensionsFromCursor(contentResolver, exifInterface, cursor, mediaType, localUriIndex) in putAssetsInfo()
126 putString("mediaType", exportMediaType(mediaType)) in putAssetsInfo()
220 mediaType: Int, in getAssetDimensionsFromCursor()
224 if (mediaType == MediaStore.Files.FileColumns.MEDIA_TYPE_VIDEO) { in getAssetDimensionsFromCursor()
257 if (mediaType == MediaStore.Files.FileColumns.MEDIA_TYPE_IMAGE && (width <= 0 || height <= 0)) { in getAssetDimensionsFromCursor()
282 fun exportMediaType(mediaType: Int) = when (mediaType) { in exportMediaType()
/expo/packages/expo-media-library/src/
H A DMediaLibrary.ts48 mediaType: 'mediaType';
73 mediaType: MediaTypeValue;
276 mediaType?: MediaTypeValue[] | MediaTypeValue;
350 function checkMediaType(mediaType: any): void {
351 if (Object.values(MediaType).indexOf(mediaType) === -1) {
352 throw new Error(`Invalid mediaType: ${mediaType}`);
738 const { first, after, album, sortBy, mediaType, createdAfter, createdBefore } = assetsOptions; constant
745 mediaType: arrayize(mediaType || [MediaType.photo]),
769 options.mediaType.forEach(checkMediaType);
H A DExpoMediaLibrary.web.ts30 mediaType: 'mediaType',
/expo/android/versioned-abis/expoview-abi47_0_0/src/main/java/abi47_0_0/expo/modules/medialibrary/assets/
H A DGetAssetsQuery.kt50 val mediaType = input["mediaType"] as? List<*> in createSelectionString() constant
51 if (mediaType != null && !mediaType.contains(MediaType.ALL.apiName)) { in createSelectionString()
52 val mediaTypeInts = mediaType.map { parseMediaType(it.toString()) } in createSelectionString()
H A DAssetUtils.kt110 val mediaType = cursor.getInt(mediaTypeIndex) in putAssetsInfo() constant
112 if (mediaType == MediaStore.Files.FileColumns.MEDIA_TYPE_IMAGE) { in putAssetsInfo()
121 getAssetDimensionsFromCursor(contentResolver, exifInterface, cursor, mediaType, localUriIndex) in putAssetsInfo()
126 putString("mediaType", exportMediaType(mediaType)) in putAssetsInfo()
220 mediaType: Int, in getAssetDimensionsFromCursor()
224 if (mediaType == MediaStore.Files.FileColumns.MEDIA_TYPE_VIDEO) { in getAssetDimensionsFromCursor()
257 if (mediaType == MediaStore.Files.FileColumns.MEDIA_TYPE_IMAGE && (width <= 0 || height <= 0)) { in getAssetDimensionsFromCursor()
282 fun exportMediaType(mediaType: Int) = when (mediaType) { in exportMediaType()
/expo/packages/expo-media-library/build/
H A DMediaLibrary.js28 function checkMediaType(mediaType) { argument
29 if (Object.values(MediaType).indexOf(mediaType) === -1) {
30 throw new Error(`Invalid mediaType: ${mediaType}`);
353 const { first, after, album, sortBy, mediaType, createdAfter, createdBefore } = assetsOptions;
359 mediaType: arrayize(mediaType || [MediaType.photo]), property
379 options.mediaType.forEach(checkMediaType);
H A DMediaLibrary.d.ts22 mediaType: 'mediaType';
45 mediaType: MediaTypeValue;
222 mediaType?: MediaTypeValue[] | MediaTypeValue;
H A DExpoMediaLibrary.web.js26 mediaType: 'mediaType',
/expo/android/expoview/src/main/java/host/exp/exponent/
H A DConstants.java148 public final String mediaType; field in Constants.EmbeddedResponse
150 … public EmbeddedResponse(final String url, final String responseFilePath, final String mediaType) { in EmbeddedResponse() argument
153 this.mediaType = mediaType; in EmbeddedResponse()
/expo/apps/native-component-list/src/screens/MediaLibrary/
H A DMediaLibraryScreen.tsx38 [MediaLibrary.SortBy.modificationTime]: MediaLibrary.SortBy.mediaType,
39 [MediaLibrary.SortBy.mediaType]: MediaLibrary.SortBy.width,
184 const [mediaType, setMediaType] = React.useState<MediaLibrary.MediaTypeValue>(
193 }, [mediaType, sortBy, album?.id]);
196 setMediaType(mediaTypeStates[mediaType]);
197 }, [setMediaType, mediaType]);
219 mediaType,
307 title={`Media type: ${mediaType}`}
329 }, [mediaType, album, sortBy, toggleMediaType, toggleSortBy]);
342 <Text>{`You don't have any assets with type: ${mediaType}`}</Text>
[all …]
/expo/ios/versioned/sdk48/EXMediaLibrary/EXMediaLibrary/
H A DABI48_0_0EXMediaLibrary.m87 @"mediaType": @"mediaType",
436 if (asset.mediaType == PHAssetMediaTypeImage) {
519 NSArray<NSString *> *mediaType = options[@"mediaType"];
536 mediaType:mediaType
547 mediaType:mediaType
622 mediaType:(NSArray<NSString *> *)mediaType
645 if (mediaType && [mediaType count] > 0) {
825 @"mediaType": [ABI48_0_0EXMediaLibrary _stringifyMediaType:asset.mediaType],
998 switch (mediaType) {
1010 + (PHAssetMediaType)_convertMediaType:(NSString *)mediaType
[all …]
/expo/ios/versioned/sdk49/EXMediaLibrary/EXMediaLibrary/
H A DABI49_0_0EXMediaLibrary.m87 @"mediaType": @"mediaType",
441 if (asset.mediaType == PHAssetMediaTypeImage) {
524 NSArray<NSString *> *mediaType = options[@"mediaType"];
541 mediaType:mediaType
552 mediaType:mediaType
627 mediaType:(NSArray<NSString *> *)mediaType
650 if (mediaType && [mediaType count] > 0) {
830 @"mediaType": [ABI49_0_0EXMediaLibrary _stringifyMediaType:asset.mediaType],
1003 switch (mediaType) {
1015 + (PHAssetMediaType)_convertMediaType:(NSString *)mediaType
[all …]
/expo/packages/expo-media-library/android/src/main/java/expo/modules/medialibrary/
H A DAssetsOptions.kt11 @Field val mediaType: List<String>, constant in expo.modules.medialibrary.AssetsOptions
/expo/ios/versioned/sdk49/EXBarCodeScanner/EXBarCodeScanner/Utilities/
H A DABI49_0_0EXBarCodeScannerUtils.h11 + (AVCaptureDevice *)deviceWithMediaType:(AVMediaType)mediaType
/expo/ios/versioned/sdk48/EXBarCodeScanner/EXBarCodeScanner/Utilities/
H A DABI48_0_0EXBarCodeScannerUtils.h11 + (AVCaptureDevice *)deviceWithMediaType:(AVMediaType)mediaType
/expo/packages/expo-barcode-scanner/ios/EXBarCodeScanner/Utilities/
H A DEXBarCodeScannerUtils.h11 + (AVCaptureDevice *)deviceWithMediaType:(AVMediaType)mediaType
/expo/ios/versioned/sdk47/EXMediaLibrary/EXMediaLibrary/
H A DABI47_0_0EXMediaLibrary.m87 @"mediaType": @"mediaType",
436 if (asset.mediaType == PHAssetMediaTypeImage) {
519 NSArray<NSString *> *mediaType = options[@"mediaType"];
536 mediaType:mediaType
547 mediaType:mediaType
622 mediaType:(NSArray<NSString *> *)mediaType
645 if (mediaType && [mediaType count] > 0) {
825 @"mediaType": [ABI47_0_0EXMediaLibrary _stringifyMediaType:asset.mediaType],
998 switch (mediaType) {
1010 + (PHAssetMediaType)_convertMediaType:(NSString *)mediaType
[all …]

1234