HomeSort by relevance Sort by last modified time
    Searched refs:view (Results 276 - 300 of 12165) sorted by null

<<11121314151617181920>>

  /frameworks/support/media-widget/src/main/java/androidx/media/widget/impl_with_mp1/
VideoViewInterfaceWithMp1.java 20 import android.view.View;
26 * Assigns the view's surface to the given MediaPlayer instance.
38 * Takes over oldView. It means that the MediaPlayer will start rendering on this view.
39 * The visibility of oldView will be set as {@link View.GONE}. If the view doesn't have a
45 * @param oldView The view that MediaPlayer is currently rendering on.
50 * Indicates if the view's surface is available.
61 void onSurfaceCreated(View view, int width, int height)
    [all...]
  /frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/media/
MyMediaRouteControllerDialog.java 22 import android.view.View;
39 public View onCreateMediaControlView(Bundle savedInstanceState) {
40 TextView view = new TextView(getContext()); local
41 view.setText(R.string.my_media_control_text);
42 view.setBackgroundColor(Color.GRAY);
43 return view;
  /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/state/
PanelTrack.java 20 import android.view.MotionEvent;
21 import android.view.View;
26 public void onTouch(MotionEvent event, StateView view);
28 public void setCurrentView(View view);
30 public View findChildAt(int x, int y);
31 public int findChild(View view);
34 public View getChildAt(int pos)
    [all...]
  /packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/touch/
TouchTestFragment.java 21 import android.view.LayoutInflater;
22 import android.view.View;
23 import android.view.ViewGroup;
30 public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle bundle) {
31 View view = inflater.inflate(R.layout.touch_points, container, false); local
33 return view;
  /frameworks/support/dynamic-animation/src/main/java/androidx/dynamicanimation/animation/
DynamicAnimation.java 21 import android.view.View;
25 import androidx.core.view.ViewCompat;
44 * ViewProperty holds the access of a property of a {@link View}. When an animation is
45 * created with a {@link ViewProperty} instance, the corresponding property value of the view
48 public abstract static class ViewProperty extends FloatPropertyCompat<View> {
55 * View's translationX property.
59 public void setValue(View view, float value) {
60 view.setTranslationX(value)
    [all...]
  /developers/build/prebuilts/androidtv/leanback/app/src/main/java/com/example/android/tvleanback/presenter/
GridItemPresenter.java 21 import android.view.Gravity;
22 import android.view.ViewGroup;
40 TextView view = new TextView(parent.getContext()); local
41 view.setLayoutParams(new ViewGroup.LayoutParams(GRID_ITEM_WIDTH, GRID_ITEM_HEIGHT));
42 view.setFocusable(true);
43 view.setFocusableInTouchMode(true);
44 view.setBackgroundColor(mainFragment.getResources().getColor(R.color.default_background));
45 view.setTextColor(Color.WHITE);
46 view.setGravity(Gravity.CENTER);
47 return new ViewHolder(view);
    [all...]
  /developers/build/prebuilts/gradle/SwipeRefreshMultipleViews/Application/src/main/java/com/example/android/swiperefreshmultipleviews/
MultiSwipeRefreshLayout.java 20 import android.support.v4.view.ViewCompat;
23 import android.view.View;
33 private View[] mSwipeableChildren;
45 * views need to be a descendant of this view.
51 mSwipeableChildren = new View[ids.length];
60 * we are signifying that the view is in a state where a refresh gesture can start.
70 for (View view : mSwipeableChildren) {
71 if (view != null && view.isShown() && !canViewScrollUp(view))
    [all...]
  /developers/samples/android/ui/views/SwipeRefreshLayout/SwipeRefreshMultipleViews/Application/src/main/java/com/example/android/swiperefreshmultipleviews/
MultiSwipeRefreshLayout.java 20 import android.support.v4.view.ViewCompat;
23 import android.view.View;
33 private View[] mSwipeableChildren;
45 * views need to be a descendant of this view.
51 mSwipeableChildren = new View[ids.length];
60 * we are signifying that the view is in a state where a refresh gesture can start.
70 for (View view : mSwipeableChildren) {
71 if (view != null && view.isShown() && !canViewScrollUp(view))
    [all...]
  /development/samples/browseable/SwipeRefreshMultipleViews/src/com.example.android.swiperefreshmultipleviews/
MultiSwipeRefreshLayout.java 20 import android.support.v4.view.ViewCompat;
23 import android.view.View;
33 private View[] mSwipeableChildren;
45 * views need to be a descendant of this view.
51 mSwipeableChildren = new View[ids.length];
60 * we are signifying that the view is in a state where a refresh gesture can start.
70 for (View view : mSwipeableChildren) {
71 if (view != null && view.isShown() && !canViewScrollUp(view))
    [all...]
  /development/samples/devbytes/animation/MultiPropertyAnimations/src/com/example/android/multipropertyanimations/
MultiPropertyAnimations.java 25 import android.view.View;
52 public void runValueAnimator(final View view) {
58 view.setTranslationX(TX_START + fraction * (TX_END - TX_START));
59 view.setTranslationY(TY_START + fraction * (TY_END - TY_START));
67 * View properties, even when there are multiple properties to be animated
70 public void runViewPropertyAnimator(View view) {
71 view.animate().translationX(TX_END).translationY(TY_END)
    [all...]
  /external/clang/tools/clang-format/
clang-format-sublime.py 31 encoding = self.view.encoding()
36 for region in self.view.sel():
42 '-assume-filename', str(self.view.file_name())])
43 old_viewport_position = self.view.viewport_position()
44 buf = self.view.substr(sublime.Region(0, self.view.size()))
50 self.view.replace(
51 edit, sublime.Region(0, self.view.size()),
53 self.view.sel().clear()
55 self.view.sel().add(region
    [all...]
  /external/subsampling-scale-image-view/sample/src/main/java/com/davemorrissey/labs/subscaleview/test/viewpager/
VerticalViewPager.java 5 import android.support.v4.view.ViewPager;
7 import android.view.MotionEvent;
8 import android.view.View;
33 public void transformPage(@NonNull View view, float position) {
35 view.setAlpha(0);
37 view.setAlpha(1);
38 view.setTranslationX(view.getWidth() * -position)
    [all...]
  /frameworks/base/core/java/com/android/internal/widget/
OrientationHelper.java 20 import android.view.View;
24 * Helper class for LayoutManagers to abstract measurements depending on the View's orientation.
27 * can also be used to abstract calls around view bounds and child measurements with margins and
75 * Returns the start of the view including its decoration and margin.
77 * For example, for the horizontal helper, if a View's left is at pixel 20, has 2px left
80 * @param view The view element to check
82 * @see #getDecoratedEnd(android.view.View)
    [all...]
  /frameworks/base/core/tests/coretests/src/android/view/
RunQueue.java 17 package android.view;
22 import android.view.View;
23 import android.view.ViewTreeObserver;
44 final View view = findViewById(R.id.simple_view); local
46 view.post(new Runnable() {
57 view.post(runnable);
58 view.post(runnable);
59 view.post(runnable)
    [all...]
  /frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
ViewFlipperActivity.java 21 import android.view.Gravity;
22 import android.view.LayoutInflater;
23 import android.view.View;
36 final View widget = inflater.inflate(R.layout.widget, null);
41 View view = inflater.inflate(R.layout.flipper_item, flipper, false); local
42 flipper.addView(view);
43 ((ImageView) view.findViewById(R.id.widget_image)).setImageResource(R.drawable.sunset1);
44 ((TextView) view.findViewById(R.id.widget_text)).setText("This is a long line of text, "
    [all...]
  /frameworks/data-binding/integration-tests/MultiModuleTestApp/app/src/androidTest/java/com/android/databinding/multimoduletestapp/
GeneratedLayoutTest.java 23 import android.view.LayoutInflater;
24 import android.view.View;
29 View view = inflater.inflate(R.layout.library_layout, null); local
31 view.setTag("layout-sw600dp-land-v13/library_layout_0");
32 ViewDataBinding bind = DataBindingUtil.bind(view);
39 View view = inflater.inflate(R.layout.library_layout, null); local
41 view.setTag("layout/library_layout_0")
49 View view = inflater.inflate(R.layout.library_layout, null); local
    [all...]
  /frameworks/support/leanback/kitkat/androidx/leanback/transition/
Scale.java 22 import android.view.View;
23 import android.view.ViewGroup;
35 View view = values.view; local
36 values.values.put(PROPNAME_SCALE, view.getScaleX());
59 final View view = startValues.view; local
    [all...]
  /frameworks/support/leanback-preference/src/main/java/androidx/leanback/preference/
LeanbackPreferenceFragment.java 21 import android.view.LayoutInflater;
22 import android.view.View;
23 import android.view.ViewGroup;
50 public View onCreateView(LayoutInflater inflater, ViewGroup container,
52 final View view = inflater.inflate(R.layout.leanback_preference_fragment, container, false); local
53 final ViewGroup innerContainer = (ViewGroup) view.findViewById(R.id.main_frame);
54 final View innerView = super.onCreateView(inflater, innerContainer, savedInstanceState);
58 return view;
72 final View view = getView(); local
    [all...]
  /frameworks/support/samples/SupportLeanbackJank/src/main/java/com/google/android/leanbackjank/presenter/
GridItemPresenter.java 21 import android.view.Gravity;
22 import android.view.ViewGroup;
34 TextView view = new TextView(parent.getContext()); local
40 view.setLayoutParams(new ViewGroup.LayoutParams(width, height));
41 view.setFocusable(true);
42 view.setFocusableInTouchMode(true);
43 view.setBackgroundColor(
45 view.setTextColor(Color.WHITE);
46 view.setGravity(Gravity.CENTER);
47 return new ViewHolder(view);
    [all...]
  /frameworks/support/v7/recyclerview/src/main/java/androidx/recyclerview/widget/
OrientationHelper.java 20 import android.view.View;
23 * Helper class for LayoutManagers to abstract measurements depending on the View's orientation.
26 * can also be used to abstract calls around view bounds and child measurements with margins and
82 * Returns the start of the view including its decoration and margin.
84 * For example, for the horizontal helper, if a View's left is at pixel 20, has 2px left
87 * @param view The view element to check
89 * @see #getDecoratedEnd(android.view.View)
    [all...]
  /libcore/ojluni/src/main/java/sun/nio/fs/
FileOwnerAttributeViewImpl.java 42 private final FileAttributeView view; field in class:FileOwnerAttributeViewImpl
45 FileOwnerAttributeViewImpl(PosixFileAttributeView view) {
46 this.view = view;
50 FileOwnerAttributeViewImpl(AclFileAttributeView view) {
51 this.view = view;
89 return ((PosixFileAttributeView)view).readAttributes().owner();
91 return ((AclFileAttributeView)view).getOwner();
100 ((PosixFileAttributeView)view).setOwner(owner)
    [all...]
  /packages/apps/DeskClock/src/com/android/deskclock/
VerticalViewPager.java 20 import android.support.v4.view.ViewPager;
22 import android.view.MotionEvent;
23 import android.view.View;
37 * @return {@code false} since a vertical view pager can never be scrolled horizontally
45 * @return {@code true} iff a normal view pager would support horizontal scrolling at this time
56 setOverScrollMode(View.OVER_SCROLL_NEVER);
89 public void transformPage(View view, float position) {
90 final int pageWidth = view.getWidth()
    [all...]
  /packages/apps/StorageManager/src/com/android/storagemanager/utils/
Utils.java 19 import android.view.View;
20 import android.view.animation.Animation;
21 import android.view.animation.Animation.AnimationListener;
22 import android.view.animation.AnimationUtils;
27 View loading, View doneLoading, boolean done, boolean animate) {
32 private static void setViewShown(final View view, boolean shown, boolean animate) {
36 view.getContext()
    [all...]
  /packages/apps/TV/src/com/android/tv/onboarding/
NewSourcesFragment.java 22 import android.view.Gravity;
23 import android.view.LayoutInflater;
24 import android.view.View;
25 import android.view.ViewGroup;
49 public View onCreateView(
51 View view = inflater.inflate(R.layout.fragment_new_sources, container, false); local
52 initializeButton(view.findViewById(R.id.setup), ACTION_SETUP);
53 initializeButton(view.findViewById(R.id.skip), ACTION_SKIP)
    [all...]
  /prebuilts/clang/host/darwin-x86/clang-4393122/share/clang/
clang-format-sublime.py 31 encoding = self.view.encoding()
36 for region in self.view.sel():
42 '-assume-filename', str(self.view.file_name())])
43 old_viewport_position = self.view.viewport_position()
44 buf = self.view.substr(sublime.Region(0, self.view.size()))
50 self.view.replace(
51 edit, sublime.Region(0, self.view.size()),
53 self.view.sel().clear()
55 self.view.sel().add(region
    [all...]

Completed in 2115 milliseconds

<<11121314151617181920>>