Lines Matching refs:expectedValue

241     private void assertIntTag(ExifInterface exifInterface, String tag, int expectedValue) {
243 assertEquals(expectedValue, intValue);
246 private void assertDoubleTag(ExifInterface exifInterface, String tag, float expectedValue) {
248 assertEquals(expectedValue, doubleValue, DIFFERENCE_TOLERANCE);
251 private void assertStringTag(ExifInterface exifInterface, String tag, String expectedValue) {
257 assertEquals(expectedValue, stringValue);
261 ExpectedValue expectedValue, String verboseTag) {
266 assertEquals(expectedValue.hasThumbnail, exifInterface.hasThumbnail());
267 if (expectedValue.hasThumbnail) {
273 assertEquals(expectedValue.thumbnailWidth, thumbnailBitmap.getWidth());
274 assertEquals(expectedValue.thumbnailHeight, thumbnailBitmap.getHeight());
281 assertEquals(expectedValue.hasLatLong, exifInterface.getLatLong(latLong));
282 if (expectedValue.hasLatLong) {
283 assertEquals(expectedValue.latitude, latLong[0], DIFFERENCE_TOLERANCE);
284 assertEquals(expectedValue.longitude, latLong[1], DIFFERENCE_TOLERANCE);
286 assertEquals(expectedValue.altitude, exifInterface.getAltitude(.0), DIFFERENCE_TOLERANCE);
289 assertStringTag(exifInterface, ExifInterface.TAG_MAKE, expectedValue.make);
290 assertStringTag(exifInterface, ExifInterface.TAG_MODEL, expectedValue.model);
291 assertDoubleTag(exifInterface, ExifInterface.TAG_F_NUMBER, expectedValue.fNumber);
292 assertStringTag(exifInterface, ExifInterface.TAG_DATETIME, expectedValue.datetime);
293 assertDoubleTag(exifInterface, ExifInterface.TAG_EXPOSURE_TIME, expectedValue.exposureTime);
294 assertDoubleTag(exifInterface, ExifInterface.TAG_FLASH, expectedValue.flash);
295 assertStringTag(exifInterface, ExifInterface.TAG_FOCAL_LENGTH, expectedValue.focalLength);
296 assertStringTag(exifInterface, ExifInterface.TAG_GPS_ALTITUDE, expectedValue.gpsAltitude);
298 expectedValue.gpsAltitudeRef);
299 assertStringTag(exifInterface, ExifInterface.TAG_GPS_DATESTAMP, expectedValue.gpsDatestamp);
300 assertStringTag(exifInterface, ExifInterface.TAG_GPS_LATITUDE, expectedValue.gpsLatitude);
302 expectedValue.gpsLatitudeRef);
303 assertStringTag(exifInterface, ExifInterface.TAG_GPS_LONGITUDE, expectedValue.gpsLongitude);
305 expectedValue.gpsLongitudeRef);
307 expectedValue.gpsProcessingMethod);
308 assertStringTag(exifInterface, ExifInterface.TAG_GPS_TIMESTAMP, expectedValue.gpsTimestamp);
309 assertIntTag(exifInterface, ExifInterface.TAG_IMAGE_LENGTH, expectedValue.imageLength);
310 assertIntTag(exifInterface, ExifInterface.TAG_IMAGE_WIDTH, expectedValue.imageWidth);
311 assertStringTag(exifInterface, ExifInterface.TAG_ISO_SPEED_RATINGS, expectedValue.iso);
312 assertIntTag(exifInterface, ExifInterface.TAG_ORIENTATION, expectedValue.orientation);
313 assertIntTag(exifInterface, ExifInterface.TAG_WHITE_BALANCE, expectedValue.whiteBalance);
316 private void testExifInterfaceCommon(File imageFile, ExpectedValue expectedValue)
322 compareWithExpectedValue(exifInterface, expectedValue, verboseTag);
329 compareWithExpectedValue(exifInterface, expectedValue, verboseTag);
339 compareWithExpectedValue(exifInterface, expectedValue, verboseTag);
349 compareWithExpectedValue(exifInterface, expectedValue, verboseTag);
357 private void testSaveAttributes_withFileName(File imageFile, ExpectedValue expectedValue)
364 compareWithExpectedValue(exifInterface, expectedValue, verboseTag);
376 compareWithExpectedValue(exifInterface, expectedValue, verboseTag);
379 private void testSaveAttributes_withFileDescriptor(File imageFile, ExpectedValue expectedValue)
390 compareWithExpectedValue(exifInterface, expectedValue, verboseTag);
404 compareWithExpectedValue(exifInterface, expectedValue, verboseTag);
412 private void testSaveAttributes_withInputStream(File imageFile, ExpectedValue expectedValue)
431 ExpectedValue expectedValue = new ExpectedValue(
436 testExifInterfaceCommon(imageFile, expectedValue);
439 testSaveAttributes_withFileName(imageFile, expectedValue);
440 testSaveAttributes_withFileDescriptor(imageFile, expectedValue);
441 testSaveAttributes_withInputStream(imageFile, expectedValue);
446 ExpectedValue expectedValue = new ExpectedValue(
451 testExifInterfaceCommon(imageFile, expectedValue);