Searched refs:behavior (Results 1 - 19 of 19) sorted by relevance

/frameworks/native/libs/input/
H A DKeyCharacterMap.cpp234 const Behavior* behavior; local
235 if (getKeyBehavior(keyCode, metaState, &key, &behavior)) {
236 result = behavior->character;
251 const Behavior* behavior; local
252 if (getKeyBehavior(keyCode, metaState, &key, &behavior)) {
253 if (behavior->fallbackKeyCode) {
254 outFallbackAction->keyCode = behavior->fallbackKeyCode;
255 outFallbackAction->metaState = metaState & ~behavior->metaState;
273 // Try to find the most general behavior that maps to this character.
274 // For example, the base key behavior wil
368 const Behavior* behavior; local
417 const Behavior* behavior = key->firstBehavior; local
638 Behavior* behavior = new Behavior(); local
695 Behavior* behavior = firstBehavior; local
973 Behavior behavior; local
[all...]
/frameworks/support/design/tests/src/android/support/design/widget/
H A DBottomSheetDialogTest.java76 BottomSheetBehavior<FrameLayout> behavior = BottomSheetBehavior.from(bottomSheet);
77 assertThat(behavior.isHideable(), is(true));
78 assertThat(behavior, is(notNullValue()));
80 assertThat(behavior.getPeekHeight(), is(BottomSheetBehavior.PEEK_HEIGHT_AUTO));
167 BottomSheetBehavior<FrameLayout> behavior = BottomSheetBehavior.from(bottomSheet);
170 assertThat(behavior, is(notNullValue()));
172 assertThat(bottomSheet.getHeight(), is(lessThan(behavior.getPeekHeight())));
198 BottomSheetBehavior<FrameLayout> behavior = BottomSheetBehavior.from(bottomSheet);
199 assertThat(behavior.isHideable(), is(false));
294 BottomSheetBehavior behavior
[all...]
H A DCoordinatorLayoutTest.java99 // Now add a view with our mocked behavior to the CoordinatorLayout
312 final CoordinatorLayout.Behavior behavior =
314 lpB.setBehavior(behavior);
327 reset(behavior);
340 verify(behavior, times(1)).onDependentViewChanged(col, viewB, viewA);
352 final CoordinatorLayout.Behavior behavior =
354 lpB.setBehavior(behavior);
374 verify(behavior, times(1)).onDependentViewRemoved(col, viewB, viewA);
386 final CoordinatorLayout.Behavior behavior
394 lpB.setBehavior(behavior);
[all...]
H A DBottomSheetBehaviorTest.java73 public Callback(BottomSheetBehavior behavior) { argument
74 behavior.setBottomSheetCallback(this);
75 int state = behavior.getState();
278 BottomSheetBehavior behavior = getBehavior();
279 assertThat(behavior.getState(), is(BottomSheetBehavior.STATE_COLLAPSED));
283 is(coordinatorLayout.getHeight() - behavior.getPeekHeight()));
331 BottomSheetBehavior behavior = getBehavior();
336 view.getHeight() - behavior.getPeekHeight()};
391 BottomSheetBehavior behavior = getBehavior();
396 view.getHeight() - behavior
[all...]
H A DCoordinatorLayoutSortTest.java89 final CoordinatorLayout.Behavior<View> behavior
94 lp.setBehavior(behavior);
H A DAppBarWithToolbarAndTabsTest.java267 // of swipe is 25% of the toolbar height and we expect the snap behavior to "move"
287 // We expect the snap behavior to move the app bar to snap the tab layout below the
305 // snap behavior to move the app bar back to snap the tab layout below the system status
323 // snap behavior to move the app bar fully away from the screen.
340 // snap behavior to move the app bar back fully away from the screen.
358 // snap behavior to move the app bar to snap the tab layout below the system status
376 // snap behavior to align the tab layout below the system status bar
393 // snap behavior to move the app bar back to its original place (fully visible).
412 final AppBarLayout.Behavior behavior = (AppBarLayout.Behavior)
414 while (behavior
[all...]
/frameworks/av/media/libeffects/testlibs/
H A DAudioFormatAdapter.h29 // buffer override behavior to arbitrary sample formats and buffer behaviors.
36 // overwrite behavior.
58 // behavior The desired behavior (overwrite or accumulate).
60 uint32_t behavior) {
64 mBehavior = behavior;
113 // The desired buffer behavior.
142 // output buffer, converting to the desired format and buffer behavior.
59 configure(T & processor, int nChannels, uint8_t pcmFormat, uint32_t behavior) argument
/frameworks/base/media/java/android/media/audiopolicy/
H A DAudioPolicy.java74 * The behavior of a policy with regards to audio focus where it relies on the application
75 * to do the ducking, the is the legacy and default behavior.
81 * The behavior of a policy with regards to audio focus where it handles ducking instead
298 * Returns the current behavior for audio focus-related ducking.
309 * Sets the behavior for audio focus-related ducking.
311 * @param behavior {@link #FOCUS_POLICY_DUCKING_IN_APP} or
319 public int setFocusDuckingBehavior(int behavior) argument
321 if ((behavior != FOCUS_POLICY_DUCKING_IN_APP)
322 && (behavior != FOCUS_POLICY_DUCKING_IN_POLICY)) {
323 throw new IllegalArgumentException("Invalid ducking behavior "
[all...]
/frameworks/support/design/src/android/support/design/widget/
H A DBaseTransientBottomBar.java115 * Interface that defines the behavior of the main content of a transient bottom bar.
412 final Behavior behavior = new Behavior();
413 behavior.setStartAlphaSwipeDistance(0.1f);
414 behavior.setEndAlphaSwipeDistance(0.6f);
415 behavior.setSwipeDirection(SwipeDismissBehavior.SWIPE_DIRECTION_START_TO_END);
416 behavior.setListener(new SwipeDismissBehavior.OnDismissListener() {
439 clp.setBehavior(behavior);
H A DAppBarLayout.java56 * Children should provide their desired scrolling behavior through
66 * The binding is done through the {@link ScrollingViewBehavior} behavior class, meaning that you
67 * should set your scrolling view's behavior to be an instance of {@link ScrollingViewBehavior}.
122 * child views to implement custom behavior based on the offset (for instance pinning a
890 * @param callback the callback to use, or {@code null} to use the default behavior.
1250 final CoordinatorLayout.Behavior behavior = lp.getBehavior();
1252 if (behavior instanceof ScrollingViewBehavior) {
1253 return ((ScrollingViewBehavior) behavior).getOverlayTop() != 0;
1410 final CoordinatorLayout.Behavior behavior =
1412 if (behavior instanceo
[all...]
H A DCoordinatorLayout.java91 * views can also interact with one another. View classes can specify a default behavior when
483 // when the behavior first started blocking things below this point.
598 // Assume stock behavior in this package (if we have one)
638 Log.e(TAG, "Default behavior class " + defaultBehavior.value().getName() +
822 // If the view has a behavior, let it try first
872 final Behavior behavior = lp.getBehavior();
874 if (behavior == null || !behavior.onLayoutChild(this, child, layoutDirection)) {
1247 * The offsetting behavior implemented here does not store the computed offset in
1316 // Update any behavior
2824 setBehavior(@ullable Behavior behavior) argument
[all...]
H A DBottomSheetBehavior.java49 * An interaction behavior plugin for a child view of {@link CoordinatorLayout} to make it work as
820 CoordinatorLayout.Behavior behavior = ((CoordinatorLayout.LayoutParams) params)
822 if (!(behavior instanceof BottomSheetBehavior)) {
826 return (BottomSheetBehavior<V>) behavior;
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DBaseWrapContentWithAspectRatioTest.java55 public void setBehavior(MeasureBehavior behavior) { argument
56 mBehavior = behavior;
H A DBaseWrapContentTest.java43 * Class to test any generic wrap content behavior.
97 // lays out more children. This is the correct behavior because the spec is not AT_MOST,
208 for (BaseWrapContentWithAspectRatioTest.MeasureBehavior behavior : adapter.behaviors) {
211 assertThat("behavior " + index, snapshot.mChildCoordinates.get(behavior.getId()),
/frameworks/rs/script_api/
H A Drs_convert.spec110 undefined behavior.
H A Drs_for_each.spec41 This specification can help the caching behavior of the running kernel, e.g. the cache
H A Drs_matrix.spec297 will result in undefined behavior. Use rsMatrixMulitply instead. E.g. instead of doing
/frameworks/base/services/core/java/com/android/server/policy/
H A DPhoneWindowManager.java303 // Number of presses needed before we induce panic press behavior on the back button
1482 private void powerMultiPressAction(long eventTime, boolean interactive, int behavior) { argument
1483 switch (behavior) {
1530 final int behavior = getResolvedLongPressOnPowerBehavior();
1531 switch (behavior) {
1544 mWindowManagerFuncs.shutdown(behavior == LONG_PRESS_POWER_SHUT_OFF);
1800 Log.w(TAG, "Undefined home long press behavior: " + mLongPressOnHomeBehavior);
2620 // The status bar is the only window allowed to exhibit keyguard behavior.
3825 // Reserve all the META modifier combos for system behavior
6068 // behavior i
[all...]
/frameworks/data-binding/prebuilds/1.0-rc0/
H A Ddatabinding-studio-bundle.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/databinding/ android/databinding/Bindable.class Bindable. ...

Completed in 9750 milliseconds