Home
last modified time | relevance | path

Searched refs:behavior (Results 1 – 25 of 35) sorted by relevance

12

/frameworks/native/libs/input/
DKeyCharacterMap.cpp234 const Behavior* behavior; in getCharacter() local
235 if (getKeyBehavior(keyCode, metaState, &key, &behavior)) { in getCharacter()
236 result = behavior->character; in getCharacter()
251 const Behavior* behavior; in getFallbackAction() local
252 if (getKeyBehavior(keyCode, metaState, &key, &behavior)) { in getFallbackAction()
253 if (behavior->fallbackKeyCode) { in getFallbackAction()
254 outFallbackAction->keyCode = behavior->fallbackKeyCode; in getFallbackAction()
255 outFallbackAction->metaState = metaState & ~behavior->metaState; in getFallbackAction()
276 for (const Behavior* behavior = key->firstBehavior; behavior; behavior = behavior->next) { in getMatch() local
277 if (behavior->character) { in getMatch()
[all …]
/frameworks/support/design/tests/src/android/support/design/widget/
DBottomSheetDialogTest.java75 BottomSheetBehavior<FrameLayout> behavior = BottomSheetBehavior.from(bottomSheet); in testBasicDialogSetup()
76 assertThat(behavior.isHideable(), is(true)); in testBasicDialogSetup()
77 assertThat(behavior, is(notNullValue())); in testBasicDialogSetup()
79 assertThat(behavior.getPeekHeight(), is(BottomSheetBehavior.PEEK_HEIGHT_AUTO)); in testBasicDialogSetup()
166 BottomSheetBehavior<FrameLayout> behavior = BottomSheetBehavior.from(bottomSheet); in testShortDialog()
169 assertThat(behavior, is(notNullValue())); in testShortDialog()
171 assertThat(bottomSheet.getHeight(), is(lessThan(behavior.getPeekHeight()))); in testShortDialog()
197 BottomSheetBehavior<FrameLayout> behavior = BottomSheetBehavior.from(bottomSheet); in testNonCancelableDialog()
198 assertThat(behavior.isHideable(), is(false)); in testNonCancelableDialog()
293 BottomSheetBehavior behavior = BottomSheetBehavior.from(view); in setTallPeekHeight() local
[all …]
DCoordinatorLayoutTest.java312 final CoordinatorLayout.Behavior behavior = in testDependentViewChanged() local
314 lpB.setBehavior(behavior); in testDependentViewChanged()
327 reset(behavior); in testDependentViewChanged()
340 verify(behavior, times(1)).onDependentViewChanged(col, viewB, viewA); in testDependentViewChanged()
352 final CoordinatorLayout.Behavior behavior = in testDependentViewRemoved() local
354 lpB.setBehavior(behavior); in testDependentViewRemoved()
374 verify(behavior, times(1)).onDependentViewRemoved(col, viewB, viewA); in testDependentViewRemoved()
386 final CoordinatorLayout.Behavior behavior in testGetDependenciesAfterDependentViewRemoved() local
394 lpB.setBehavior(behavior); in testGetDependenciesAfterDependentViewRemoved()
511 final CoordinatorLayout.Behavior behavior = spy(new NestedScrollingBehavior()); in testNestedScrollingDispatchesToBehavior() local
[all …]
DBottomSheetBehaviorTest.java72 public Callback(BottomSheetBehavior behavior) { in Callback() argument
73 behavior.setBottomSheetCallback(this); in Callback()
74 int state = behavior.getState(); in Callback()
277 BottomSheetBehavior behavior = getBehavior(); in testInitialSetup() local
278 assertThat(behavior.getState(), is(BottomSheetBehavior.STATE_COLLAPSED)); in testInitialSetup()
282 is(coordinatorLayout.getHeight() - behavior.getPeekHeight())); in testInitialSetup()
330 BottomSheetBehavior behavior = getBehavior(); in testSwipeDownToCollapse()
335 view.getHeight() - behavior.getPeekHeight()}; in testSwipeDownToCollapse()
390 BottomSheetBehavior behavior = getBehavior(); in testSkipCollapsed()
395 view.getHeight() - behavior.getPeekHeight()}; in testSkipCollapsed()
[all …]
DCoordinatorLayoutSortTest.java89 final CoordinatorLayout.Behavior<View> behavior in testDependencySortingOrder() local
94 lp.setBehavior(behavior); in testDependencySortingOrder()
DAppBarWithToolbarAndTabsTest.java412 final AppBarLayout.Behavior behavior = (AppBarLayout.Behavior) in waitForSnapAnimationToFinish() local
414 while (behavior.isOffsetAnimatorRunning()) { in waitForSnapAnimationToFinish()
/frameworks/base/media/java/android/media/audiopolicy/
DAudioPolicy.java319 public int setFocusDuckingBehavior(int behavior) in setFocusDuckingBehavior() argument
321 if ((behavior != FOCUS_POLICY_DUCKING_IN_APP) in setFocusDuckingBehavior()
322 && (behavior != FOCUS_POLICY_DUCKING_IN_POLICY)) { in setFocusDuckingBehavior()
323 throw new IllegalArgumentException("Invalid ducking behavior " + behavior); in setFocusDuckingBehavior()
330 if ((behavior == FOCUS_POLICY_DUCKING_IN_POLICY) in setFocusDuckingBehavior()
338 final int status = service.setFocusPropertiesForPolicy(behavior /*duckingBehavior*/, in setFocusDuckingBehavior()
341 mConfig.mDuckingPolicy = behavior; in setFocusDuckingBehavior()
/frameworks/native/opengl/tests/testPauseResume/
DREADME7 Expected behavior:
18 Actual behavior:
/frameworks/av/media/libeffects/testlibs/
DAudioFormatAdapter.h60 uint32_t behavior) { in configure() argument
64 mBehavior = behavior; in configure()
/frameworks/support/design/src/android/support/design/widget/
DBaseTransientBottomBar.java412 final Behavior behavior = new Behavior(); in showView() local
413 behavior.setStartAlphaSwipeDistance(0.1f); in showView()
414 behavior.setEndAlphaSwipeDistance(0.6f); in showView()
415 behavior.setSwipeDirection(SwipeDismissBehavior.SWIPE_DIRECTION_START_TO_END); in showView()
416 behavior.setListener(new SwipeDismissBehavior.OnDismissListener() { in showView()
439 clp.setBehavior(behavior); in showView()
DAppBarLayout.java1251 final CoordinatorLayout.Behavior behavior = lp.getBehavior(); in shouldJumpElevationState() local
1253 if (behavior instanceof ScrollingViewBehavior) { in shouldJumpElevationState()
1254 return ((ScrollingViewBehavior) behavior).getOverlayTop() != 0; in shouldJumpElevationState()
1411 final CoordinatorLayout.Behavior behavior = in offsetChildAsNeeded() local
1413 if (behavior instanceof Behavior) { in offsetChildAsNeeded()
1416 final Behavior ablBehavior = (Behavior) behavior; in offsetChildAsNeeded()
1447 final CoordinatorLayout.Behavior behavior = in getAppBarLayoutOffset() local
1449 if (behavior instanceof Behavior) { in getAppBarLayoutOffset()
1450 return ((Behavior) behavior).getTopBottomOffsetForScrollingSibling(); in getAppBarLayoutOffset()
DCoordinatorLayout.java867 final Behavior behavior = lp.getBehavior(); in onLayout() local
869 if (behavior == null || !behavior.onLayoutChild(this, child, layoutDirection)) { in onLayout()
1365 final Behavior behavior = lp.getBehavior(); in offsetChildByInset() local
1370 if (behavior != null && behavior.getInsetDodgeRect(this, child, dodgeRect)) { in offsetChildByInset()
2819 public void setBehavior(@Nullable Behavior behavior) { in setBehavior() argument
2820 if (mBehavior != behavior) { in setBehavior()
2826 mBehavior = behavior; in setBehavior()
2830 if (behavior != null) { in setBehavior()
2832 behavior.onAttachedToLayoutParams(this); in setBehavior()
3144 final Behavior behavior = lp.getBehavior(); in requestChildRectangleOnScreen() local
[all …]
DBottomSheetBehavior.java818 CoordinatorLayout.Behavior behavior = ((CoordinatorLayout.LayoutParams) params) in from() local
820 if (!(behavior instanceof BottomSheetBehavior)) { in from()
824 return (BottomSheetBehavior<V>) behavior; in from()
/frameworks/compile/slang/tests/F_reduce_general_bad_accumulator/
Dstderr.txt.expect1 …4:34: warning: 'const' qualifier on function type 'Fn' (aka 'void (void)') has unspecified behavior
2 …8:29: warning: 'const' qualifier on function type 'Fn' (aka 'void (void)') has unspecified behavior
/frameworks/av/services/audiopolicy/engineconfigurable/parameter-framework/examples/
DREADME.md7 A vendor wishing to customize the behavior shall provides its own set of configuration files
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
DBaseWrapContentWithAspectRatioTest.java55 public void setBehavior(MeasureBehavior behavior) { in setBehavior() argument
56 mBehavior = behavior; in setBehavior()
DBaseWrapContentTest.java208 for (BaseWrapContentWithAspectRatioTest.MeasureBehavior behavior : adapter.behaviors) { in layoutAndCheck()
211 assertThat("behavior " + index, snapshot.mChildCoordinates.get(behavior.getId()), in layoutAndCheck()
/frameworks/rs/script_api/
Drs_convert.spec110 undefined behavior.
/frameworks/support/
DREADME.md9 We **are not** currently accepting new modules, features, or behavior changes.
/frameworks/av/services/audiopolicy/engineconfigurable/parameter-framework/examples/Settings/
Ddevice_for_strategy_enforced_audible.pfw23 # - when in call where it doesn't default to STRATEGY_PHONE behavior
/frameworks/native/cmds/flatland/
DREADME.txt23 measures the behavior of the dynamic clocking algorithm under a fairly
/frameworks/native/opengl/specs/
DEGL_ANDROID_presentation_time.txt121 other (hypothetical) extensions that also modify the behavior of
DEGL_ANDROID_native_fence_sync.txt260 behavior of EGL native fence sync objects, so it is left as an attribute
272 - Changed the file descriptor ownership transferring behavior.
/frameworks/base/tools/orientationplot/
DREADME.txt2 the behavior of the WindowOrientationListener.
/frameworks/opt/net/ims/
DREADME.txt109 It directly communicates with IMS service which implements the IMS protocol behavior.

12