Home
last modified time | relevance | path

Searched refs:inflater (Results 1 – 25 of 219) sorted by relevance

123456789

/frameworks/base/startop/apps/test/src/
DApplicationBenchmarks.java25 LayoutInflater inflater = LayoutInflater.from(parent); in initializeBenchmarks() local
28 inflater.inflate(R.layout.activity_main, null); in initializeBenchmarks()
32 inflater.inflate(R.layout.textview_list, null); in initializeBenchmarks()
36 inflater.inflate(R.layout.framelayout_list, null); in initializeBenchmarks()
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/
DTemplateLayout.java137 final LayoutInflater inflater = LayoutInflater.from(getContext()); in inflateTemplate() local
138 final View templateRoot = onInflateTemplate(inflater, templateResource); in inflateTemplate()
166 LayoutInflater inflater, @StyleRes int fallbackTheme, @LayoutRes int template) { in inflateTemplate() argument
171 inflater = in inflateTemplate()
172 LayoutInflater.from(new FallbackThemeWrapper(inflater.getContext(), fallbackTheme)); in inflateTemplate()
174 return inflater.inflate(template, this, false); in inflateTemplate()
187 protected View onInflateTemplate(LayoutInflater inflater, @LayoutRes int template) { in onInflateTemplate() argument
188 return inflateTemplate(inflater, 0, template); in onInflateTemplate()
/frameworks/opt/setupwizard/library/recyclerview/src/com/android/setupwizardlib/
DGlifPreferenceLayout.java94 LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) { in onCreateRecyclerView() argument
99 protected View onInflateTemplate(LayoutInflater inflater, int template) { in onInflateTemplate() argument
103 return super.onInflateTemplate(inflater, template); in onInflateTemplate()
110 final LayoutInflater inflater = LayoutInflater.from(getContext()); in onTemplateInflated() local
112 (RecyclerView) inflater.inflate(R.layout.suw_glif_preference_recycler_view, this, false); in onTemplateInflated()
DSetupWizardPreferenceLayout.java93 LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) { in onCreateRecyclerView() argument
98 protected View onInflateTemplate(LayoutInflater inflater, int template) { in onInflateTemplate() argument
102 return super.onInflateTemplate(inflater, template); in onInflateTemplate()
109 final LayoutInflater inflater = LayoutInflater.from(getContext()); in onTemplateInflated() local
111 (RecyclerView) inflater.inflate(R.layout.suw_preference_recycler_view, this, false); in onTemplateInflated()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/
DPlayerViewHolderTest.kt42 private lateinit var inflater: LayoutInflater variable in com.android.systemui.media.PlayerViewHolderTest
47 inflater = LayoutInflater.from(context) in setUp()
53 val holder = PlayerViewHolder.create(inflater, parent) in create()
59 val holder = PlayerViewHolder.create(inflater, parent) in backgroundIsIlluminationDrawable()
/frameworks/base/tests/TransitionTests/src/com/android/transitiontests/
DDemo0.java47 LayoutInflater inflater = (LayoutInflater) in sendMessage() local
49 inflater.inflate(R.layout.search_screen, mSceneRoot); in sendMessage()
53 LayoutInflater inflater = (LayoutInflater) in sendMessage() local
55 inflater.inflate(R.layout.results_screen, mSceneRoot); in sendMessage()
DDemo1.java52 LayoutInflater inflater = (LayoutInflater) in onCreate()
54 inflater.inflate(R.layout.results_screen, mSceneRoot); in onCreate()
61 LayoutInflater inflater = (LayoutInflater) in onCreate()
63 inflater.inflate(R.layout.search_screen, mSceneRoot); in onCreate()
DResourceLoadingTest.java53 TransitionInflater inflater = TransitionInflater.from(this); in sendMessage() local
55 inflater.inflateTransitionManager(R.transition.my_transition_mgr, in sendMessage()
59 … Transition loadedTransition = inflater.inflateTransition(R.transition.my_transition); in sendMessage()
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/
DReflectionInflaterTest.java42 TestInflater inflater = new TestInflater(context); in testInflateXml() local
43 final Animation result = inflater.inflate(R.xml.reflection_inflater_test); in testInflateXml()
55 TestInflater inflater = new TestInflater(context); in testDefaultPackage() local
56 inflater.setDefaultPackage("android.view.animation."); in testDefaultPackage()
57 final Animation result = inflater.inflate(R.xml.reflection_inflater_test_with_default_package); in testDefaultPackage()
DItemInflaterTest.java38 ItemInflater inflater = new ItemInflater(InstrumentationRegistry.getContext()); in testDefaultPackage() local
42 inflater.getDefaultPackage()); in testDefaultPackage()
47 ItemInflater inflater = new ItemInflater(InstrumentationRegistry.getContext()); in testInflate() local
48 ItemHierarchy item = inflater.inflate(R.xml.test_items); in testInflate()
/frameworks/base/apct-tests/perftests/core/src/android/view/
DViewPerfTest.java41 LayoutInflater inflater = LayoutInflater.from(context); in testSimpleViewInflate() local
44 inflater.inflate(R.layout.test_simple_view, root, false); in testSimpleViewInflate()
52 LayoutInflater inflater = LayoutInflater.from(context); in testTwelveKeyInflate() local
55 inflater.inflate(R.layout.twelve_key_entry, root, false); in testTwelveKeyInflate()
/frameworks/base/tests/testables/src/android/testing/
DLayoutInflaterBuilder.java137 private void setFactoryIfNeeded(LayoutInflater inflater) { in setFactoryIfNeeded() argument
141 inflater.setFactory( in setFactoryIfNeeded()
148 return inflater.createView(replacingClassName, null, attrs); in setFactoryIfNeeded()
160 private void setFilterIfNeeded(LayoutInflater inflater) { in setFilterIfNeeded() argument
164 inflater.setFilter( in setFilterIfNeeded()
/frameworks/base/core/java/android/widget/
DAppSecurityPermissions.java42 LayoutInflater inflater = (LayoutInflater)context.getSystemService( in getPermissionItemView() local
46 return getPermissionItemViewOld(context, inflater, grpName, in getPermissionItemView()
50 private static View getPermissionItemViewOld(Context context, LayoutInflater inflater, in getPermissionItemViewOld() argument
52 View permView = inflater.inflate(R.layout.app_permission_item_old, null); in getPermissionItemViewOld()
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DViewFlipperActivity.java35 final LayoutInflater inflater = getLayoutInflater(); in onCreate() local
36 final View widget = inflater.inflate(R.layout.widget, null); in onCreate()
41 View view = inflater.inflate(R.layout.flipper_item, flipper, false); in onCreate()
47 view = inflater.inflate(R.layout.flipper_item, flipper, false); in onCreate()
DTextGammaActivity.java76 final LayoutInflater inflater = LayoutInflater.from(c); in GammaTextView() local
77 inflater.inflate(R.layout.text_large, this, true); in GammaTextView()
78 inflater.inflate(R.layout.text_medium, this, true); in GammaTextView()
79 inflater.inflate(R.layout.text_small, this, true); in GammaTextView()
/frameworks/layoutlib/bridge/src/android/preference/
DPreference_Delegate.java59 PreferenceInflater inflater = new BridgePreferenceInflater(context, pm); in inflatePreference() local
60 PreferenceScreen ps = (PreferenceScreen) inflater.inflate(parser, null, true); in inflatePreference()
74 LayoutInflater inflater = in createContainerView() local
76 inflater.inflate(mLayoutResId, root, true); in createContainerView()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DNavigationBarInflaterView.java288 LayoutInflater inflater = landscape ? mLandscapeInflater : mLayoutInflater; in inflateButton() local
289 View v = createView(buttonSpec, parent, inflater); in inflateButton()
360 private View createView(String buttonSpec, ViewGroup parent, LayoutInflater inflater) { in createView() argument
369 v = inflater.inflate(R.layout.home, parent, false); in createView()
371 v = inflater.inflate(R.layout.back, parent, false); in createView()
373 v = inflater.inflate(R.layout.recent_apps, parent, false); in createView()
375 v = inflater.inflate(R.layout.menu_ime, parent, false); in createView()
377 v = inflater.inflate(R.layout.nav_key_space, parent, false); in createView()
379 v = inflater.inflate(R.layout.clipboard, parent, false); in createView()
381 v = inflater.inflate(R.layout.contextual, parent, false); in createView()
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/wifi/
DWifiEntryPreferenceTest.java162 final LayoutInflater inflater = LayoutInflater.from(mContext); in notNull_whenGetHelpUriString_shouldSetImageButtonVisible() local
163 final View view = inflater.inflate(pref.getLayoutResource(), new LinearLayout(mContext), in notNull_whenGetHelpUriString_shouldSetImageButtonVisible()
177 final LayoutInflater inflater = LayoutInflater.from(mContext); in helpButton_whenGetHelpUriStringNotNull_shouldSetCorrectContentDescription() local
178 final View view = inflater.inflate(pref.getLayoutResource(), new LinearLayout(mContext), in helpButton_whenGetHelpUriStringNotNull_shouldSetCorrectContentDescription()
193 final LayoutInflater inflater = LayoutInflater.from(mContext); in subscriptionEntry_shouldSetImageButtonGone() local
194 final View view = inflater.inflate(pref.getLayoutResource(), new LinearLayout(mContext), in subscriptionEntry_shouldSetImageButtonGone()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenrecord/
DScreenRecordingAdapter.java70 LayoutInflater inflater = (LayoutInflater) getContext() in getOption() local
72 LinearLayout layout = (LinearLayout) inflater in getOption()
83 LayoutInflater inflater = LayoutInflater.from(getContext()); in getSelected() local
84 LinearLayout layout = (LinearLayout) inflater in getSelected()
/frameworks/base/tests/BiDiTests/src/com/android/bidi/
DBiDiTestViewPadding.java13 public View onCreateView(LayoutInflater inflater, ViewGroup container, in onCreateView() argument
15 return inflater.inflate(R.layout.view_padding, container, false); in onCreateView()
DBiDiTestTextViewDirectionRtl.java27 public View onCreateView(LayoutInflater inflater, ViewGroup container, in onCreateView() argument
29 return inflater.inflate(R.layout.textview_direction_rtl, container, false); in onCreateView()
DBiDiTestFrameLayoutRtl.java28 public View onCreateView(LayoutInflater inflater, ViewGroup container, in onCreateView() argument
30 return inflater.inflate(R.layout.frame_layout_rtl, container, false); in onCreateView()
DBiDiTestTextViewLtr.java28 public View onCreateView(LayoutInflater inflater, ViewGroup container, in onCreateView() argument
30 return inflater.inflate(R.layout.textview_ltr, container, false); in onCreateView()
DBiDiTestTableLayoutLocale.java28 public View onCreateView(LayoutInflater inflater, ViewGroup container, in onCreateView() argument
30 return inflater.inflate(R.layout.table_layout_locale, container, false); in onCreateView()
DBiDiTestGridLayoutRtl.java28 public View onCreateView(LayoutInflater inflater, ViewGroup container, in onCreateView() argument
30 return inflater.inflate(R.layout.grid_layout_rtl, container, false); in onCreateView()

123456789