/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/ui/wear/settings/ |
ViewUtils.java | 21 import android.view.ViewGroup; 41 if (view instanceof ViewGroup) { 42 final ViewGroup viewGroup = (ViewGroup) view; 43 for (int i = 0; i < viewGroup.getChildCount(); i++) { 44 setEnabled(viewGroup.getChildAt(i), enabled);
|
/frameworks/support/design/tests/src/android/support/design/testutils/ |
TestUtilsActions.java | 33 import android.view.ViewGroup; 60 final ViewGroup viewGroup = (ViewGroup) view; 61 final int childCount = viewGroup.getChildCount(); 64 View child = viewGroup.getChildAt(i); 67 viewGroup.removeView(child); 72 tabLayoutResId, viewGroup, false); 74 viewGroup.addView(newTabLayout, i);
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowListActivity.java | 5 import android.view.ViewGroup; 70 } else if (parent instanceof ViewGroup) { 71 ViewGroup viewGroup = (ViewGroup) parent; 72 for (int i = 0; i < viewGroup.getChildCount(); i++) { 73 ListView listView = findListView(viewGroup.getChildAt(i));
|
ShadowDialog.java | 10 import android.view.ViewGroup; 251 if (view instanceof ViewGroup) { 252 ViewGroup viewGroup = (ViewGroup) view; 253 for (int i = 0; i < viewGroup.getChildCount(); i++) { 254 View child = viewGroup.getChildAt(i);
|
/frameworks/base/core/tests/coretests/src/android/animation/ |
StateListAnimatorTest.java | 24 import android.view.ViewGroup; 64 ViewGroup viewGroup = (ViewGroup) getActivity().findViewById(android.R.id.content); 66 viewGroup.addView(view); 78 viewGroup.removeView(view);
|
/frameworks/base/core/tests/coretests/src/com/android/internal/widget/ |
ActionBarContainerTest.java | 23 import android.view.ViewGroup; 38 TestViewGroup viewGroup = new TestViewGroup(mContext); 39 viewGroup.addView(mActionBarContainer); 46 assertFalse(viewGroup.isStartActionModeForChildTypedCalled); 47 assertFalse(viewGroup.isStartActionModeForChildTypelessCalled); 53 assertFalse(viewGroup.isStartActionModeForChildTypedCalled); 54 assertFalse(viewGroup.isStartActionModeForChildTypelessCalled); 58 TestViewGroup viewGroup = new TestViewGroup(mContext); 59 viewGroup.addView(mActionBarContainer); 66 assertTrue(viewGroup.isStartActionModeForChildTypedCalled) [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
PseudoGridView.java | 24 import android.view.ViewGroup; 36 public class PseudoGridView extends ViewGroup { 138 * Bridges between a ViewGroup and a BaseAdapter. 140 * Usage: {@code ViewGroupAdapterBridge.link(viewGroup, adapter)} 142 * After this call, the ViewGroup's children will be provided by the adapter. 146 private final WeakReference<ViewGroup> mViewGroup; 150 public static void link(ViewGroup viewGroup, BaseAdapter adapter) { 151 new ViewGroupAdapterBridge(viewGroup, adapter); 154 private ViewGroupAdapterBridge(ViewGroup viewGroup, BaseAdapter adapter) [all...] |
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/res/ |
ResourceLoaderTest.java | 4 import android.view.ViewGroup; 48 ViewGroup vg = new FrameLayout(Robolectric.application); 70 ViewGroup viewGroup = new FrameLayout(Robolectric.application); 71 ViewGroup view = (ViewGroup) resourceLoader.inflateView(Robolectric.application, R.layout.different_screen_sizes, viewGroup); 88 ViewGroup viewGroup = new FrameLayout(Robolectric.application); 89 ViewGroup view = (ViewGroup) resourceLoader.inflateView(Robolectric.application, R.layout.different_screen_s (…) [all...] |
ViewLoaderTest.java | 8 import android.view.ViewGroup; 61 ViewGroup view = (ViewGroup) viewLoader.inflateView(context, "layout/media"); 69 ViewGroup view = (ViewGroup) viewLoader.inflateView(context, "layout/different_screen_sizes"); 77 ViewGroup view = (ViewGroup) viewLoader.inflateView(context, "layout/different_screen_sizes"); 85 ViewGroup view = (ViewGroup) viewLoader.inflateView(context, "layout/different_screen_sizes"); 93 ViewGroup view = (ViewGroup) viewLoader.inflateView(context, "layout/different_screen_sizes") [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
NavigationBarInflaterView.java | 25 import android.view.ViewGroup; 178 addAll(buttonDispatcher, (ViewGroup) mRot0.findViewById(R.id.ends_group)); 179 addAll(buttonDispatcher, (ViewGroup) mRot0.findViewById(R.id.center_group)); 180 addAll(buttonDispatcher, (ViewGroup) mRot90.findViewById(R.id.ends_group)); 181 addAll(buttonDispatcher, (ViewGroup) mRot90.findViewById(R.id.center_group)); 184 private void addAll(ButtonDispatcher buttonDispatcher, ViewGroup parent) { 191 } else if (parent.getChildAt(i) instanceof ViewGroup) { 192 addAll(buttonDispatcher, (ViewGroup) parent.getChildAt(i)); 207 inflateButtons(start, (ViewGroup) mRot0.findViewById(R.id.ends_group), false); 208 inflateButtons(start, (ViewGroup) mRot90.findViewById(R.id.ends_group), true) [all...] |
/packages/apps/TV/src/com/android/tv/guide/ |
ProgramGrid.java | 27 import android.view.ViewGroup; 288 // Returned value is not the position of VerticalGridView. But it's the index of ViewGroup 426 if (v instanceof ViewGroup) { 427 ViewGroup viewGroup = (ViewGroup) v; 428 for (int i = 0; i < viewGroup.getChildCount(); ++i) { 429 findFocusables(viewGroup.getChildAt(i), outFocusable);
|
/external/skia/platform_tools/android/apps/sample_app/src/main/java/com/skia/ |
SkiaSampleActivity.java | 22 import android.view.ViewGroup; 63 ViewGroup viewGroup = (ViewGroup) mSampleView.getParent(); 64 viewGroup.removeView(mSampleView); 80 ViewGroup.LayoutParams.MATCH_PARENT, 81 ViewGroup.LayoutParams.MATCH_PARENT));
|
/frameworks/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/ |
BasicBindingTest.java | 24 import android.view.ViewGroup; 148 ViewGroup viewGroup = (ViewGroup) mBinder.getRoot(); 150 BasicBindingBinding.inflate(getActivity().getLayoutInflater(), viewGroup, true);
|
/frameworks/base/core/java/android/view/ |
LayoutInflater.java | 351 * which is not allowed by the {@link Filter}, the {@link #inflate(int, ViewGroup)} call will 376 public View inflate(@LayoutRes int resource, @Nullable ViewGroup root) { 396 public View inflate(XmlPullParser parser, @Nullable ViewGroup root) { 417 public View inflate(@LayoutRes int resource, @Nullable ViewGroup root, boolean attachToRoot) { 454 public View inflate(XmlPullParser parser, @Nullable ViewGroup root, boolean attachToRoot) { 489 + "ViewGroup root and attachToRoot=true"); 497 ViewGroup.LayoutParams params = null; [all...] |
GhostView.java | 41 final ViewGroup parent = (ViewGroup) mView.getParent(); 79 final ViewGroup parent = (ViewGroup) mView.getParent(); 86 public static void calculateMatrix(View view, ViewGroup host, Matrix matrix) { 87 ViewGroup parent = (ViewGroup) view.getParent(); 94 public static GhostView addGhost(View view, ViewGroup viewGroup, Matrix matrix) { 95 if (!(view.getParent() instanceof ViewGroup)) { [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/app/ |
ToolbarActionBar.java | 41 import android.view.ViewGroup; 238 final ViewGroup viewGroup = mDecorToolbar.getViewGroup(); 239 if (viewGroup != null && !viewGroup.hasFocus()) { 240 viewGroup.requestFocus();
|
/developers/build/prebuilts/gradle/XYZTouristAttractions/Wearable/src/main/java/com/example/android/xyztouristattractions/ui/ |
AttractionsGridPagerAdapter.java | 37 import android.view.ViewGroup; 100 public Object instantiateItem(ViewGroup container, int row, final int column) { 194 public void destroyItem(ViewGroup viewGroup, int row, int column, Object object) { 196 viewGroup.removeView((View)object);
|
/developers/samples/android/wearable/wear/XYZTouristAttractions/Wearable/src/main/java/com/example/android/xyztouristattractions/ui/ |
AttractionsGridPagerAdapter.java | 37 import android.view.ViewGroup; 100 public Object instantiateItem(ViewGroup container, int row, final int column) { 194 public void destroyItem(ViewGroup viewGroup, int row, int column, Object object) { 196 viewGroup.removeView((View)object);
|
/development/samples/browseable/XYZTouristAttractions/Wearable/src/com.example.android.xyztouristattractions/ui/ |
AttractionsGridPagerAdapter.java | 37 import android.view.ViewGroup; 100 public Object instantiateItem(ViewGroup container, int row, final int column) { 194 public void destroyItem(ViewGroup viewGroup, int row, int column, Object object) { 196 viewGroup.removeView((View)object);
|
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
ViewGroupTest.java | 5 import android.view.ViewGroup; 32 private ViewGroup root; 35 private ViewGroup child3; 121 assertThat((ViewGroup) root.findViewWithTag("tag3"), sameInstance(child3)); 134 assertThat((ViewGroup) root.findViewWithTag("tag23"), equalTo(null)); 153 assertThat((ViewGroup) root.findViewWithTag("tag3"), sameInstance(child3)); 162 ViewGroup viewGroup = new LinearLayout(Robolectric.application) { 168 assertThat((ViewGroup) viewGroup.findViewWithTag("blarg"), sameInstance(viewGroup)) [all...] |
/frameworks/support/fragment/api21/android/support/v4/app/ |
FragmentTransitionCompat21.java | 24 import android.view.ViewGroup; 65 public static void beginDelayedTransition(ViewGroup sceneRoot, Object transitionObject) { 293 if (view instanceof ViewGroup) { 294 ViewGroup viewGroup = (ViewGroup) view; 295 final int childCount = viewGroup.getChildCount(); 297 final View child = viewGroup.getChildAt(childIndex); 347 if (view instanceof ViewGroup) { 348 ViewGroup viewGroup = (ViewGroup) view [all...] |
/packages/apps/Contacts/src/com/android/contacts/group/ |
GroupBrowseListFragment.java | 38 import android.view.ViewGroup; 101 public View onCreateView(LayoutInflater inflater, ViewGroup container, 128 viewGroup(groupListItem.getUri()); 231 viewGroup(mSelectedGroupUri); 252 private void viewGroup(Uri groupUri) { 258 viewGroup(groupUri);
|
/cts/tests/tests/animation/src/android/animation/cts/ |
AnimationActivity.java | 38 import android.view.ViewGroup; 78 ViewGroup viewGroup = (ViewGroup) findViewById(R.id.container); 79 viewGroup.addView(view);
|
/cts/tests/tests/widget/src/android/widget/cts/ |
LinearLayoutTest.java | 30 import android.view.ViewGroup; 229 ViewGroup.LayoutParams lp = new ViewGroup.LayoutParams(320, 240); 247 ViewGroup.LayoutParams params = new AbsoluteLayout.LayoutParams(240, 320, 0, 0); 258 ViewGroup.LayoutParams param = mockLinearLayout.generateDefaultLayoutParams(); 261 assertEquals(ViewGroup.LayoutParams.WRAP_CONTENT, param.width); 262 assertEquals(ViewGroup.LayoutParams.WRAP_CONTENT, param.height); 268 assertEquals(ViewGroup.LayoutParams.MATCH_PARENT, param.width); 269 assertEquals(ViewGroup.LayoutParams.WRAP_CONTENT, param.height); 277 ViewGroup.MarginLayoutParams lp = new ViewGroup.MarginLayoutParams(3, 5) [all...] |
SimpleCursorAdapterTest.java | 32 import android.view.ViewGroup; 329 ViewGroup viewGroup = (ViewGroup) layoutInflater.inflate( 331 View result = simpleCursorAdapter.newView(mContext, null, viewGroup); 345 ViewGroup viewGroup = (ViewGroup) layoutInflater.inflate( 347 View result = simpleCursorAdapter.newDropDownView(null, null, viewGroup);
|