Merge "Removed IAE from HardwarePropertiesManager." into nyc-dev

am: 0097077396

* commit '00970773960de9f81dafcc7e864f3e278fe53662':
  Removed IAE from HardwarePropertiesManager.
This commit is contained in:
Polina Bondarenko
2016-02-29 18:41:48 +00:00
committed by android-build-merger

View File

@@ -69,7 +69,6 @@ public class HardwarePropertiesManager {
* @return an array of requested float device temperatures.
* Empty if platform doesn't provide the queried temperature.
*
* @throws IllegalArgumentException if an incorrect temperature type is queried.
* @throws SecurityException if a non profile or device owner tries to call this method.
*/
public @NonNull float[] getDeviceTemperatures(@DeviceTemperatureType int type) {
@@ -84,7 +83,8 @@ public class HardwarePropertiesManager {
return new float[0];
}
default:
throw new IllegalArgumentException();
Log.w(TAG, "Unknown device temperature type.");
return new float[0];
}
}