/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);
|
/developers/build/prebuilts/gradle/HdrViewfinder/Application/src/main/java/com/example/android/hdrviewfinder/ |
FixedAspectSurfaceView.java | 103 // Width is fixed, heightMode either AT_MOST or UNSPECIFIED, so adjust height 106 // Height is fixed, widthMode either AT_MOST or UNSPECIFIED, so adjust width 108 } else if (widthMode == MeasureSpec.AT_MOST && heightMode == MeasureSpec.AT_MOST) { 120 } else if (widthMode == MeasureSpec.AT_MOST) { 123 } else if (heightMode == MeasureSpec.AT_MOST) { 140 // 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 | 103 // Width is fixed, heightMode either AT_MOST or UNSPECIFIED, so adjust height 106 // Height is fixed, widthMode either AT_MOST or UNSPECIFIED, so adjust width 108 } else if (widthMode == MeasureSpec.AT_MOST && heightMode == MeasureSpec.AT_MOST) { 120 } else if (widthMode == MeasureSpec.AT_MOST) { 123 } else if (heightMode == MeasureSpec.AT_MOST) { 140 // Override width/height if needed for EXACTLY and AT_MOST specs
|
/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/src/androidTest/java/androidx/recyclerview/widget/ |
DefaultMeasureSpecTest.java | 19 import static android.view.View.MeasureSpec.AT_MOST; 62 new Object[]{null, makeMeasureSpec(10, EXACTLY), makeMeasureSpec(100, AT_MOST), 10, 64 new Object[]{null, makeMeasureSpec(10, AT_MOST), makeMeasureSpec(100, EXACTLY), 0, 72 new Object[]{null, makeMeasureSpec(10, EXACTLY), makeMeasureSpec(100, AT_MOST), 10, 74 new Object[]{null, makeMeasureSpec(10, EXACTLY), makeMeasureSpec(100, AT_MOST), 10, 77 new Object[]{null, makeMeasureSpec(10, AT_MOST), makeMeasureSpec(100, EXACTLY), 10, 79 new Object[]{null, makeMeasureSpec(10, AT_MOST), makeMeasureSpec(100, EXACTLY), 5, 122 case AT_MOST: 137 case AT_MOST: 156 if (mode == View.MeasureSpec.AT_MOST) { [all...] |
GridLayoutManagerWrapContentWithAspectRatioTest.java | 19 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...] |
/cts/tests/tests/view/src/android/view/cts/ |
View_MeasureSpecTest.java | 49 View.MeasureSpec.AT_MOST); 68 assertEquals("MeasureSpec: AT_MOST " + MEASURE_SPEC_SIZE, 78 assertEquals(View.MeasureSpec.AT_MOST, 88 assertEquals(MEASURE_SPEC_SIZE + View.MeasureSpec.AT_MOST,
|
/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/tests/java_api/CannyLive/src/com/android/example/cannylive/ |
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
|
/frameworks/rs/tests/java_api/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
|
/frameworks/support/preference/src/main/java/androidx/preference/internal/ |
PreferenceImageView.java | 92 if (widthMode == MeasureSpec.AT_MOST || widthMode == MeasureSpec.UNSPECIFIED) { 97 widthMeasureSpec = MeasureSpec.makeMeasureSpec(maxWidth, MeasureSpec.AT_MOST); 102 if (heightMode == MeasureSpec.AT_MOST || heightMode == MeasureSpec.UNSPECIFIED) { 107 heightMeasureSpec = MeasureSpec.makeMeasureSpec(maxHeight, MeasureSpec.AT_MOST);
|
/packages/apps/Contacts/src/com/android/contacts/widget/ |
FullHeightLinearLayout.java | 45 if (MeasureSpec.getMode(heightMeasureSpec) == MeasureSpec.AT_MOST) {
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
ShadowFrameLayoutTest.java | 34 frameLayout.measure(View.MeasureSpec.makeMeasureSpec(150, View.MeasureSpec.AT_MOST), 35 View.MeasureSpec.makeMeasureSpec(300, View.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 | 55 mLabelView.measure(View.MeasureSpec.AT_MOST | 320, View.MeasureSpec.AT_MOST | 240); 66 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) {
|
/packages/services/Telecomm/src/com/android/server/telecom/components/ |
NonScrollListView.java | 42 Integer.MAX_VALUE >> 2, MeasureSpec.AT_MOST);
|
/development/samples/ApiDemos/src/com/example/android/apis/animation/ |
FixedGridLayout.java | 58 MeasureSpec.AT_MOST); 60 MeasureSpec.AT_MOST);
|