Searched refs:orientations (Results 1 – 2 of 2) sorted by relevance
38 final int[] orientations = getOrientations(activity); in toggleOrientation() local39 activity.setRequestedOrientation(orientations[1]); in toggleOrientation()40 activity.setRequestedOrientation(orientations[0]); in toggleOrientation()50 final int[] orientations = getOrientations(activity); in switchOrientation() local51 activity.setRequestedOrientation(orientations[1]); in switchOrientation()
1747 final ArrayList<Integer> orientations = new ArrayList(); in testClipToScreenClipsToInsets() local1751 orientations.add(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); in testClipToScreenClipsToInsets()1755 orientations.add(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); in testClipToScreenClipsToInsets()1759 if (currentOrientation == Configuration.ORIENTATION_LANDSCAPE && orientations.size() > 1) { in testClipToScreenClipsToInsets()1760 Collections.swap(orientations, 0, 1); in testClipToScreenClipsToInsets()1763 for (int orientation : orientations) { in testClipToScreenClipsToInsets()