Searched refs:aspectRatio (Results 1 - 8 of 8) sorted by relevance

/packages/apps/VideoEditor/src/com/android/videoeditor/
H A DExportOptionsDialog.java52 * @param aspectRatio The aspect ratio
58 DialogInterface.OnCancelListener cancelListener, final int aspectRatio) {
72 prepareContent(myView, aspectRatio);
82 sizeSpinner.getSelectedItemPosition(), aspectRatio);
106 * @param aspectRatio The project aspect ratio
108 private static void prepareContent(View view, int aspectRatio) { argument
115 MediaProperties.getSupportedResolutions(aspectRatio);
141 * @param aspectRatio The aspect ratio
145 private static int indexToMovieHeight(int sizeIndex, int aspectRatio) { argument
147 MediaProperties.getSupportedResolutions(aspectRatio);
56 create(Context context, final ExportOptionsListener positiveListener, DialogInterface.OnClickListener negativeListener, DialogInterface.OnCancelListener cancelListener, final int aspectRatio) argument
[all...]
H A DVideoEditorActivity.java614 final int aspectRatio = aspectRatiosList.get(i);
615 if (aspectRatio == currentAspectRatio) {
684 int aspectRatio = aspectRatios.get(i);
685 switch (aspectRatio) {
722 final int aspectRatio = aspectRatios.get(which);
724 aspectRatio);
1388 protected void setAspectRatio(final int aspectRatio) { argument
1392 switch (aspectRatio) {
1423 logd("setAspectRatio: " + aspectRatio + ", size: " + lp.width + "x" + lp.height);
H A DVideoEditorBaseActivity.java140 public void onVideoEditorAspectRatioSet(String projectPath, int aspectRatio, argument
156 setAspectRatio(aspectRatio);
932 * @param aspectRatio The new aspect ratio
934 protected abstract void setAspectRatio(int aspectRatio); argument
/packages/apps/Camera/src/com/android/camera/
H A DCameraScreenNail.java176 float aspectRatio;
178 aspectRatio = (float) getTextureWidth() / (float) getTextureHeight();
180 aspectRatio = (float) getTextureHeight() / (float) getTextureWidth();
185 (int) (mRenderHeight * aspectRatio));
187 (int)(mRenderWidth / aspectRatio));
190 (int) (mRenderHeight / aspectRatio));
192 (int) (mRenderWidth * aspectRatio));
/packages/apps/VideoEditor/src/com/android/videoeditor/service/
H A DVideoEditorProject.java263 * @param aspectRatio The aspect ratio
265 void setAspectRatio(int aspectRatio) { argument
266 mAspectRatio = aspectRatio;
699 int aspectRatio = MediaProperties.ASPECT_RATIO_UNDEFINED;
701 if (aspectRatio == MediaProperties.ASPECT_RATIO_UNDEFINED) {
702 aspectRatio = mediaItem.getAspectRatio();
703 } else if (mediaItem.getAspectRatio() != aspectRatio) {
717 int aspectRatio = mediaItem.getAspectRatio();
718 if (!aspectRatiosList.contains(aspectRatio)) {
719 aspectRatiosList.add(aspectRatio);
[all...]
H A DApiServiceListener.java78 * @param aspectRatio The aspect ratio
81 public void onVideoEditorAspectRatioSet(String projectPath, int aspectRatio, Exception exception) {} argument
164 * @param aspectRatio The aspectRatio
169 Integer aspectRatio, Exception exception) {}
167 onMediaItemAdded(String projectPath, String mediaItemId, MovieMediaItem mediaItem, String afterMediaId, Class<?> mediaItemClass, Integer aspectRatio, Exception exception) argument
H A DApiService.java411 * @param aspectRatio The aspect ratio
413 public static void setAspectRatio(Context context, String projectPath, int aspectRatio) { argument
417 intent.putExtra(PARAM_ASPECT_RATIO, aspectRatio);
1812 final Integer aspectRatio;
1815 aspectRatio = videoEditor.getAspectRatio();
1817 aspectRatio = null;
1827 aspectRatio, false);
1881 final Integer aspectRatio;
1884 aspectRatio = videoEditor.getAspectRatio();
1886 aspectRatio
[all...]
/packages/apps/Launcher2/src/com/android/launcher2/
H A DWorkspace.java809 float aspectRatio = width / (float) height;
830 return x * aspectRatio + y;

Completed in 275 milliseconds