@Test public void givenEnableAccelerometerAttribute_whenCreated_thenEnablesAccelerometer() throws Exception { AttributeSet attributeSet = Robolectric.buildAttributeSet().addAttribute(R.attr.enableAccelerometer, "true").build(); SphericalView subject = new SphericalView(RuntimeEnvironment.application, attributeSet); assertThat(subject.isAccelerometerEnabled()).isTrue(); attributeSet = Robolectric.buildAttributeSet().addAttribute(R.attr.enableAccelerometer, "false").build(); subject = new SphericalView(RuntimeEnvironment.application, attributeSet); assertThat(subject.isAccelerometerEnabled()).isFalse(); }
public boolean isAccelerometerEnabled() { return plManager.isAccelerometerEnabled(); }
SphericalView extends RelativeLayout { public boolean isAccelerometerEnabled() { return plManager.isAccelerometerEnabled(); } }
SphericalView extends RelativeLayout { public boolean isAccelerometerEnabled() { return plManager.isAccelerometerEnabled(); } SphericalView(Context context);  SphericalView(Context context, AttributeSet attrs);  SphericalView(Context context, AttributeSet attrs, int defStyleAttr); }
SphericalView extends RelativeLayout { public boolean isAccelerometerEnabled() { return plManager.isAccelerometerEnabled(); } SphericalView(Context context);  SphericalView(Context context, AttributeSet attrs);  SphericalView(Context context, AttributeSet attrs, int defStyleAttr); void onResume(); void onPause(); void onDestroy(); @Override boolean onTouchEvent(MotionEvent event); void setPanorama(Bitmap bitmap, boolean keepCameraAngle); void setAccelerometerEnabled(boolean enabled); boolean isAccelerometerEnabled(); void setInertiaEnabled(boolean enabled); boolean isInertiaEnabled(); void setZoomEnabled(boolean enabled); boolean isZoomEnabled(); PLICamera getCamera(); float getDefaultPitch(); void setDefaultPitch(float defaultPitch); float getDefaultYaw(); void setDefaultYaw(float defaultYaw); float getDefaultZoomFactor(); void setDefaultZoomFactor(float defaultZoomFactor); float getDefaultRotationSensibility(); void setDefaultRotationSensibility(float defaultRotationSensibility); void setResetEnabled(boolean enabled); boolean isResetEnabled(); }
SphericalView extends RelativeLayout { public boolean isAccelerometerEnabled() { return plManager.isAccelerometerEnabled(); } SphericalView(Context context);  SphericalView(Context context, AttributeSet attrs);  SphericalView(Context context, AttributeSet attrs, int defStyleAttr); void onResume(); void onPause(); void onDestroy(); @Override boolean onTouchEvent(MotionEvent event); void setPanorama(Bitmap bitmap, boolean keepCameraAngle); void setAccelerometerEnabled(boolean enabled); boolean isAccelerometerEnabled(); void setInertiaEnabled(boolean enabled); boolean isInertiaEnabled(); void setZoomEnabled(boolean enabled); boolean isZoomEnabled(); PLICamera getCamera(); float getDefaultPitch(); void setDefaultPitch(float defaultPitch); float getDefaultYaw(); void setDefaultYaw(float defaultYaw); float getDefaultZoomFactor(); void setDefaultZoomFactor(float defaultZoomFactor); float getDefaultRotationSensibility(); void setDefaultRotationSensibility(float defaultRotationSensibility); void setResetEnabled(boolean enabled); boolean isResetEnabled();  }