Lines Matching refs:line

36     for line in file:
37 line = line.replace('IS_FRAMEWORK_FRAGMENT = true', 'IS_FRAMEWORK_FRAGMENT = false');
39 line = line.replace('{}Fragment'.format(w), '{}SupportFragment'.format(w))
40 line = line.replace('android.app.Fragment', 'android.support.v4.app.Fragment')
41 line = line.replace('android.app.Activity', 'android.support.v4.app.FragmentActivity')
42 line = line.replace('activity.getFragmentManager()', 'activity.getSupportFragmentManager()')
43 line = line.replace('Activity activity', 'FragmentActivity activity')
44 line = line.replace('(Activity', '(FragmentActivity')
45 line = re.sub(r'FragmentUtil.getContext\(.*this\)', 'getContext()', line);
46 outfile.write(line)
57 for line in file:
58 line = line.replace('IS_FRAMEWORK_FRAGMENT = true', 'IS_FRAMEWORK_FRAGMENT = false');
59 line = line.replace('VideoSupportFragmentGlueHost'.format(w), 'VideoSupportFragmentGlueHost'.format(w))
60 line = line.replace('android.app.Fragment', 'android.support.v4.app.Fragment')
61 line = line.replace('android.app.Activity', 'android.support.v4.app.FragmentActivity')
62 line = line.replace('activity.getFragmentManager()', 'activity.getSupportFragmentManager()')
63 line = line.replace('Activity activity', 'FragmentActivity activity')
64 line = line.replace('VideoFragment', 'VideoSupportFragment')
65 line = line.replace('PlaybackFragmentGlueHost', 'PlaybackSupportFragmentGlueHost')
66 line = line.replace('(Activity', '(FragmentActivity')
67 outfile.write(line)
78 for line in file:
79 line = line.replace('IS_FRAMEWORK_FRAGMENT = true', 'IS_FRAMEWORK_FRAGMENT = false');
80 line = line.replace('VideoSupportFragmentGlueHost'.format(w), 'VideoSupportFragmentGlueHost'.format(w))
81 line = line.replace('android.app.Fragment', 'android.support.v4.app.Fragment')
82 line = line.replace('android.app.Activity', 'android.support.v4.app.FragmentActivity')
83 line = line.replace('activity.getFragmentManager()', 'activity.getSupportFragmentManager()')
84 line = line.replace('Activity activity', 'FragmentActivity activity')
85 line = line.replace('PlaybackFragment', 'PlaybackSupportFragment')
86 line = line.replace('PlaybackFragmentGlueHost', 'PlaybackSupportFragmentGlueHost')
87 line = line.replace('(Activity', '(FragmentActivity')
88 outfile.write(line)
99 for line in file:
100 line = re.sub(r'FragmentUtil.getContext\(mFragment\)', 'mFragment.getContext()', line);
101 line = line.replace('VideoFragment', 'VideoSupportFragment')
102 line = line.replace('DetailsFragment', 'DetailsSupportFragment')
103 line = line.replace('RowsFragment', 'RowsSupportFragment')
104 line = line.replace('VideoSupportFragmentGlueHost'.format(w), 'VideoSupportFragmentGlueHost'.format(w))
105 line = line.replace('android.app.Fragment', 'android.support.v4.app.Fragment')
106 outfile.write(line)