/development/tools/checkstyle/gitlint/ |
D | git.py | 52 def modified_files(root, tracked_only=False, commit=None): argument 67 if commit: 68 return _modified_files_with_commit(root, commit) 89 def _modified_files_with_commit(root, commit): argument 93 commit]).decode('utf-8').split(os.linesep) 106 def modified_lines(filename, extra_data, commit=None): argument 123 if commit is None: 124 commit = '0' * 40 125 commit = commit.encode('utf-8') 129 ['git', 'blame', commit, '--porcelain', '--', filename]).split( [all …]
|
/development/tools/checkstyle/ |
D | checkstyle.py | 61 def RunCheckstyleOnACommit(commit, config_xml=CHECKSTYLE_STYLE): argument 75 if not commit: 77 commit = git.last_commit() 78 print 'Running Checkstyle on %s commit' % commit 79 commit_modified_files = _GetModifiedFiles(commit) 85 commit_modified_files.keys(), commit) 94 commit, 218 def _GetModifiedFiles(commit, out=sys.stdout): argument 225 modified_files = git.modified_files(root, True, commit) 231 def _GetTempFilesForCommit(file_names, commit): argument [all …]
|
D | tests.py | 45 def mock_modified_files_good(root, tracked_only=False, commit=None): argument 46 if commit: 51 def mock_modified_files_uncommitted(root, tracked_only=False, commit=None): argument 52 if tracked_only and not commit: 54 if commit: 59 def mock_modified_files_untracked(root, tracked_only=False, commit=None): argument 62 if commit: 67 def mock_modified_files_non_java(root, tracked_only=False, commit=None): argument 68 if commit:
|
D | README | 7 2. To check style of the lines modified in the latest commit: 23 the latest commit.
|
/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/ |
D | MusicPlayerActivity.java | 35 .commit(); in onCreate() 47 .commit(); in onMediaItemSelected() 52 .commit(); in onMediaItemSelected()
|
/development/samples/Support4Demos/src/com/example/android/supportv4/media/ |
D | MediaBrowserSupport.java | 38 .commit(); in onCreate() 50 .commit(); in onMediaItemSelected() 55 .commit(); in onMediaItemSelected()
|
/development/samples/browseable/AppRestrictionEnforcer/src/com.example.android.apprestrictionenforcer/ |
D | MainActivity.java | 66 .commit(); in showSetupProfile() 72 .commit(); in showStatusProfile() 78 .commit(); in showMainFragment()
|
/development/samples/SupportLeanbackDemos/src/com/example/android/leanback/ |
D | BrowseErrorActivity.java | 56 getFragmentManager().beginTransaction().add(R.id.main_frame, mErrorFragment).commit(); in testError() 59 getFragmentManager().beginTransaction().add(R.id.main_frame, mSpinnerFragment).commit(); in testError() 68 getFragmentManager().beginTransaction().remove(mSpinnerFragment).commit(); in testError()
|
D | BrowseErrorSupportActivity.java | 58 …etSupportFragmentManager().beginTransaction().add(R.id.main_frame, mErrorSupportFragment).commit(); in testError() 61 …SupportFragmentManager().beginTransaction().add(R.id.main_frame, mSpinnerSupportFragment).commit(); in testError() 70 … getSupportFragmentManager().beginTransaction().remove(mSpinnerSupportFragment).commit(); in testError()
|
/development/samples/browseable/BasicManagedProfile/src/com.example.android.basicmanagedprofile/ |
D | MainActivity.java | 46 .commit(); in showSetupProfile() 52 .commit(); in showMainFragment()
|
/development/samples/training/TabCompat/src/com/example/android/tabcompat/lib/ |
D | CompatTabHoneycomb.java | 87 ft.commit(); in onTabReselected() 95 ft.commit(); in onTabSelected() 103 ft.commit(); in onTabUnselected()
|
/development/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/app/media/ |
D | VideoExampleActivity.java | 36 ft1.commit(); in onCreate() 40 ft2.commit(); in onCreate()
|
/development/samples/training/basic/FragmentBasics/src/com/example/fragments/ |
D | MainActivity.java | 51 .add(R.id.fragment_container, firstFragment).commit(); in onCreate() 84 transaction.commit(); in onArticleSelected()
|
/development/samples/browseable/ActivityInstrumentation/src/com.example.android.activityinstrumentation/ |
D | MainActivity.java | 101 mPrefs.edit().putInt(PREF_SPINNER_POS, position).commit(); in onCreate() 106 mPrefs.edit().remove(PREF_SPINNER_POS).commit(); in onCreate()
|
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
D | FragmentStackFragment.java | 41 ft.add(R.id.simple_fragment, newFragment).commit(); in onCreate() 87 ft.commit(); in addFragmentToStack()
|
D | FragmentMenuFragment.java | 65 ft.commit(); in onCreateView() 93 ft.commit(); in updateFragmentVisibility()
|
/development/samples/Support7Demos/src/com/example/android/supportv7/app/ |
D | ActionBarFragmentMenu.java | 73 ft.commit(); in onCreate() 106 ft.commit(); in updateFragmentVisibility() 118 ft.commit(); in updateFragmentVisibility() 176 ft.commit(); in onCreate()
|
/development/samples/Support4Demos/src/com/example/android/supportv4/app/ |
D | FragmentMenuFragmentSupport.java | 66 ft.commit(); in onCreateView() 94 ft.commit(); in updateFragmentVisibility()
|
/development/samples/browseable/BatchStepSensor/src/com.example.android.batchstepsensor/ |
D | MainActivity.java | 55 transaction.commit(); in onCreate() 68 fm.beginTransaction().add(mRetentionFragment, RETENTION_TAG).commit(); in onCreate()
|
/development/samples/browseable/AppRestrictions/src/com.example.android.apprestrictions/ |
D | CustomRestrictionsActivity.java | 41 new CustomRestrictionsFragment()).commit(); in onCreate()
|
/development/samples/browseable/MessagingService/src/com.example.android.messagingservice/ |
D | MainActivity.java | 31 .commit(); in onCreate()
|
/development/samples/browseable/Camera2Basic/src/com.example.android.camera2basic/ |
D | CameraActivity.java | 31 .commit(); in onCreate()
|
/development/samples/browseable/Camera2Raw/src/com.example.android.camera2raw/ |
D | CameraActivity.java | 34 .commit(); in onCreate()
|
/development/samples/browseable/CardView/src/com.example.android.cardview/ |
D | CardViewActivity.java | 34 .commit(); in onCreate()
|
/development/samples/browseable/Camera2Video/src/com.example.android.camera2video/ |
D | CameraActivity.java | 31 .commit(); in onCreate()
|