Home
last modified time | relevance | path

Searched refs:Gravity (Results 1 – 25 of 31) sorted by relevance

12

/external/robolectric/robolectric/src/test/java/org/robolectric/shadows/
DShadowLinearLayoutTest.java7 import android.view.Gravity;
45 assertThat(shadow.getGravity()).isEqualTo(Gravity.TOP | Gravity.START); in canAnswerGravity()
46 linearLayout.setGravity(Gravity.CENTER_VERTICAL); // Only affects horizontal. in canAnswerGravity()
47 assertThat(shadow.getGravity()).isEqualTo(Gravity.CENTER_VERTICAL | Gravity.START); in canAnswerGravity()
48 linearLayout.setGravity(Gravity.BOTTOM | Gravity.CENTER_HORIZONTAL); // Affects both directions. in canAnswerGravity()
49 assertThat(shadow.getGravity()).isEqualTo(Gravity.BOTTOM | Gravity.CENTER_HORIZONTAL); in canAnswerGravity()
DShadowToastTest.java7 import android.view.Gravity;
86 toast.setGravity(Gravity.CENTER, 0, 0); in shouldSetGravityCorrectly()
87 assertThat(toast.getGravity()).isEqualTo(Gravity.CENTER); in shouldSetGravityCorrectly()
DShadowTextViewTest.java32 import android.view.Gravity;
103 assertThat(textView.getGravity()).isNotEqualTo(Gravity.CENTER); in testGetGravity()
104 textView.setGravity(Gravity.CENTER); in testGetGravity()
105 assertThat(textView.getGravity()).isEqualTo(Gravity.CENTER); in testGetGravity()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowLinearLayoutTest.java7 import android.view.Gravity;
45 assertThat(shadow.getGravity()).isEqualTo(Gravity.TOP | Gravity.START); in canAnswerGravity()
46 linearLayout.setGravity(Gravity.CENTER_VERTICAL); // Only affects horizontal. in canAnswerGravity()
47 assertThat(shadow.getGravity()).isEqualTo(Gravity.CENTER_VERTICAL | Gravity.START); in canAnswerGravity()
48 linearLayout.setGravity(Gravity.BOTTOM | Gravity.CENTER_HORIZONTAL); // Affects both directions. in canAnswerGravity()
49 assertThat(shadow.getGravity()).isEqualTo(Gravity.BOTTOM | Gravity.CENTER_HORIZONTAL); in canAnswerGravity()
DShadowToastTest.java7 import android.view.Gravity;
86 toast.setGravity(Gravity.CENTER, 0, 0); in shouldSetGravityCorrectly()
87 assertThat(toast.getGravity()).isEqualTo(Gravity.CENTER); in shouldSetGravityCorrectly()
DShadowTextViewTest.java32 import android.view.Gravity;
103 assertThat(textView.getGravity()).isNotEqualTo(Gravity.CENTER); in testGetGravity()
104 textView.setGravity(Gravity.CENTER); in testGetGravity()
105 assertThat(textView.getGravity()).isEqualTo(Gravity.CENTER); in testGetGravity()
/external/robolectric/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowPhoneWindow.java8 import android.view.Gravity;
39 return Gravity.CENTER | Gravity.BOTTOM; in getOptionsPanelGravity()
/external/setupdesign/main/src/com/google/android/setupdesign/view/
DIllustration.java30 import android.view.Gravity;
167 Gravity.apply( in onLayout()
168 Gravity.FILL_HORIZONTAL | Gravity.TOP, in onLayout()
/external/lottie/sample/src/main/kotlin/com/airbnb/lottie/samples/
DTrimView.kt6 import android.view.Gravity
52 leftLp.gravity = Gravity.START
56 rightLp.gravity = Gravity.END
/external/setupdesign/main/src/com/google/android/setupdesign/util/
DContentStyler.java23 import android.view.Gravity;
217 return Gravity.CENTER; in getPartnerContentTextGravity()
219 return Gravity.START; in getPartnerContentTextGravity()
221 return Gravity.END; in getPartnerContentTextGravity()
DPartnerStyleHelper.java23 import android.view.Gravity;
49 return Gravity.CENTER; in getLayoutGravity()
51 return Gravity.START; in getLayoutGravity()
DItemStyler.java23 import android.view.Gravity;
69 ((LinearLayout) listItemView).setGravity(Gravity.CENTER_VERTICAL); in applyPartnerCustomizationItemStyle()
/external/replicaisland/src/com/replica/replicaisland/
DCustomToastSystem.java21 import android.view.Gravity;
52 mToast.setGravity(Gravity.CENTER, 0, 0); in toast()
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/
DGlideBitmapDrawable.java12 import android.view.Gravity;
98 Gravity.apply(BitmapState.GRAVITY, width, height, getBounds(), destRect); in draw()
142 private static final int GRAVITY = Gravity.FILL;
/external/setupdesign/main/src/com/google/android/setupdesign/items/
DExpandableSwitchItem.java28 import android.view.Gravity;
89 setIconGravity(Gravity.TOP); in ExpandableSwitchItem()
97 setIconGravity(a.getInt(R.styleable.SudItem_sudIconGravity, Gravity.TOP)); in ExpandableSwitchItem()
DItem.java24 import android.view.Gravity;
50 private int iconGravity = Gravity.CENTER_VERTICAL;
68 iconGravity = a.getInt(R.styleable.SudItem_sudIconGravity, Gravity.CENTER_VERTICAL); in Item()
/external/setupdesign/main/src/com/google/android/setupdesign/
DSetupWizardLayout.java35 import android.view.Gravity;
347 ((BitmapDrawable) horizontalTile).setGravity(Gravity.TOP); in getIllustration()
351 ((BitmapDrawable) asset).setGravity(Gravity.TOP | Gravity.LEFT); in getIllustration()
/external/robolectric/integration_tests/androidx_test/src/test/java/org/robolectric/integrationtests/axt/
DEspressoWithWindowLayersTest.java16 import android.view.Gravity;
180 popup.showAtLocation(view, Gravity.LEFT | Gravity.TOP, viewLocation[0], viewLocation[1]); in showPopupOver()
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/gif/
DGifDrawable.java14 import android.view.Gravity;
224Gravity.apply(GifState.GRAVITY, getIntrinsicWidth(), getIntrinsicHeight(), getBounds(), destRect); in draw()
313 private static final int GRAVITY = Gravity.FILL;
/external/setupcompat/main/java/com/google/android/setupcompat/view/
DButtonBarLayout.java21 import android.view.Gravity;
136 setHorizontalGravity(Gravity.CENTER); in setStacked()
/external/ImageMagick/PerlMagick/demo/
Dsettings.pl19 Gravity => 'East',
/external/sl4a/InterpreterForAndroid/src/com/googlecode/android_scripting/activity/
DMain.java26 import android.view.Gravity;
121 mLayout.setGravity(Gravity.CENTER_HORIZONTAL); in initializeViews()
/external/webrtc/examples/androidvoip/java/org/webrtc/examples/androidvoip/
DMainActivity.java19 import android.view.Gravity;
225 toast.setGravity(Gravity.TOP, 0, 200); in showToast()
/external/setupcompat/main/java/com/google/android/setupcompat/template/
DFooterBarMixin.java33 import android.view.Gravity;
296 buttonContainer.setGravity(Gravity.END | Gravity.CENTER_VERTICAL);
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/ui/
DViewInflater.java30 import android.view.Gravity;
495 setInteger(view, attr, getInteger(Gravity.class, value)); in setProperty()
555 setIntegerField(layout, "gravity", getInteger(Gravity.class, value)); in setLayoutProperty()

12