Package org.robolectric.shadows
Class ShadowCameraMetadata<TKey>
java.lang.Object
org.robolectric.shadows.ShadowCameraMetadata<TKey>
@Implements(android.hardware.camera2.CameraMetadata.class)
public class ShadowCameraMetadata<TKey>
extends Object
Shadow for
CameraMetadata.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetKeys(Class<?> type, Class<TKey> keyClass, CameraMetadata<TKey> instance, int[] filterTags, boolean includeSynthetic) The Android framework implementation of this method has a bug that caused it to include the __robo_data__ field in the list of keys.protected static <TKey> ArrayList<TKey> getKeysStatic(Class<?> type, Class<TKey> keyClass, CameraMetadata<TKey> instance, int[] filterTags)
-
Constructor Details
-
ShadowCameraMetadata
public ShadowCameraMetadata()
-
-
Method Details
-
getKeys
@Implementation(minSdk=29) protected ArrayList<TKey> getKeys(Class<?> type, Class<TKey> keyClass, CameraMetadata<TKey> instance, int[] filterTags, boolean includeSynthetic) The Android framework implementation of this method has a bug that caused it to include the __robo_data__ field in the list of keys. This bug is fixed starting in SDK 37.TODO(hoisie): Remove this shadow when PREINSTRUMENTED_VERSION is updated to 8 or above.
-
getKeys
@Implementation(minSdk=26, maxSdk=28) protected ArrayList<TKey> getKeys(Class<?> type, Class<TKey> keyClass, CameraMetadata<TKey> instance, int[] filterTags) -
getKeysStatic
@Implementation(maxSdk=25) protected static <TKey> ArrayList<TKey> getKeysStatic(Class<?> type, Class<TKey> keyClass, CameraMetadata<TKey> instance, int[] filterTags)
-