Merge changes If362e2ad,I1246175c,Ie4aa961e,I6e69dfcd
* changes: Updated comments using https://source.android.com/setup/contribute/respectful-code Updated comments using https://source.android.com/setup/contribute/respectful-code Updated comments using https://source.android.com/setup/contribute/respectful-code Updated comments using https://source.android.com/setup/contribute/respectful-code
This commit is contained in:
committed by
Android (Google) Code Review
commit
def65d889c
@@ -895,7 +895,7 @@ public class RingtoneManager {
|
||||
throw new IOException("External storage is not mounted. Unable to install ringtones.");
|
||||
}
|
||||
|
||||
// Sanity-check: are we actually being asked to install an audio file?
|
||||
// Consistency-check: are we actually being asked to install an audio file?
|
||||
final String mimeType = mContext.getContentResolver().getType(fileUri);
|
||||
if(mimeType == null ||
|
||||
!(mimeType.startsWith("audio/") || mimeType.equals("application/ogg"))) {
|
||||
|
||||
@@ -1810,7 +1810,7 @@ public class CameraTestUtils extends Assert {
|
||||
/**
|
||||
* Simple validation of JPEG image size and format.
|
||||
* <p>
|
||||
* Only validate the image object sanity. It is fast, but doesn't actually
|
||||
* Only validate the image object consistency. It is fast, but doesn't actually
|
||||
* check the buffer data. Assert is used here as it make no sense to
|
||||
* continue the test if the jpeg image captured has some serious failures.
|
||||
* </p>
|
||||
|
||||
@@ -572,7 +572,7 @@ public class Camera2StillCaptureTest extends Camera2SurfaceViewTestCase {
|
||||
/**
|
||||
* Validate JPEG capture image object soundness and test.
|
||||
* <p>
|
||||
* In addition to image object sanity, this function also does the decoding
|
||||
* In addition to image object consistency, this function also does the decoding
|
||||
* test, which is slower.
|
||||
* </p>
|
||||
*
|
||||
|
||||
@@ -927,7 +927,7 @@ public class CameraMetadataTest extends junit.framework.TestCase {
|
||||
};
|
||||
assertArrayEquals(expectedRaw16Outputs, map.getOutputs(ImageFormat.RAW_SENSOR));
|
||||
|
||||
// Finally, do a round-trip check as a sanity
|
||||
// Finally, do a round-trip check for consistency
|
||||
checkKeyMarshal(
|
||||
"android.scaler.availableInputOutputFormatsMap",
|
||||
new ReprocessFormatsMap(contents),
|
||||
|
||||
Reference in New Issue
Block a user