Home
last modified time | relevance | path

Searched refs:mBehavior (Results 1 – 15 of 15) sorted by relevance

/frameworks/support/samples/SupportDesignDemos/src/com/example/android/support/design/widget/
DBottomSheetDynamicContent.java41 private BottomSheetBehavior<RecyclerView> mBehavior; field in BottomSheetDynamicContent
51 if (mBehavior != null) {
52 mBehavior.setState(BottomSheetBehavior.STATE_EXPANDED);
60 if (mBehavior != null) {
61 mBehavior.setState(BottomSheetBehavior.STATE_EXPANDED);
66 if (mBehavior != null) {
67 mBehavior.setState(BottomSheetBehavior.STATE_EXPANDED);
71 if (mBehavior != null) {
72 mBehavior.setState(BottomSheetBehavior.STATE_COLLAPSED);
91 mBehavior = BottomSheetBehavior.from(list); in onCreate()
DBottomSheetUsageBase.java35 protected BottomSheetBehavior<LinearLayout> mBehavior; field in BottomSheetUsageBase
42 mBehavior = BottomSheetBehavior.from((LinearLayout) findViewById(R.id.bottom_sheet)); in onCreate()
47 if (mBehavior != null) { in onBackPressed()
48 int state = mBehavior.getState(); in onBackPressed()
51 mBehavior.setState(BottomSheetBehavior.STATE_COLLAPSED); in onBackPressed()
DBottomSheetWithFab.java40 if (v.getId() == R.id.toggle && mBehavior != null) {
42 if (mBehavior.getState() == BottomSheetBehavior.STATE_HIDDEN) {
43 mBehavior.setState(BottomSheetBehavior.STATE_COLLAPSED);
45 mBehavior.setState(BottomSheetBehavior.STATE_HIDDEN);
61 mBehavior.setBottomSheetCallback(new BottomSheetBehavior.BottomSheetCallback() { in onCreate()
DBottomSheetHideable.java50 mBehavior.setBottomSheetCallback(new BottomSheetBehavior.BottomSheetCallback() { in onCreate()
77 if (v.getId() == R.id.toggle && mBehavior != null) {
79 if (mBehavior.getState() == BottomSheetBehavior.STATE_HIDDEN) {
80 mBehavior.setState(BottomSheetBehavior.STATE_COLLAPSED);
82 mBehavior.setState(BottomSheetBehavior.STATE_HIDDEN);
/frameworks/av/media/libeffects/testlibs/
DAudioFormatAdapter.h64 mBehavior = behavior; in configure()
80 if (mBehavior == EFFECT_BUFFER_ACCESS_WRITE) { in process()
85 } else if (mBehavior == EFFECT_BUFFER_ACCESS_ACCUMULATE) { in process()
114 uint32_t mBehavior; variable
150 if (mBehavior == EFFECT_BUFFER_ACCESS_WRITE) { in ConvertOutput()
154 } else if (mBehavior == EFFECT_BUFFER_ACCESS_ACCUMULATE) { in ConvertOutput()
/frameworks/support/design/src/android/support/design/widget/
DBottomSheetDialog.java44 private BottomSheetBehavior<FrameLayout> mBehavior; field in BottomSheetDialog
102 if (mBehavior != null) { in setCancelable()
103 mBehavior.setHideable(cancelable); in setCancelable()
111 if (mBehavior != null) { in onStart()
112 mBehavior.setState(BottomSheetBehavior.STATE_COLLAPSED); in onStart()
135 mBehavior = BottomSheetBehavior.from(bottomSheet); in wrapInBottomSheet()
136 mBehavior.setBottomSheetCallback(mBottomSheetCallback); in wrapInBottomSheet()
137 mBehavior.setHideable(mCancelable); in wrapInBottomSheet()
DCoordinatorLayout.java1206 if (lp.mBehavior != null) { in drawChild()
1207 final float scrimAlpha = lp.mBehavior.getScrimOpacity(this, child); in drawChild()
1212 mScrimPaint.setColor(lp.mBehavior.getScrimColor(this, child)); in drawChild()
2662 Behavior mBehavior; field in CoordinatorLayout.LayoutParams
2751 mBehavior = parseBehavior(context, attrs, a.getString( in LayoutParams()
2756 if (mBehavior != null) { in LayoutParams()
2758 mBehavior.onAttachedToLayoutParams(this); in LayoutParams()
2807 return mBehavior; in getBehavior()
2820 if (mBehavior != behavior) { in setBehavior()
2821 if (mBehavior != null) { in setBehavior()
[all …]
/frameworks/support/design/tests/src/android/support/design/widget/
DBottomSheetBehaviorTouchTest.java46 private BottomSheetBehavior<FrameLayout> mBehavior; field in BottomSheetBehaviorTouchTest
77 mBehavior = new BottomSheetBehavior<>(); in setUpBottomSheet()
78 mBehavior.setPeekHeight(PEEK_HEIGHT); in setUpBottomSheet()
79 params.setBehavior(mBehavior); in setUpBottomSheet()
86 assertThat(mBehavior, is(sameInstance(BottomSheetBehavior.from(mBottomSheet)))); in testSetUp()
DBottomSheetBehaviorActivity.java32 BottomSheetBehavior mBehavior; field in BottomSheetBehaviorActivity
45 mBehavior = BottomSheetBehavior.from(mBottomSheet); in onContentViewSet()
52 mBehavior.setState(initialState); in onContentViewSet()
DBottomSheetBehaviorWithInsetsTest.java40 assertThat(activity.mBehavior.getState(), is(BottomSheetBehavior.STATE_COLLAPSED)); in testFitsSystemWindows()
43 is(activity.mCoordinatorLayout.getHeight() - activity.mBehavior.getPeekHeight())); in testFitsSystemWindows()
DBottomSheetBehaviorInitialStateTest.java49 assertThat(activity.mBehavior.getState(), is(BottomSheetBehavior.STATE_EXPANDED)); in testSetStateExpanded()
62 assertThat(activity.mBehavior.getState(), is(BottomSheetBehavior.STATE_HIDDEN)); in testSetStateHidden()
DBottomSheetBehaviorTest.java798 return mActivityTestRule.getActivity().mBehavior; in getBehavior()
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
DBaseWrapContentWithAspectRatioTest.java53 MeasureBehavior mBehavior; field in BaseWrapContentWithAspectRatioTest.LoggingView
56 mBehavior = behavior; in setBehavior()
78 mBehavior.onMeasure(this, widthMeasureSpec, heightMeasureSpec); in onMeasure()
84 mBehavior.onLayout(changed, left, top, right, bottom); in onLayout()
92 mBehavior.setLayoutParams(this); in prepareLayoutParams()
DBaseWrapContentTest.java469 return casted.mView.mBehavior.getId(); in getItemId()
/frameworks/base/core/java/android/widget/
DProgressBar.java182 private int mBehavior; field in ProgressBar
264 mBehavior = a.getInt(R.styleable.ProgressBar_indeterminateBehavior, mBehavior); in ProgressBar()
537 mBehavior = AlphaAnimation.RESTART; in initProgressBar()
1628 mAnimation.setRepeatMode(mBehavior); in startAnimation()