text: package org.robolectric.shadows;
  
  import static android.os.Build.VERSION_CODES.LOLLIPOP;
  import static android.os.Build.VERSION_CODES.P;
  import static android.os.Build.VERSION_CODES.Q;
  
  import android.hardware.camera2.impl.CameraMetadataNative;
  import org.robolectric.annotation.Implementation;
  import org.robolectric.annotation.Implements;
  
  /** Shadow class for {@link CameraMetadataNative} */
  @Implements(value = CameraMetadataNative.class, minSdk = LOLLIPOP, isInAndroidSdk = false)
  public class ShadowCameraMetadataNative {
  
    @Implementation(minSdk = P, maxSdk = Q)
    protected long nativeAllocate() {
      return 1L;
    }
  
    @Implementation(minSdk = P, maxSdk = Q)
    protected long nativeAllocateCopy(CameraMetadataNative other) {
      return 1L;
    }
  }
  