Searched refs:line (Results 1 - 25 of 321) sorted by relevance

1234567891011>>

/frameworks/support/frameworks/support/samples/SupportLeanbackDemos/
H A Dgeneratev4.py25 def replace_xml_head(line, name):
26 return line.replace('<?xml version="1.0" encoding="utf-8"?>', '<?xml version="1.0" encoding="utf-8"?>\n<!-- This file is auto-generated from {}.xml. DO NOT MODIFY. -->\n'.format(name))
31 for line in file:
32 line = line.replace('android.app.Fragment', 'androidx.fragment.app.Fragment')
33 line = line.replace('android.app.Activity', 'androidx.fragment.app.FragmentActivity')
34 line = line.replace('GuidedStepFragment', 'GuidedStepSupportFragment')
35 line
45 line = line.replace('android.app.Fragment', 'androidx.fragment.app.Fragment') variable
46 line = line.replace('android.app.Activity', 'androidx.fragment.app.FragmentActivity') variable
47 line = line.replace('GuidedStepFragment', 'GuidedStepSupportFragment') variable
48 line = line.replace('GuidedStepActivity', 'GuidedStepSupportActivity') variable
49 line = line.replace('GuidedStepHalfScreenActivity', 'GuidedStepSupportHalfScreenActivity') variable
50 line = line.replace('extends Activity', 'extends FragmentActivity') variable
59 line = line.replace('android.app.Fragment', 'androidx.fragment.app.Fragment') variable
60 line = line.replace('android.app.Activity', 'androidx.fragment.app.FragmentActivity') variable
61 line = line.replace('BrowseFragment', 'BrowseSupportFragment') variable
62 line = line.replace('GuidedStepFragment', 'GuidedStepSupportFragment') variable
63 line = line.replace('GuidedStepActivity', 'GuidedStepSupportActivity') variable
64 line = line.replace('getActivity().getFragmentManager()', 'getActivity().getSupportFragmentManager()') variable
65 line = line.replace('BrowseActivity', 'BrowseSupportActivity') variable
66 line = line.replace('DetailsActivity', 'DetailsSupportActivity') variable
67 line = line.replace('SearchActivity', 'SearchSupportActivity') variable
68 line = line.replace('RowsActivity', 'RowsSupportActivity') variable
69 line = line.replace('RowsFragment', 'RowsSupportFragment') variable
70 line = line.replace('GuidedStepHalfScreenActivity', 'GuidedStepSupportHalfScreenActivity') variable
79 line = line.replace('BrowseActivity', 'BrowseSupportActivity') variable
80 line = line.replace('android.app.Activity', 'androidx.fragment.app.FragmentActivity') variable
81 line = line.replace('extends Activity', 'extends FragmentActivity') variable
82 line = line.replace('R.layout.browse', 'R.layout.browse_support') variable
90 line = replace_xml_head(line, "browse") variable
91 line = line.replace('com.example.android.leanback.BrowseFragment', 'com.example.android.leanback.BrowseSupportFragment') variable
101 line = line.replace('android.app.Fragment', 'androidx.fragment.app.Fragment') variable
102 line = line.replace('android.app.Activity', 'androidx.fragment.app.FragmentActivity') variable
103 line = line.replace('DetailsFragment', 'DetailsSupportFragment') variable
104 line = line.replace('DetailsActivity', 'DetailsSupportActivity') variable
105 line = line.replace('PlaybackOverlayActivity', 'PlaybackOverlaySupportActivity') variable
106 line = line.replace('SearchActivity', 'SearchSupportActivity') variable
115 line = line.replace('android.app.Fragment', 'androidx.fragment.app.Fragment') variable
116 line = line.replace('android.app.Activity', 'androidx.fragment.app.FragmentActivity') variable
117 line = line.replace('DetailsFragment', 'DetailsSupportFragment') variable
118 line = line.replace('DetailsSupportFragmentVideoHelper', 'DetailsFragmentVideoHelper') variable
119 line = line.replace('VideoFragment', 'VideoSupportFragment') variable
120 line = line.replace('PlaybackFragmentGlueHost', 'PlaybackSupportFragmentGlueHost') variable
121 line = line.replace('DetailsActivity', 'DetailsSupportActivity') variable
122 line = line.replace('PlaybackOverlayActivity', 'PlaybackOverlaySupportActivity') variable
123 line = line.replace('SearchActivity', 'SearchSupportActivity') variable
124 line = line.replace('SearchActivity', 'SearchSupportActivity') variable
125 line = line.replace('getRowsFragment', 'getRowsSupportFragment') variable
134 line = line.replace('DetailsActivity', 'DetailsSupportActivity') variable
135 line = line.replace('android.app.Activity', 'androidx.fragment.app.FragmentActivity') variable
136 line = line.replace('extends Activity', 'extends FragmentActivity') variable
137 line = line.replace('getFragmentManager()', 'getSupportFragmentManager()') variable
138 line = line.replace('DetailsFragment', 'DetailsSupportFragment') variable
139 line = line.replace('NewDetailsFragment', 'NewDetailsSupportFragment') variable
148 line = line.replace('DetailsActivity', 'DetailsSupportActivity') variable
158 line = line.replace('SearchFragment', 'SearchSupportFragment') variable
159 line = line.replace('DetailsActivity', 'DetailsSupportActivity') variable
168 line = line.replace('SearchActivity', 'SearchSupportActivity') variable
169 line = line.replace('extends Activity', 'extends FragmentActivity') variable
170 line = line.replace('R.layout.search', 'R.layout.search_support') variable
171 line = line.replace('android.app.Activity', 'androidx.fragment.app.FragmentActivity') variable
172 line = line.replace('getFragmentManager()', 'getSupportFragmentManager()') variable
173 line = line.replace('SearchFragment', 'SearchSupportFragment') variable
181 line = replace_xml_head(line, "search") variable
182 line = line.replace('com.example.android.leanback.SearchFragment', 'com.example.android.leanback.SearchSupportFragment') variable
191 line = line.replace('VerticalGridFragment', 'VerticalGridSupportFragment') variable
192 line = line.replace('DetailsActivity', 'DetailsSupportActivity') variable
193 line = line.replace('SearchActivity', 'SearchSupportActivity') variable
202 line = line.replace('VerticalGridActivity', 'VerticalGridSupportActivity') variable
203 line = line.replace('extends Activity', 'extends FragmentActivity') variable
204 line = line.replace('R.layout.vertical_grid', 'R.layout.vertical_grid_support') variable
205 line = line.replace('android.app.Activity', 'androidx.fragment.app.FragmentActivity') variable
206 line = line.replace('getFragmentManager()', 'getSupportFragmentManager()') variable
207 line = line.replace('VerticalGridFragment', 'VerticalGridSupportFragment') variable
215 line = replace_xml_head(line, "vertical_grid") variable
216 line = line.replace('com.example.android.leanback.VerticalGridFragment', 'com.example.android.leanback.VerticalGridSupportFragment') variable
226 line = line.replace('ErrorFragment', 'ErrorSupportFragment') variable
235 line = line.replace('BrowseErrorActivity', 'BrowseErrorSupportActivity') variable
236 line = line.replace('extends Activity', 'extends FragmentActivity') variable
237 line = line.replace('R.layout.browse', 'R.layout.browse_support') variable
238 line = line.replace('android.app.Activity', 'androidx.fragment.app.FragmentActivity') variable
239 line = line.replace('getFragmentManager()', 'getSupportFragmentManager()') variable
240 line = line.replace('ErrorFragment', 'ErrorSupportFragment') variable
241 line = line.replace('SpinnerFragment', 'SpinnerSupportFragment') variable
242 line = line.replace('android.app.Fragment', 'androidx.fragment.app.Fragment') variable
251 line = line.replace('RowsFragment', 'RowsSupportFragment') variable
252 line = line.replace('DetailsActivity', 'DetailsSupportActivity') variable
261 line = line.replace('RowsActivity', 'RowsSupportActivity') variable
262 line = line.replace('extends Activity', 'extends FragmentActivity') variable
263 line = line.replace('R.layout.rows', 'R.layout.rows_support') variable
264 line = line.replace('android.app.Activity', 'androidx.fragment.app.FragmentActivity') variable
265 line = line.replace('RowsFragment', 'RowsSupportFragment') variable
266 line = line.replace('getFragmentManager()', 'getSupportFragmentManager()') variable
267 line = line.replace('SearchActivity', 'SearchSupportActivity') variable
275 line = replace_xml_head(line, "rows") variable
276 line = line.replace('com.example.android.leanback.RowsFragment', 'com.example.android.leanback.RowsSupportFragment') variable
285 line = line.replace('PlaybackFragment', 'PlaybackSupportFragment') variable
286 line = line.replace('PlaybackActivity', 'PlaybackSupportActivity') variable
295 line = line.replace('PlaybackActivity', 'PlaybackSupportActivity') variable
296 line = line.replace('extends Activity', 'extends FragmentActivity') variable
297 line = line.replace('R.layout.playback_activity', 'R.layout.playback_activity_support') variable
298 line = line.replace('android.app.Activity', 'androidx.fragment.app.FragmentActivity') variable
306 line = replace_xml_head(line, "playback_controls") variable
307 line = line.replace('com.example.android.leanback.PlaybackFragment', 'com.example.android.leanback.PlaybackSupportFragment') variable
316 line = line.replace('PlaybackFragment', 'PlaybackSupportFragment') variable
317 line = line.replace('PlaybackTransportControlFragment', 'PlaybackTransportControlSupportFragment') variable
318 line = line.replace('PlaybackTransportControlActivity', 'PlaybackTransportControlSupportActivity') variable
327 line = line.replace('PlaybackTransportControlActivity', 'PlaybackTransportControlSupportActivity') variable
328 line = line.replace('extends Activity', 'extends FragmentActivity') variable
329 line = line.replace('R.layout.playback_transportcontrol_activity', 'R.layout.playback_transportcontrol_activity_support') variable
330 line = line.replace('android.app.Activity', 'androidx.fragment.app.FragmentActivity') variable
338 line = replace_xml_head(line, "playback_transportcontrols") variable
339 line = line.replace('com.example.android.leanback.PlaybackTransportControlFragment', 'com.example.android.leanback.PlaybackTransportControlSupportFragment') variable
347 line = replace_xml_head(line, "playback_controls") variable
348 line = line.replace('com.example.android.leanback.PlaybackOverlayFragment', 'com.example.android.leanback.PlaybackOverlaySupportFragment') variable
357 line = line.replace('android.app.Fragment', 'androidx.fragment.app.Fragment') variable
358 line = line.replace('android.app.Activity', 'androidx.fragment.app.FragmentActivity') variable
359 line = line.replace('OnboardingActivity', 'OnboardingSupportActivity') variable
360 line = line.replace('OnboardingDemoFragment', 'OnboardingDemoSupportFragment') variable
361 line = line.replace('extends Activity', 'extends FragmentActivity') variable
362 line = line.replace('getFragmentManager()', 'getSupportFragmentManager()') variable
371 line = line.replace('android.app.Fragment', 'androidx.fragment.app.Fragment') variable
372 line = line.replace('import android.app.Activity', 'import androidx.fragment.app.FragmentActivity') variable
373 line = line.replace('OnboardingDemoFragment', 'OnboardingDemoSupportFragment') variable
374 line = line.replace('OnboardingFragment', 'OnboardingSupportFragment') variable
375 line = line.replace('OnboardingActivity', 'OnboardingSupportActivity') variable
384 line = line.replace('android.app.Fragment', 'androidx.fragment.app.Fragment') variable
385 line = line.replace('import android.app.Activity', 'import androidx.fragment.app.FragmentActivity') variable
386 line = line.replace('SampleVideoFragment', 'SampleVideoSupportFragment') variable
387 line = line.replace('VideoFragment', 'VideoSupportFragment') variable
396 line = line.replace('android.app.Fragment', 'androidx.fragment.app.Fragment') variable
397 line = line.replace('import android.app.Activity', 'import androidx.fragment.app.FragmentActivity') variable
398 line = line.replace('VideoActivity', 'VideoSupportActivity') variable
399 line = line.replace('extends Activity', 'extends FragmentActivity') variable
400 line = line.replace('getFragmentManager()', 'getSupportFragmentManager()') variable
401 line = line.replace('SampleVideoFragment', 'SampleVideoSupportFragment') variable
[all...]
/frameworks/support/samples/SupportLeanbackDemos/
H A Dgeneratev4.py25 def replace_xml_head(line, name):
26 return line.replace('<?xml version="1.0" encoding="utf-8"?>', '<?xml version="1.0" encoding="utf-8"?>\n<!-- This file is auto-generated from {}.xml. DO NOT MODIFY. -->\n'.format(name))
31 for line in file:
32 line = line.replace('android.app.Fragment', 'androidx.fragment.app.Fragment')
33 line = line.replace('android.app.Activity', 'androidx.fragment.app.FragmentActivity')
34 line = line.replace('GuidedStepFragment', 'GuidedStepSupportFragment')
35 line
45 line = line.replace('android.app.Fragment', 'androidx.fragment.app.Fragment') variable
46 line = line.replace('android.app.Activity', 'androidx.fragment.app.FragmentActivity') variable
47 line = line.replace('GuidedStepFragment', 'GuidedStepSupportFragment') variable
48 line = line.replace('GuidedStepActivity', 'GuidedStepSupportActivity') variable
49 line = line.replace('GuidedStepHalfScreenActivity', 'GuidedStepSupportHalfScreenActivity') variable
50 line = line.replace('extends Activity', 'extends FragmentActivity') variable
59 line = line.replace('android.app.Fragment', 'androidx.fragment.app.Fragment') variable
60 line = line.replace('android.app.Activity', 'androidx.fragment.app.FragmentActivity') variable
61 line = line.replace('BrowseFragment', 'BrowseSupportFragment') variable
62 line = line.replace('GuidedStepFragment', 'GuidedStepSupportFragment') variable
63 line = line.replace('GuidedStepActivity', 'GuidedStepSupportActivity') variable
64 line = line.replace('getActivity().getFragmentManager()', 'getActivity().getSupportFragmentManager()') variable
65 line = line.replace('BrowseActivity', 'BrowseSupportActivity') variable
66 line = line.replace('DetailsActivity', 'DetailsSupportActivity') variable
67 line = line.replace('SearchActivity', 'SearchSupportActivity') variable
68 line = line.replace('RowsActivity', 'RowsSupportActivity') variable
69 line = line.replace('RowsFragment', 'RowsSupportFragment') variable
70 line = line.replace('GuidedStepHalfScreenActivity', 'GuidedStepSupportHalfScreenActivity') variable
79 line = line.replace('BrowseActivity', 'BrowseSupportActivity') variable
80 line = line.replace('android.app.Activity', 'androidx.fragment.app.FragmentActivity') variable
81 line = line.replace('extends Activity', 'extends FragmentActivity') variable
82 line = line.replace('R.layout.browse', 'R.layout.browse_support') variable
90 line = replace_xml_head(line, "browse") variable
91 line = line.replace('com.example.android.leanback.BrowseFragment', 'com.example.android.leanback.BrowseSupportFragment') variable
101 line = line.replace('android.app.Fragment', 'androidx.fragment.app.Fragment') variable
102 line = line.replace('android.app.Activity', 'androidx.fragment.app.FragmentActivity') variable
103 line = line.replace('DetailsFragment', 'DetailsSupportFragment') variable
104 line = line.replace('DetailsActivity', 'DetailsSupportActivity') variable
105 line = line.replace('PlaybackOverlayActivity', 'PlaybackOverlaySupportActivity') variable
106 line = line.replace('SearchActivity', 'SearchSupportActivity') variable
115 line = line.replace('android.app.Fragment', 'androidx.fragment.app.Fragment') variable
116 line = line.replace('android.app.Activity', 'androidx.fragment.app.FragmentActivity') variable
117 line = line.replace('DetailsFragment', 'DetailsSupportFragment') variable
118 line = line.replace('DetailsSupportFragmentVideoHelper', 'DetailsFragmentVideoHelper') variable
119 line = line.replace('VideoFragment', 'VideoSupportFragment') variable
120 line = line.replace('PlaybackFragmentGlueHost', 'PlaybackSupportFragmentGlueHost') variable
121 line = line.replace('DetailsActivity', 'DetailsSupportActivity') variable
122 line = line.replace('PlaybackOverlayActivity', 'PlaybackOverlaySupportActivity') variable
123 line = line.replace('SearchActivity', 'SearchSupportActivity') variable
124 line = line.replace('SearchActivity', 'SearchSupportActivity') variable
125 line = line.replace('getRowsFragment', 'getRowsSupportFragment') variable
134 line = line.replace('DetailsActivity', 'DetailsSupportActivity') variable
135 line = line.replace('android.app.Activity', 'androidx.fragment.app.FragmentActivity') variable
136 line = line.replace('extends Activity', 'extends FragmentActivity') variable
137 line = line.replace('getFragmentManager()', 'getSupportFragmentManager()') variable
138 line = line.replace('DetailsFragment', 'DetailsSupportFragment') variable
139 line = line.replace('NewDetailsFragment', 'NewDetailsSupportFragment') variable
148 line = line.replace('DetailsActivity', 'DetailsSupportActivity') variable
158 line = line.replace('SearchFragment', 'SearchSupportFragment') variable
159 line = line.replace('DetailsActivity', 'DetailsSupportActivity') variable
168 line = line.replace('SearchActivity', 'SearchSupportActivity') variable
169 line = line.replace('extends Activity', 'extends FragmentActivity') variable
170 line = line.replace('R.layout.search', 'R.layout.search_support') variable
171 line = line.replace('android.app.Activity', 'androidx.fragment.app.FragmentActivity') variable
172 line = line.replace('getFragmentManager()', 'getSupportFragmentManager()') variable
173 line = line.replace('SearchFragment', 'SearchSupportFragment') variable
181 line = replace_xml_head(line, "search") variable
182 line = line.replace('com.example.android.leanback.SearchFragment', 'com.example.android.leanback.SearchSupportFragment') variable
191 line = line.replace('VerticalGridFragment', 'VerticalGridSupportFragment') variable
192 line = line.replace('DetailsActivity', 'DetailsSupportActivity') variable
193 line = line.replace('SearchActivity', 'SearchSupportActivity') variable
202 line = line.replace('VerticalGridActivity', 'VerticalGridSupportActivity') variable
203 line = line.replace('extends Activity', 'extends FragmentActivity') variable
204 line = line.replace('R.layout.vertical_grid', 'R.layout.vertical_grid_support') variable
205 line = line.replace('android.app.Activity', 'androidx.fragment.app.FragmentActivity') variable
206 line = line.replace('getFragmentManager()', 'getSupportFragmentManager()') variable
207 line = line.replace('VerticalGridFragment', 'VerticalGridSupportFragment') variable
215 line = replace_xml_head(line, "vertical_grid") variable
216 line = line.replace('com.example.android.leanback.VerticalGridFragment', 'com.example.android.leanback.VerticalGridSupportFragment') variable
226 line = line.replace('ErrorFragment', 'ErrorSupportFragment') variable
235 line = line.replace('BrowseErrorActivity', 'BrowseErrorSupportActivity') variable
236 line = line.replace('extends Activity', 'extends FragmentActivity') variable
237 line = line.replace('R.layout.browse', 'R.layout.browse_support') variable
238 line = line.replace('android.app.Activity', 'androidx.fragment.app.FragmentActivity') variable
239 line = line.replace('getFragmentManager()', 'getSupportFragmentManager()') variable
240 line = line.replace('ErrorFragment', 'ErrorSupportFragment') variable
241 line = line.replace('SpinnerFragment', 'SpinnerSupportFragment') variable
242 line = line.replace('android.app.Fragment', 'androidx.fragment.app.Fragment') variable
251 line = line.replace('RowsFragment', 'RowsSupportFragment') variable
252 line = line.replace('DetailsActivity', 'DetailsSupportActivity') variable
261 line = line.replace('RowsActivity', 'RowsSupportActivity') variable
262 line = line.replace('extends Activity', 'extends FragmentActivity') variable
263 line = line.replace('R.layout.rows', 'R.layout.rows_support') variable
264 line = line.replace('android.app.Activity', 'androidx.fragment.app.FragmentActivity') variable
265 line = line.replace('RowsFragment', 'RowsSupportFragment') variable
266 line = line.replace('getFragmentManager()', 'getSupportFragmentManager()') variable
267 line = line.replace('SearchActivity', 'SearchSupportActivity') variable
275 line = replace_xml_head(line, "rows") variable
276 line = line.replace('com.example.android.leanback.RowsFragment', 'com.example.android.leanback.RowsSupportFragment') variable
285 line = line.replace('PlaybackFragment', 'PlaybackSupportFragment') variable
286 line = line.replace('PlaybackActivity', 'PlaybackSupportActivity') variable
295 line = line.replace('PlaybackActivity', 'PlaybackSupportActivity') variable
296 line = line.replace('extends Activity', 'extends FragmentActivity') variable
297 line = line.replace('R.layout.playback_activity', 'R.layout.playback_activity_support') variable
298 line = line.replace('android.app.Activity', 'androidx.fragment.app.FragmentActivity') variable
306 line = replace_xml_head(line, "playback_controls") variable
307 line = line.replace('com.example.android.leanback.PlaybackFragment', 'com.example.android.leanback.PlaybackSupportFragment') variable
316 line = line.replace('PlaybackFragment', 'PlaybackSupportFragment') variable
317 line = line.replace('PlaybackTransportControlFragment', 'PlaybackTransportControlSupportFragment') variable
318 line = line.replace('PlaybackTransportControlActivity', 'PlaybackTransportControlSupportActivity') variable
327 line = line.replace('PlaybackTransportControlActivity', 'PlaybackTransportControlSupportActivity') variable
328 line = line.replace('extends Activity', 'extends FragmentActivity') variable
329 line = line.replace('R.layout.playback_transportcontrol_activity', 'R.layout.playback_transportcontrol_activity_support') variable
330 line = line.replace('android.app.Activity', 'androidx.fragment.app.FragmentActivity') variable
338 line = replace_xml_head(line, "playback_transportcontrols") variable
339 line = line.replace('com.example.android.leanback.PlaybackTransportControlFragment', 'com.example.android.leanback.PlaybackTransportControlSupportFragment') variable
347 line = replace_xml_head(line, "playback_controls") variable
348 line = line.replace('com.example.android.leanback.PlaybackOverlayFragment', 'com.example.android.leanback.PlaybackOverlaySupportFragment') variable
357 line = line.replace('android.app.Fragment', 'androidx.fragment.app.Fragment') variable
358 line = line.replace('android.app.Activity', 'androidx.fragment.app.FragmentActivity') variable
359 line = line.replace('OnboardingActivity', 'OnboardingSupportActivity') variable
360 line = line.replace('OnboardingDemoFragment', 'OnboardingDemoSupportFragment') variable
361 line = line.replace('extends Activity', 'extends FragmentActivity') variable
362 line = line.replace('getFragmentManager()', 'getSupportFragmentManager()') variable
371 line = line.replace('android.app.Fragment', 'androidx.fragment.app.Fragment') variable
372 line = line.replace('import android.app.Activity', 'import androidx.fragment.app.FragmentActivity') variable
373 line = line.replace('OnboardingDemoFragment', 'OnboardingDemoSupportFragment') variable
374 line = line.replace('OnboardingFragment', 'OnboardingSupportFragment') variable
375 line = line.replace('OnboardingActivity', 'OnboardingSupportActivity') variable
384 line = line.replace('android.app.Fragment', 'androidx.fragment.app.Fragment') variable
385 line = line.replace('import android.app.Activity', 'import androidx.fragment.app.FragmentActivity') variable
386 line = line.replace('SampleVideoFragment', 'SampleVideoSupportFragment') variable
387 line = line.replace('VideoFragment', 'VideoSupportFragment') variable
396 line = line.replace('android.app.Fragment', 'androidx.fragment.app.Fragment') variable
397 line = line.replace('import android.app.Activity', 'import androidx.fragment.app.FragmentActivity') variable
398 line = line.replace('VideoActivity', 'VideoSupportActivity') variable
399 line = line.replace('extends Activity', 'extends FragmentActivity') variable
400 line = line.replace('getFragmentManager()', 'getSupportFragmentManager()') variable
401 line = line.replace('SampleVideoFragment', 'SampleVideoSupportFragment') variable
[all...]
/frameworks/support/leanback/
H A Dgeneratef.py34 for line in file:
35 line = line.replace('IS_FRAMEWORK_FRAGMENT = false', 'IS_FRAMEWORK_FRAGMENT = true'); variable
37 line = line.replace('{}SupportFragment'.format(w2), '{}Fragment'.format(w2)) variable
38 line = line.replace('androidx.fragment.app.FragmentActivity', 'android.app.Activity') variable
39 line = line.replace('androidx.fragment.app.Fragment', 'android.app.Fragment') variable
40 line variable
41 line = line.replace('FragmentActivity activity', 'Activity activity') variable
42 line = line.replace('(FragmentActivity', '(Activity') variable
44 line = re.sub(r'([^\\.])getContext\\(\\)', r'\\1FragmentUtil.getContext({}Fragment.this)'.format(w), line); variable
61 line = line.replace('androidx.fragment.app.Fragment', 'android.app.Fragment') variable
62 line = line.replace('VideoSupportFragment', 'VideoFragment') variable
63 line = line.replace('PlaybackSupportFragment', 'PlaybackFragment') variable
79 line = line.replace('VideoSupportFragment', 'VideoFragment') variable
80 line = line.replace('PlaybackSupportFragment', 'PlaybackFragment') variable
81 line = line.replace('androidx.fragment.app.Fragment', 'android.app.Fragment') variable
97 line = line.replace('VideoSupportFragment', 'VideoFragment') variable
98 line = line.replace('DetailsSupportFragment', 'DetailsFragment') variable
99 line = line.replace('RowsSupportFragment', 'RowsFragment') variable
100 line = line.replace('androidx.fragment.app.Fragment', 'android.app.Fragment') variable
101 line = line.replace('mFragment.getContext()', 'FragmentUtil.getContext(mFragment)') variable
[all...]
/frameworks/support/leanback/src/androidTest/
H A Dgeneratev4.py40 for line in file:
42 line = line.replace('{}SupportFragment'.format(w), '{}Fragment'.format(w)) variable
43 line = line.replace('androidx.fragment.app.FragmentActivity', 'android.app.Activity') variable
44 line = line.replace('androidx.fragment.app.Fragment', 'android.app.Fragment') variable
45 line = line.replace('FragmentActivity getActivity()', 'Activity getActivity()') variable
46 outfile.write(line)
65 line = line.replace('{}SupportFragment'.format(w), '{}Fragment'.format(w)) variable
67 line = line.replace('{}SupportFragmentTestBase'.format(w), '{}FragmentTestBase'.format(w)) variable
68 line = line.replace('{}SupportFragmentTestActivity'.format(w), '{}FragmentTestActivity'.format(w)) variable
69 line = line.replace('{}TestSupportFragment'.format(w), '{}TestFragment'.format(w)) variable
70 line = line.replace('androidx.fragment.app.FragmentActivity', 'android.app.Activity') variable
71 line = line.replace('androidx.fragment.app.Fragment', 'android.app.Fragment') variable
91 line = line.replace('{}SupportFragment'.format(w), '{}Fragment'.format(w)) variable
93 line = line.replace('SingleSupportFragmentTestBase', 'SingleFragmentTestBase') variable
94 line = line.replace('SingleSupportFragmentTestActivity', 'SingleFragmentTestActivity') variable
95 line = line.replace('{}SupportFragmentTestBase'.format(w), '{}FragmentTestBase'.format(w)) variable
96 line = line.replace('{}SupportFragmentTest'.format(w), '{}FragmentTest'.format(w)) variable
97 line = line.replace('{}SupportFragmentTestActivity'.format(w), '{}FragmentTestActivity'.format(w)) variable
98 line = line.replace('{}TestSupportFragment'.format(w), '{}TestFragment'.format(w)) variable
99 line = line.replace('androidx.fragment.app.FragmentActivity', 'android.app.Activity') variable
100 line = line.replace('androidx.fragment.app.Fragment', 'android.app.Fragment') variable
101 line = line.replace('extends FragmentActivity', 'extends Activity') variable
102 line = line.replace('Activity.this.getSupportFragmentManager', 'Activity.this.getFragmentManager') variable
103 line = line.replace('tivity.getSupportFragmentManager', 'tivity.getFragmentManager') variable
119 line = line.replace('{}TestSupportFragment'.format(w), '{}TestFragment'.format(w)) variable
120 line = line.replace('{}SupportFragmentTestActivity'.format(w), '{}FragmentTestActivity'.format(w)) variable
121 line = line.replace('androidx.fragment.app.FragmentActivity', 'android.app.Activity') variable
122 line = line.replace('androidx.fragment.app.Fragment', 'android.app.Fragment') variable
123 line = line.replace('extends FragmentActivity', 'extends Activity') variable
124 line = line.replace('getSupportFragmentManager', 'getFragmentManager') variable
137 line = line.replace('IntEffect', 'FloatEffect') variable
138 line = line.replace('IntParallax', 'FloatParallax') variable
139 line = line.replace('IntProperty', 'FloatProperty') variable
140 line = line.replace('intValue()', 'floatValue()') variable
141 line = line.replace('int screenMax', 'float screenMax') variable
142 line = line.replace('assertEquals((int)', 'assertFloatEquals((float)') variable
143 line = line.replace('(int)', '(float)') variable
144 line = line.replace('int[', 'float[') variable
145 line = line.replace('Integer', 'Float'); variable
157 line = line.replace('ParallaxIntTest', 'ParallaxFloatTest') variable
158 line = line.replace('IntParallax', 'FloatParallax') variable
159 line = line.replace('IntProperty', 'FloatProperty') variable
160 line = line.replace('verifyIntProperties', 'verifyFloatProperties') variable
161 line = line.replace('intValue()', 'floatValue()') variable
162 line = line.replace('int screenMax', 'float screenMax') variable
163 line = line.replace('assertEquals((int)', 'assertFloatEquals((float)') variable
164 line = line.replace('(int)', '(float)') variable
[all...]
/frameworks/native/opengl/libs/tools/
H A Dglentrygen26 while (my $line = <>) {
27 next if $line =~ /^\//;
28 next if $line =~ /^#/;
29 next if $line =~ /^\s*$/;
30 if ($line !~ /^GL_API(CALL)?\s+(.+)\s+GL_APIENTRY\s+([\w]+)\s*\(([^\)]+)\);/) {
H A Dglenumsgen21 while (my $line = <STDIN>) {
22 next if $line =~ /^\//;
24 next if $line =~ /_BIT(\d+_|\s+)/;
25 if ($line !~ /^#define\s+(\S+)\s+(0x\S+)/) {
/frameworks/wilhelm/src/
H A Dassert.cpp24 void __assert(const char *file, int line, const char *failedexpr) argument
26 LOG_ALWAYS_FATAL("assertion \"%s\" failed: file \"%s\", line %d", failedexpr, file, line);
30 void __assert2(const char *file, int line, const char *func, const char *failedexpr) argument
32 LOG_ALWAYS_FATAL("assertion \"%s\" failed: file \"%s\", line %d, function \"%s\"",
33 failedexpr, file, line, func);
/frameworks/support/lifecycle/compiler/
H A Dreset_results.py35 for line in lines:
36 file.write(line)
45 for line in content:
46 if (state == 0 and line.startswith(expected)):
48 filename = line[line.rfind("/") + 1 : len(line) - 2]
51 if state == 1 and line.startswith("Actual Source:"):
56 fileLines.append(line)
58 if state == 2 and line
[all...]
/frameworks/native/cmds/installd/
H A Dfile_parsing.h35 // Read the next line.
36 std::string line; local
37 getline(input_stream, line);
39 // Is the line empty? Simplifies the next check.
40 if (line.empty()) {
45 if (line[0] == '#') {
49 if (!parse(line)) {
/frameworks/base/tools/aapt2/
H A DSource.h33 Maybe<size_t> line; member in struct:aapt::Source
40 inline Source(const android::StringPiece& path, size_t line) argument
41 : path(path.to_string()), line(line) {}
43 inline Source WithLine(size_t line) const {
44 return Source(path, line);
48 if (line) {
49 return ::android::base::StringPrintf("%s:%zd", path.c_str(), line.value());
64 return lhs.path == rhs.path && lhs.line == rhs.line;
[all...]
/frameworks/base/cmds/incident_helper/src/parsers/
H A DBatteryTypeParser.cpp30 string line; local
35 // parse line by line
36 while (reader.readLine(&line)) {
37 if (line.empty()) continue;
44 proto.write(BatteryTypeProto::TYPE, line);
49 if (!reader.ok(&line)) {
50 fprintf(stderr, "Bad read from fd %d: %s\n", in, line.c_str());
H A DKernelWakesParser.cpp30 string line; local
40 // parse line by line
41 while (reader.readLine(&line)) {
42 if (line.empty()) continue;
43 // parse head line
45 header = parseHeader(line, TAB_DELIMITER);
49 // parse for each record, the line delimiter is \t only!
50 record = parseRecord(line, TAB_DELIMITER);
54 fprintf(stderr, "[%s]Line %d has missing fields\n%s\n", this->name.string(), nline, line
[all...]
/frameworks/base/core/java/com/android/internal/alsa/
H A DLineTokenizer.java32 int nextToken(String line, int startIndex) { argument
33 int len = line.length();
36 if (mDelimiters.indexOf(line.charAt(offset)) == -1) {
45 int nextDelimiter(String line, int startIndex) { argument
46 int len = line.length();
49 if (mDelimiters.indexOf(line.charAt(offset)) != -1) {
H A DAlsaCardsParser.java77 private boolean parse(String line, int lineIndex) { argument
82 // line # (skip)
83 tokenIndex = mTokenizer.nextToken(line, tokenIndex);
84 delimIndex = mTokenizer.nextDelimiter(line, tokenIndex);
88 mCardNum = Integer.parseInt(line.substring(tokenIndex, delimIndex));
90 Slog.e(TAG, "Failed to parse line " + lineIndex + " of " + kCardsFilePath
91 + ": " + line.substring(tokenIndex, delimIndex));
96 tokenIndex = mTokenizer.nextToken(line, delimIndex);
97 delimIndex = mTokenizer.nextDelimiter(line, tokenIndex);
98 mField1 = line
[all...]
/frameworks/av/media/libstagefright/foundation/
H A Dhexdump.cpp47 AString line; local
49 appendIndent(&line, indent);
54 line.append(tmp);
58 line.append(' ');
61 line.append(" ");
64 line.append(tmp);
68 line.append(' ');
76 line.append((char)data[offset + i]);
78 line.append('.');
83 appendTo->append(line);
[all...]
/frameworks/native/cmds/bugreportz/
H A Dbugreportz.cpp33 static void write_line(const std::string& line, bool show_progress) { argument
34 if (line.empty()) return;
38 if (!show_progress && (android::base::StartsWith(line, PROGRESS_PREFIX) ||
39 android::base::StartsWith(line, BEGIN_PREFIX)))
42 android::base::WriteStringToFd(line, STDOUT_FILENO);
46 std::string line; local
61 // Writes line by line.
64 line.append(1, c);
66 write_line(line, show_progres
[all...]
/frameworks/rs/tests/java_api/Refocus/dataExtraction/
H A Dextract_data.sh24 while read line;do
25 if [[ $line =~ $regexN ]];
51 echo $line >> $cleanFilename
53 elif [[ $line =~ $regexData ]];
56 newLine=`echo $line|grep -oE '[0-9]+ ns'|awk '{print $1}'`
58 if [[ $line =~ 'Initialize' ]];
61 elif [[ $line =~ 'UnpackInputImage' ]];
64 elif [[ $line =~ 'MarkLayerMask' ]];
67 elif [[ $line =~ 'ComputeLayerMatteBehindFocalDepth' ]];
70 elif [[ $line
[all...]
H A Dextract_ave.sh24 while read line;do
25 if [[ $line =~ $regexN ]];
66 echo $line >> $cleanFilename
68 elif [[ $line =~ $regexData ]];
71 newLine=`echo $line|awk '{print $2}'`
73 if [[ $line =~ 'Initialize' ]];
76 elif [[ $line =~ 'UnpackInputImage' ]];
79 elif [[ $line =~ 'MarkLayerMask' ]];
82 elif [[ $line =~ 'ComputeLayerMatteBehindFocalDepth' ]];
85 elif [[ $line
[all...]
/frameworks/ml/nn/tools/
H A Dsync_enums_to_hal.py48 line = self.sections[self.current - 1].pop()
49 self.sections[self.current].insert(0, line)
61 def handle_line(self, line):
69 for line in lines:
70 self.sections[self.current].append(line)
73 self.handle_line(line)
106 def handle_line(self, line):
107 if "enum OperandType" in line:
110 elif "enum OperationType" in line:
113 elif "OEM" in line an
[all...]
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/
H A DLineVerifierElem.java36 public LineVerifierElem addExpected(final String line) { argument
37 if (!TextUtils.isEmpty(line)) {
38 mExpectedLineList.add(line);
51 final String line = lineArray[i];
52 if (TextUtils.isEmpty(line)) {
56 if ("BEGIN:VCARD".equalsIgnoreCase(line)) {
58 TestCase.fail("Multiple \"BEGIN:VCARD\" line found");
63 } else if ("END:VCARD".equalsIgnoreCase(line)) {
65 TestCase.fail("Multiple \"END:VCARD\" line found");
72 "VERSION:4.0")).equalsIgnoreCase(line)) {
[all...]
/frameworks/base/cmds/statsd/tools/loadtest/src/com/android/statsd/loadtest/
H A DPerfParser.java23 * Parses one line of the dumpsys output, and returns a string to write to the data file,
26 @Nullable String parseLine(String line); argument
/frameworks/base/core/java/com/android/internal/os/
H A DAndroidPrintStream.java46 protected void log(String line) { argument
47 Log.println(priority, tag, line);
/frameworks/base/tests/net/java/android/net/apf/
H A DBpf2Apf.java39 private static int parseImm(String line, String arg) { argument
41 throw new IllegalArgumentException("Unhandled instruction: " + line);
45 throw new IllegalArgumentException("Unhandled instruction: " + line);
51 * Convert a single line of "tcpdump -d" (human readable BPF program dump) {@code line} into
52 * APF instruction(s) and append them to {@code gen}. Here's an example line:
55 private static void convertLine(String line, ApfGenerator gen) argument
57 if (line.indexOf("(") != 0 || line.indexOf(")") != 4 || line
[all...]
/frameworks/layoutlib/bridge/src/android/text/
H A DLineWidth.java32 public float getLineWidth(int line) { argument
33 return (line < mFirstWidthLineCount) ? mFirstWidth : mRestWidth;
/frameworks/native/opengl/tools/glgen/
H A Dconvert_to_java.py26 for line in sys.stdin:
27 defineValuePair = line.strip().split()[1:]

Completed in 724 milliseconds

1234567891011>>