Searched refs:line (Results 1 - 25 of 275) 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', 'android.support.v4.app.Fragment')
33 line = line.replace('android.app.Activity', 'android.support.v4.app.FragmentActivity')
34 line = line.replace('GuidedStepFragment', 'GuidedStepSupportFragment')
35 line
45 line = line.replace('android.app.Fragment', 'android.support.v4.app.Fragment') variable
46 line = line.replace('android.app.Activity', 'android.support.v4.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', 'android.support.v4.app.Fragment') variable
60 line = line.replace('android.app.Activity', 'android.support.v4.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', 'android.support.v4.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', 'android.support.v4.app.Fragment') variable
102 line = line.replace('android.app.Activity', 'android.support.v4.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', 'android.support.v4.app.Fragment') variable
116 line = line.replace('android.app.Activity', 'android.support.v4.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', 'android.support.v4.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', 'android.support.v4.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', 'android.support.v4.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', 'android.support.v4.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', 'android.support.v4.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', 'android.support.v4.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', 'android.support.v4.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', 'android.support.v4.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
350 line = line.replace('PlaybackOverlayFragment', 'PlaybackOverlaySupportFragment') variable
351 line = line.replace('PlaybackControlHelper', 'PlaybackControlSupportHelper') variable
352 line = line.replace('PlaybackOverlayActivity', 'PlaybackOverlaySupportActivity') variable
362 line = line.replace('PlaybackControlHelper', 'PlaybackControlSupportHelper') variable
363 line = line.replace('PlaybackControlGlue', 'PlaybackControlSupportGlue') variable
364 line = line.replace('PlaybackOverlayFragment', 'PlaybackOverlaySupportFragment') variable
373 line = line.replace('PlaybackOverlayActivity', 'PlaybackOverlaySupportActivity') variable
374 line = line.replace('extends Activity', 'extends FragmentActivity') variable
375 line = line.replace('R.layout.playback_controls', 'R.layout.playback_controls_support') variable
376 line = line.replace('android.app.Activity', 'android.support.v4.app.FragmentActivity') variable
384 line = replace_xml_head(line, "playback_controls") variable
385 line = line.replace('com.example.android.leanback.PlaybackOverlayFragment', 'com.example.android.leanback.PlaybackOverlaySupportFragment') variable
394 line = line.replace('android.app.Fragment', 'android.support.v4.app.Fragment') variable
395 line = line.replace('android.app.Activity', 'android.support.v4.app.FragmentActivity') variable
396 line = line.replace('OnboardingActivity', 'OnboardingSupportActivity') variable
397 line = line.replace('OnboardingDemoFragment', 'OnboardingDemoSupportFragment') variable
398 line = line.replace('extends Activity', 'extends FragmentActivity') variable
399 line = line.replace('getFragmentManager()', 'getSupportFragmentManager()') variable
408 line = line.replace('android.app.Fragment', 'android.support.v4.app.Fragment') variable
409 line = line.replace('import android.app.Activity', 'import android.support.v4.app.FragmentActivity') variable
410 line = line.replace('OnboardingDemoFragment', 'OnboardingDemoSupportFragment') variable
411 line = line.replace('OnboardingFragment', 'OnboardingSupportFragment') variable
412 line = line.replace('OnboardingActivity', 'OnboardingSupportActivity') variable
421 line = line.replace('android.app.Fragment', 'android.support.v4.app.Fragment') variable
422 line = line.replace('import android.app.Activity', 'import android.support.v4.app.FragmentActivity') variable
423 line = line.replace('SampleVideoFragment', 'SampleVideoSupportFragment') variable
424 line = line.replace('VideoFragment', 'VideoSupportFragment') variable
433 line = line.replace('android.app.Fragment', 'android.support.v4.app.Fragment') variable
434 line = line.replace('import android.app.Activity', 'import android.support.v4.app.FragmentActivity') variable
435 line = line.replace('VideoActivity', 'VideoSupportActivity') variable
436 line = line.replace('extends Activity', 'extends FragmentActivity') variable
437 line = line.replace('getFragmentManager()', 'getSupportFragmentManager()') variable
438 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', 'android.support.v4.app.Fragment')
33 line = line.replace('android.app.Activity', 'android.support.v4.app.FragmentActivity')
34 line = line.replace('GuidedStepFragment', 'GuidedStepSupportFragment')
35 line
45 line = line.replace('android.app.Fragment', 'android.support.v4.app.Fragment') variable
46 line = line.replace('android.app.Activity', 'android.support.v4.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', 'android.support.v4.app.Fragment') variable
60 line = line.replace('android.app.Activity', 'android.support.v4.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', 'android.support.v4.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', 'android.support.v4.app.Fragment') variable
102 line = line.replace('android.app.Activity', 'android.support.v4.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', 'android.support.v4.app.Fragment') variable
116 line = line.replace('android.app.Activity', 'android.support.v4.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', 'android.support.v4.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', 'android.support.v4.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', 'android.support.v4.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', 'android.support.v4.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', 'android.support.v4.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', 'android.support.v4.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', 'android.support.v4.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', 'android.support.v4.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
350 line = line.replace('PlaybackOverlayFragment', 'PlaybackOverlaySupportFragment') variable
351 line = line.replace('PlaybackControlHelper', 'PlaybackControlSupportHelper') variable
352 line = line.replace('PlaybackOverlayActivity', 'PlaybackOverlaySupportActivity') variable
362 line = line.replace('PlaybackControlHelper', 'PlaybackControlSupportHelper') variable
363 line = line.replace('PlaybackControlGlue', 'PlaybackControlSupportGlue') variable
364 line = line.replace('PlaybackOverlayFragment', 'PlaybackOverlaySupportFragment') variable
373 line = line.replace('PlaybackOverlayActivity', 'PlaybackOverlaySupportActivity') variable
374 line = line.replace('extends Activity', 'extends FragmentActivity') variable
375 line = line.replace('R.layout.playback_controls', 'R.layout.playback_controls_support') variable
376 line = line.replace('android.app.Activity', 'android.support.v4.app.FragmentActivity') variable
384 line = replace_xml_head(line, "playback_controls") variable
385 line = line.replace('com.example.android.leanback.PlaybackOverlayFragment', 'com.example.android.leanback.PlaybackOverlaySupportFragment') variable
394 line = line.replace('android.app.Fragment', 'android.support.v4.app.Fragment') variable
395 line = line.replace('android.app.Activity', 'android.support.v4.app.FragmentActivity') variable
396 line = line.replace('OnboardingActivity', 'OnboardingSupportActivity') variable
397 line = line.replace('OnboardingDemoFragment', 'OnboardingDemoSupportFragment') variable
398 line = line.replace('extends Activity', 'extends FragmentActivity') variable
399 line = line.replace('getFragmentManager()', 'getSupportFragmentManager()') variable
408 line = line.replace('android.app.Fragment', 'android.support.v4.app.Fragment') variable
409 line = line.replace('import android.app.Activity', 'import android.support.v4.app.FragmentActivity') variable
410 line = line.replace('OnboardingDemoFragment', 'OnboardingDemoSupportFragment') variable
411 line = line.replace('OnboardingFragment', 'OnboardingSupportFragment') variable
412 line = line.replace('OnboardingActivity', 'OnboardingSupportActivity') variable
421 line = line.replace('android.app.Fragment', 'android.support.v4.app.Fragment') variable
422 line = line.replace('import android.app.Activity', 'import android.support.v4.app.FragmentActivity') variable
423 line = line.replace('SampleVideoFragment', 'SampleVideoSupportFragment') variable
424 line = line.replace('VideoFragment', 'VideoSupportFragment') variable
433 line = line.replace('android.app.Fragment', 'android.support.v4.app.Fragment') variable
434 line = line.replace('import android.app.Activity', 'import android.support.v4.app.FragmentActivity') variable
435 line = line.replace('VideoActivity', 'VideoSupportActivity') variable
436 line = line.replace('extends Activity', 'extends FragmentActivity') variable
437 line = line.replace('getFragmentManager()', 'getSupportFragmentManager()') variable
438 line = line.replace('SampleVideoFragment', 'SampleVideoSupportFragment') variable
[all...]
/frameworks/support/v17/leanback/
H A Dgeneratev4.py36 for line in file:
37 line = line.replace('IS_FRAMEWORK_FRAGMENT = true', 'IS_FRAMEWORK_FRAGMENT = false'); variable
39 line = line.replace('{}Fragment'.format(w), '{}SupportFragment'.format(w)) variable
40 line = line.replace('android.app.Fragment', 'android.support.v4.app.Fragment') variable
41 line = line.replace('android.app.Activity', 'android.support.v4.app.FragmentActivity') variable
42 line variable
43 line = line.replace('Activity activity', 'FragmentActivity activity') variable
44 line = line.replace('(Activity', '(FragmentActivity') variable
45 line = re.sub(r'FragmentUtil.getContext\\(.*this\\)', 'getContext()', line); variable
58 line = line.replace('IS_FRAMEWORK_FRAGMENT = true', 'IS_FRAMEWORK_FRAGMENT = false'); variable
59 line = line.replace('VideoSupportFragmentGlueHost'.format(w), 'VideoSupportFragmentGlueHost'.format(w)) variable
60 line = line.replace('android.app.Fragment', 'android.support.v4.app.Fragment') variable
61 line = line.replace('android.app.Activity', 'android.support.v4.app.FragmentActivity') variable
62 line = line.replace('activity.getFragmentManager()', 'activity.getSupportFragmentManager()') variable
63 line = line.replace('Activity activity', 'FragmentActivity activity') variable
64 line = line.replace('VideoFragment', 'VideoSupportFragment') variable
65 line = line.replace('PlaybackFragmentGlueHost', 'PlaybackSupportFragmentGlueHost') variable
66 line = line.replace('(Activity', '(FragmentActivity') variable
79 line = line.replace('IS_FRAMEWORK_FRAGMENT = true', 'IS_FRAMEWORK_FRAGMENT = false'); variable
80 line = line.replace('VideoSupportFragmentGlueHost'.format(w), 'VideoSupportFragmentGlueHost'.format(w)) variable
81 line = line.replace('android.app.Fragment', 'android.support.v4.app.Fragment') variable
82 line = line.replace('android.app.Activity', 'android.support.v4.app.FragmentActivity') variable
83 line = line.replace('activity.getFragmentManager()', 'activity.getSupportFragmentManager()') variable
84 line = line.replace('Activity activity', 'FragmentActivity activity') variable
85 line = line.replace('PlaybackFragment', 'PlaybackSupportFragment') variable
86 line = line.replace('PlaybackFragmentGlueHost', 'PlaybackSupportFragmentGlueHost') variable
87 line = line.replace('(Activity', '(FragmentActivity') variable
100 line = re.sub(r'FragmentUtil.getContext\\(mFragment\\)', 'mFragment.getContext()', line); variable
101 line = line.replace('VideoFragment', 'VideoSupportFragment') variable
102 line = line.replace('DetailsFragment', 'DetailsSupportFragment') variable
103 line = line.replace('RowsFragment', 'RowsSupportFragment') variable
104 line = line.replace('VideoSupportFragmentGlueHost'.format(w), 'VideoSupportFragmentGlueHost'.format(w)) variable
105 line = line.replace('android.app.Fragment', 'android.support.v4.app.Fragment') variable
[all...]
/frameworks/support/v17/leanback/tests/
H A Dgeneratev4.py40 for line in file:
42 line = line.replace('{}Fragment'.format(w), '{}SupportFragment'.format(w)) variable
43 line = line.replace('android.app.Fragment', 'android.support.v4.app.Fragment') variable
44 line = line.replace('android.app.Activity', 'android.support.v4.app.FragmentActivity') variable
45 line = line.replace('Activity getActivity()', 'FragmentActivity getActivity()') variable
46 outfile.write(line)
65 line = line.replace('{}Fragment'.format(w), '{}SupportFragment'.format(w)) variable
67 line = line.replace('{}FragmentTestBase'.format(w), '{}SupportFragmentTestBase'.format(w)) variable
68 line = line.replace('{}FragmentTestActivity'.format(w), '{}SupportFragmentTestActivity'.format(w)) variable
69 line = line.replace('{}TestFragment'.format(w), '{}TestSupportFragment'.format(w)) variable
70 line = line.replace('android.app.Fragment', 'android.support.v4.app.Fragment') variable
71 line = line.replace('android.app.Activity', 'android.support.v4.app.FragmentActivity') variable
91 line = line.replace('{}Fragment'.format(w), '{}SupportFragment'.format(w)) variable
93 line = line.replace('SingleFragmentTestBase', 'SingleSupportFragmentTestBase') variable
94 line = line.replace('SingleFragmentTestActivity', 'SingleSupportFragmentTestActivity') variable
95 line = line.replace('{}FragmentTestBase'.format(w), '{}SupportFragmentTestBase'.format(w)) variable
96 line = line.replace('{}FragmentTest'.format(w), '{}SupportFragmentTest'.format(w)) variable
97 line = line.replace('{}FragmentTestActivity'.format(w), '{}SupportFragmentTestActivity'.format(w)) variable
98 line = line.replace('{}TestFragment'.format(w), '{}TestSupportFragment'.format(w)) variable
99 line = line.replace('android.app.Fragment', 'android.support.v4.app.Fragment') variable
100 line = line.replace('android.app.Activity', 'android.support.v4.app.FragmentActivity') variable
101 line = line.replace('extends Activity', 'extends FragmentActivity') variable
102 line = line.replace('Activity.this.getFragmentManager', 'Activity.this.getSupportFragmentManager') variable
103 line = line.replace('tivity.getFragmentManager', 'tivity.getSupportFragmentManager') variable
119 line = line.replace('{}TestFragment'.format(w), '{}TestSupportFragment'.format(w)) variable
120 line = line.replace('{}FragmentTestActivity'.format(w), '{}SupportFragmentTestActivity'.format(w)) variable
121 line = line.replace('android.app.Fragment', 'android.support.v4.app.Fragment') variable
122 line = line.replace('android.app.Activity', 'android.support.v4.app.FragmentActivity') variable
123 line = line.replace('extends Activity', 'extends FragmentActivity') variable
124 line = line.replace('getFragmentManager', 'getSupportFragmentManager') 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
177 line = line.replace('PlaybackControlGlue', 'PlaybackControlSupportGlue') variable
178 line = line.replace('PlaybackOverlayFragment', 'PlaybackOverlaySupportFragment') variable
179 line = line.replace('PlaybackGlueHostOld', 'PlaybackSupportGlueHostOld') 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+)/) {
H A Dglapigen26 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*\(([^\)]+)\);/) {
37 #printf("%s", $line);
/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/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.h35 Maybe<size_t> line; member in struct:aapt::Source
42 inline Source(const android::StringPiece& path, size_t line) argument
43 : path(path.to_string()), line(line) {}
45 inline Source WithLine(size_t line) const { return Source(path, line); }
54 if (source.line) {
55 out << ":" << source.line.value();
61 return lhs.path == rhs.path && lhs.line == rhs.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) {
/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/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/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/base/tools/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:]
/frameworks/rs/tests/lldb/tests/harness/
H A DRS_funs.py23 function line.
29 FUNC_LIST = filter(lambda line: line.strip()
30 and not line.strip().startswith('-'), '''
1374 def build_expr(line):
1381 line: A string representing a function declaration.
1386 tokens = re.findall(r"[^(),;]+", line)
/frameworks/support/frameworks/support/samples/SupportLeanbackShowcase/
H A Dbuild-release.py13 for line in fileinput.input(inputFile, inplace = 1):
14 if re.match(pattern, line, re.I|re.M):
15 line = re.sub(pattern, newVal, line)
17 print line,
/frameworks/support/samples/SupportLeanbackShowcase/
H A Dbuild-release.py13 for line in fileinput.input(inputFile, inplace = 1):
14 if re.match(pattern, line, re.I|re.M):
15 line = re.sub(pattern, newVal, line)
17 print line,
/frameworks/base/tools/aapt/
H A DSourcePos.cpp20 int line; member in struct:ErrorPos
26 ErrorPos(const String8& file, int line, const String8& error, Level level);
35 :line(-1), level(NOTE)
41 line(that.line),
49 line(l),
59 this->line = rhs.line;
82 if (this->line >= 0) {
83 fprintf(to, "%s:%d: %s%s\n", this->file.string(), this->line, typ
[all...]
/frameworks/base/tools/aapt2/java/
H A DAnnotationProcessor.cpp55 // We need to process line by line to clean-up whitespace and append prefixes.
56 for (StringPiece line : util::Tokenize(comment, '\n')) {
57 line = util::TrimWhitespace(line);
58 if (!line.empty()) {
59 std::string lineCopy = line.to_string();
71 for (StringPiece line : util::Tokenize(result, '\n')) {
72 *out << prefix << line << "\n"; local

Completed in 730 milliseconds

1234567891011