Java Code Examples for com.nostra13.universalimageloader.core.download.ImageDownloader.Scheme#FILE

The following examples show how to use com.nostra13.universalimageloader.core.download.ImageDownloader.Scheme#FILE . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: BaseImageDownloaderTest.java    From candybar with Apache License 2.0 5 votes vote down vote up
@Test
public void testSchemeFile() throws Exception {
    String uri = "file://path/on/the/device/1.png";
    Scheme result = Scheme.ofUri(uri);
    Scheme expected = Scheme.FILE;
    Assertions.assertThat(result).isEqualTo(expected);
}
 
Example 2
Source File: BaseImageDownloaderTest.java    From Android-Universal-Image-Loader-Modify with Apache License 2.0 5 votes vote down vote up
@Test
public void testSchemeFile() throws Exception {
	String uri = "file://path/on/the/device/1.png";
	Scheme result = Scheme.ofUri(uri);
	Scheme expected = Scheme.FILE;
	Assertions.assertThat(result).isEqualTo(expected);
}
 
Example 3
Source File: BaseImageDownloaderTest.java    From android-open-project-demo with Apache License 2.0 5 votes vote down vote up
@Test
public void testSchemeFile() throws Exception {
	String uri = "file://path/on/the/device/1.png";
	Scheme result = Scheme.ofUri(uri);
	Scheme expected = Scheme.FILE;
	Assertions.assertThat(result).isEqualTo(expected);
}
 
Example 4
Source File: BaseImageDecoder.java    From candybar with Apache License 2.0 4 votes vote down vote up
private boolean canDefineExifParams(String imageUri, String mimeType) {
    return "image/jpeg".equalsIgnoreCase(mimeType) && (Scheme.ofUri(imageUri) == Scheme.FILE);
}
 
Example 5
Source File: BaseImageDecoder.java    From letv with Apache License 2.0 4 votes vote down vote up
private boolean canDefineExifParams(String imageUri, String mimeType) {
    return "image/jpeg".equalsIgnoreCase(mimeType) && Scheme.ofUri(imageUri) == Scheme.FILE;
}
 
Example 6
Source File: BaseImageDecoder.java    From mobile-manager-tool with MIT License 4 votes vote down vote up
private boolean canDefineExifParams(String imageUri, String mimeType) {
	return "image/jpeg".equalsIgnoreCase(mimeType) && (Scheme.ofUri(imageUri) == Scheme.FILE);
}
 
Example 7
Source File: BaseImageDecoder.java    From BigApp_WordPress_Android with Apache License 2.0 4 votes vote down vote up
private boolean canDefineExifParams(String imageUri, String mimeType) {
    return "image/jpeg".equalsIgnoreCase(mimeType) && (Scheme.ofUri(imageUri) == Scheme.FILE);
}
 
Example 8
Source File: BaseImageDecoder.java    From WliveTV with Apache License 2.0 4 votes vote down vote up
private boolean canDefineExifParams(String imageUri, String mimeType) {
	return "image/jpeg".equalsIgnoreCase(mimeType) && (Scheme.ofUri(imageUri) == Scheme.FILE);
}
 
Example 9
Source File: BaseImageDecoder.java    From Android-Universal-Image-Loader-Modify with Apache License 2.0 4 votes vote down vote up
private boolean canDefineExifParams(String imageUri, String mimeType) {
	return "image/jpeg".equalsIgnoreCase(mimeType) && (Scheme.ofUri(imageUri) == Scheme.FILE);
}
 
Example 10
Source File: BaseImageDecoder.java    From android-open-project-demo with Apache License 2.0 4 votes vote down vote up
private boolean canDefineExifParams(String imageUri, String mimeType) {
	return "image/jpeg".equalsIgnoreCase(mimeType) && (Scheme.ofUri(imageUri) == Scheme.FILE);
}