src/api-impl: fix up code style, mainly for code imported from AOSP

used the following (plus manual edits):
`clang-format --style="{BasedOnStyle: LLVM, IndentWidth: 8, UseTab: Always, AllowShortIfStatementsOnASingleLine: false, IndentCaseLabels: true, ColumnLimit: 0}`
This commit is contained in:
Mis012
2023-06-22 11:45:46 +02:00
parent 824b821f5a
commit 0a9591c474
208 changed files with 154568 additions and 150150 deletions

View File

@@ -6,37 +6,37 @@ import android.view.View;
public class AlertDialog extends Dialog {
public static class Builder {
public Builder(Context context){
public Builder(Context context) {
System.out.println("making an AlertDialog$Builder as we speak, my word!");
}
public AlertDialog.Builder setPositiveButton (int textId, DialogInterface.OnClickListener listener) {
public AlertDialog.Builder setPositiveButton(int textId, DialogInterface.OnClickListener listener) {
return this;
}
public AlertDialog.Builder setPositiveButton (CharSequence text, DialogInterface.OnClickListener listener) {
public AlertDialog.Builder setPositiveButton(CharSequence text, DialogInterface.OnClickListener listener) {
return this;
}
public AlertDialog.Builder setCancelable (boolean cancelable) {
public AlertDialog.Builder setCancelable(boolean cancelable) {
return this;
}
public AlertDialog.Builder setIcon (int iconId) {
public AlertDialog.Builder setIcon(int iconId) {
return this;
}
public AlertDialog.Builder setTitle (CharSequence title) {
System.out.println("AlertDialog.Builder setTitle called with: '"+title+"'");
public AlertDialog.Builder setTitle(CharSequence title) {
System.out.println("AlertDialog.Builder setTitle called with: '" + title + "'");
return this;
}
public AlertDialog.Builder setMessage (CharSequence message) {
System.out.println("AlertDialog.Builder setMessage called with: '"+message+"'");
public AlertDialog.Builder setMessage(CharSequence message) {
System.out.println("AlertDialog.Builder setMessage called with: '" + message + "'");
return this;
}
public AlertDialog.Builder setView (View view) {
public AlertDialog.Builder setView(View view) {
return this;
}