/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
ViewMeasureSpecTest.java | 22 assertEquals(View.MeasureSpec.AT_MOST, 23 MeasureSpec.getMode(MeasureSpec.makeMeasureSpec(320, View.MeasureSpec.AT_MOST))); 33 MeasureSpec.getSize(MeasureSpec.makeMeasureSpec(1280, View.MeasureSpec.AT_MOST))); 42 assertEquals("MeasureSpec: AT_MOST 960", 43 MeasureSpec.toString(MeasureSpec.makeMeasureSpec(960, View.MeasureSpec.AT_MOST)));
|
/frameworks/base/core/java/com/android/internal/widget/ |
PreferenceImageView.java | 48 if (widthMode == MeasureSpec.AT_MOST || widthMode == MeasureSpec.UNSPECIFIED) { 53 widthMeasureSpec = MeasureSpec.makeMeasureSpec(maxWidth, MeasureSpec.AT_MOST); 58 if (heightMode == MeasureSpec.AT_MOST || heightMode == MeasureSpec.UNSPECIFIED) { 63 heightMeasureSpec = MeasureSpec.makeMeasureSpec(maxHeight, MeasureSpec.AT_MOST);
|
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/ui/ |
PreferenceImageView.java | 48 if (widthMode == MeasureSpec.AT_MOST || widthMode == MeasureSpec.UNSPECIFIED) { 53 widthMeasureSpec = MeasureSpec.makeMeasureSpec(maxWidth, MeasureSpec.AT_MOST); 58 if (heightMode == MeasureSpec.AT_MOST || heightMode == MeasureSpec.UNSPECIFIED) { 63 heightMeasureSpec = MeasureSpec.makeMeasureSpec(maxHeight, MeasureSpec.AT_MOST);
|
/frameworks/support/v7/preference/src/android/support/v7/internal/widget/ |
PreferenceImageView.java | 85 if (widthMode == MeasureSpec.AT_MOST || widthMode == MeasureSpec.UNSPECIFIED) { 90 widthMeasureSpec = MeasureSpec.makeMeasureSpec(maxWidth, MeasureSpec.AT_MOST); 95 if (heightMode == MeasureSpec.AT_MOST || heightMode == MeasureSpec.UNSPECIFIED) { 100 heightMeasureSpec = MeasureSpec.makeMeasureSpec(maxHeight, MeasureSpec.AT_MOST);
|
/packages/apps/LegacyCamera/src/com/android/camera/ui/ |
ExpandedGridView.java | 32 // AT_MOST to show all the rows. 33 heightMeasureSpec = MeasureSpec.makeMeasureSpec(65536, MeasureSpec.AT_MOST);
|
ControlPanelLayout.java | 61 if (widthSpecSize > 0 && heightSpecSize > 0 && mode == MeasureSpec.AT_MOST) { 76 if (mode == MeasureSpec.AT_MOST && measuredSize > specSize) {
|
/pdk/apps/TestingCamera2/src/com/android/testingcamera2/ |
FixedAspectSurfaceView.java | 91 // Width is fixed, heightMode either AT_MOST or UNSPECIFIED, so adjust height 94 // Height is fixed, widthMode either AT_MOST or UNSPECIFIED, so adjust width 96 } else if (widthMode == MeasureSpec.AT_MOST && heightMode == MeasureSpec.AT_MOST) { 108 } else if (widthMode == MeasureSpec.AT_MOST) { 111 } else if (heightMode == MeasureSpec.AT_MOST) { 128 // Override width/height if needed for EXACTLY and AT_MOST specs
|
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
DefaultMeasureSpecTest.java | 19 import static android.view.View.MeasureSpec.AT_MOST; 73 new Object[]{null, makeMeasureSpec(10, EXACTLY), makeMeasureSpec(100, AT_MOST), 10, 75 new Object[]{null, makeMeasureSpec(10, AT_MOST), makeMeasureSpec(100, EXACTLY), 0, 83 new Object[]{null, makeMeasureSpec(10, EXACTLY), makeMeasureSpec(100, AT_MOST), 10, 85 new Object[]{null, makeMeasureSpec(10, EXACTLY), makeMeasureSpec(100, AT_MOST), 10, 88 new Object[]{null, makeMeasureSpec(10, AT_MOST), makeMeasureSpec(100, EXACTLY), 10, 90 new Object[]{null, makeMeasureSpec(10, AT_MOST), makeMeasureSpec(100, EXACTLY), 5, 133 case AT_MOST: 148 case AT_MOST: 167 if (mode == View.MeasureSpec.AT_MOST) { [all...] |
GridLayoutManagerWrapContentWithAspectRatioTest.java | 40 import static android.view.View.MeasureSpec.AT_MOST; 147 MeasureSpecMatcher.is(borders[1] - borders[0], AT_MOST)); 149 MeasureSpecMatcher.is(borders[3] - borders[1], AT_MOST)); 173 MeasureSpecMatcher.is(30, AT_MOST)); 225 MeasureSpecMatcher.is(borders[1] - borders[0], AT_MOST)); 227 MeasureSpecMatcher.is(borders[2] - borders[1], AT_MOST)); 251 MeasureSpecMatcher.is(15, AT_MOST)); 301 MeasureSpecMatcher.is(borders[1] - borders[0], AT_MOST)); 303 MeasureSpecMatcher.is(borders[2] - borders[1], AT_MOST)); 315 MeasureSpecMatcher.is(15, AT_MOST)); [all...] |
TestResizingRelayoutWithAutoMeasure.java | 19 import static android.view.View.MeasureSpec.AT_MOST; 99 mWidthMultiplier == 1f ? EXACTLY : AT_MOST), 101 mHeightMultiplier == 1f ? EXACTLY : AT_MOST));
|
/cts/tests/tests/view/src/android/view/cts/ |
View_MeasureSpecTest.java | 41 View.MeasureSpec.AT_MOST); 61 assertEquals("MeasureSpec: AT_MOST " + MEASURE_SPEC_SIZE, 70 assertEquals(View.MeasureSpec.AT_MOST, 79 assertEquals(MEASURE_SPEC_SIZE + View.MeasureSpec.AT_MOST,
|
/developers/build/prebuilts/gradle/HdrViewfinder/Application/src/main/java/com/example/android/hdrviewfinder/ |
FixedAspectSurfaceView.java | 104 // Width is fixed, heightMode either AT_MOST or UNSPECIFIED, so adjust height 107 // Height is fixed, widthMode either AT_MOST or UNSPECIFIED, so adjust width 109 } else if (widthMode == MeasureSpec.AT_MOST && heightMode == MeasureSpec.AT_MOST) { 121 } else if (widthMode == MeasureSpec.AT_MOST) { 124 } else if (heightMode == MeasureSpec.AT_MOST) { 141 // Override width/height if needed for EXACTLY and AT_MOST specs
|
/developers/samples/android/media/HdrViewfinder/Application/src/main/java/com/example/android/hdrviewfinder/ |
FixedAspectSurfaceView.java | 104 // Width is fixed, heightMode either AT_MOST or UNSPECIFIED, so adjust height 107 // Height is fixed, widthMode either AT_MOST or UNSPECIFIED, so adjust width 109 } else if (widthMode == MeasureSpec.AT_MOST && heightMode == MeasureSpec.AT_MOST) { 121 } else if (widthMode == MeasureSpec.AT_MOST) { 124 } else if (heightMode == MeasureSpec.AT_MOST) { 141 // Override width/height if needed for EXACTLY and AT_MOST specs
|
/development/samples/browseable/HdrViewfinder/src/com.example.android.hdrviewfinder/ |
FixedAspectSurfaceView.java | 104 // Width is fixed, heightMode either AT_MOST or UNSPECIFIED, so adjust height 107 // Height is fixed, widthMode either AT_MOST or UNSPECIFIED, so adjust width 109 } else if (widthMode == MeasureSpec.AT_MOST && heightMode == MeasureSpec.AT_MOST) { 121 } else if (widthMode == MeasureSpec.AT_MOST) { 124 } else if (heightMode == MeasureSpec.AT_MOST) { 141 // Override width/height if needed for EXACTLY and AT_MOST specs
|
/frameworks/base/tests/WindowAnimationJank/src/android/windowanimationjank/ |
FlowLayout.java | 48 if (MeasureSpec.getMode(heightMeasureSpec) == MeasureSpec.AT_MOST) { 49 childHeightMeasureSpec = MeasureSpec.makeMeasureSpec(height, MeasureSpec.AT_MOST); 57 child.measure(MeasureSpec.makeMeasureSpec(width, MeasureSpec.AT_MOST), 74 } else if (MeasureSpec.getMode(heightMeasureSpec) == MeasureSpec.AT_MOST) {
|
/frameworks/rs/java/tests/RsCameraDemo/src/com/android/example/rscamera/ |
FixedAspectSurfaceView.java | 105 // Width is fixed, heightMode either AT_MOST or UNSPECIFIED, so adjust height 108 // Height is fixed, widthMode either AT_MOST or UNSPECIFIED, so adjust width 110 } else if (widthMode == MeasureSpec.AT_MOST && heightMode == MeasureSpec.AT_MOST) { 122 } else if (widthMode == MeasureSpec.AT_MOST) { 125 } else if (heightMode == MeasureSpec.AT_MOST) { 142 // Override width/height if needed for EXACTLY and AT_MOST specs
|
/packages/apps/Contacts/src/com/android/contacts/widget/ |
FullHeightLinearLayout.java | 45 if (MeasureSpec.getMode(heightMeasureSpec) == MeasureSpec.AT_MOST) {
|
/development/samples/devbytes/animation/ListViewExpandingCells/src/com/example/android/expandingcells/ |
ExpandingLayout.java | 57 heightMeasureSpec = MeasureSpec.makeMeasureSpec(mExpandedHeight, MeasureSpec.AT_MOST);
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowViewMeasureSpec.java | 45 else if (mode == View.MeasureSpec.AT_MOST) 46 sb.append("AT_MOST ");
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
TextViewPerformanceTest.java | 50 mLabelView.measure(View.MeasureSpec.AT_MOST | 320, View.MeasureSpec.AT_MOST | 240); 61 mTextView.measure(View.MeasureSpec.AT_MOST | 320, View.MeasureSpec.AT_MOST | 240);
|
LabelView.java | 142 if (specMode == MeasureSpec.AT_MOST) { 143 // Respect AT_MOST value if that was what is called for by measureSpec 169 if (specMode == MeasureSpec.AT_MOST) { 170 // Respect AT_MOST value if that was what is called for by measureSpec
|
/packages/apps/Gallery2/src/com/android/photos/views/ |
SquareImageView.java | 45 if (heightMode == MeasureSpec.AT_MOST) {
|
/development/samples/ApiDemos/src/com/example/android/apis/animation/ |
FixedGridLayout.java | 58 MeasureSpec.AT_MOST); 60 MeasureSpec.AT_MOST);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
FixedSizeFrameLayout.java | 82 super.onMeasure(MeasureSpec.makeMeasureSpec(width, MeasureSpec.AT_MOST), 83 MeasureSpec.makeMeasureSpec(height, MeasureSpec.AT_MOST));
|
/external/webrtc/talk/app/webrtc/androidtests/src/org/webrtc/ |
SurfaceViewRendererOnMeasureTest.java | 52 Arrays.asList(MeasureSpec.EXACTLY, MeasureSpec.AT_MOST); 181 final int widthSpec = MeasureSpec.makeMeasureSpec(720, MeasureSpec.AT_MOST); 182 final int heightSpec = MeasureSpec.makeMeasureSpec(1280, MeasureSpec.AT_MOST); 194 final int heightSpec = MeasureSpec.makeMeasureSpec(1280, MeasureSpec.AT_MOST); 204 final int widthSpec = MeasureSpec.makeMeasureSpec(720, MeasureSpec.AT_MOST);
|