浏览代码

place license header at the top of the file

AndyScherzinger 6 年之前
父节点
当前提交
f97b7e4ea1

+ 23 - 22
src/main/java/com/nextcloud/android/sso/InputStreamBinder.java

@@ -1,3 +1,24 @@
+/*
+ * Nextcloud SingleSignOn
+ *
+ * @author David Luhmer
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ *
+ * More information here: https://github.com/abeluck/android-streams-ipc
+ */
+
 package com.nextcloud.android.sso;
 
 import android.accounts.Account;
@@ -40,30 +61,10 @@ import java.util.Arrays;
 import java.util.List;
 import java.util.Map;
 
+
 /**
- *  Nextcloud SingleSignOn
- *
- *  @author David Luhmer
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
- *
- *
- * More information here: https://github.com/abeluck/android-streams-ipc
- *
+ * Stream binder to pass usable InputStreams across the process boundary in Android.
  */
-
-
 public class InputStreamBinder extends IInputStreamService.Stub {
 
     private final static String TAG = "InputStreamBinder";

+ 3 - 3
src/main/java/com/nextcloud/android/sso/aidl/IThreadListener.java

@@ -1,6 +1,4 @@
-package com.nextcloud.android.sso.aidl;
-
-/**
+/*
  *  Nextcloud SingleSignOn
  *
  *  @author David Luhmer
@@ -19,6 +17,8 @@ package com.nextcloud.android.sso.aidl;
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+package com.nextcloud.android.sso.aidl;
+
 public interface IThreadListener {
 
     void onThreadFinished(final Thread thread);

+ 8 - 8
src/main/java/com/nextcloud/android/sso/aidl/NextcloudRequest.java

@@ -1,11 +1,4 @@
-package com.nextcloud.android.sso.aidl;
-
-import java.io.Serializable;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
-/**
+/*
  *  Nextcloud SingleSignOn
  *
  *  @author David Luhmer
@@ -24,6 +17,13 @@ import java.util.Map;
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+package com.nextcloud.android.sso.aidl;
+
+import java.io.Serializable;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
 public class NextcloudRequest implements Serializable {
 
     private static final long serialVersionUID = 215521212534236L; //assign a long value

+ 12 - 12
src/main/java/com/nextcloud/android/sso/aidl/ParcelFileDescriptorUtil.java

@@ -1,15 +1,4 @@
-package com.nextcloud.android.sso.aidl;
-
-import android.os.ParcelFileDescriptor;
-import android.util.Log;
-
-import com.owncloud.android.lib.common.utils.Log_OC;
-
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.OutputStream;
-
-/**
+/*
  *  Nextcloud SingleSignOn
  *
  *  @author David Luhmer
@@ -28,6 +17,17 @@ import java.io.OutputStream;
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+package com.nextcloud.android.sso.aidl;
+
+import android.os.ParcelFileDescriptor;
+import android.util.Log;
+
+import com.owncloud.android.lib.common.utils.Log_OC;
+
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.OutputStream;
+
 public final class ParcelFileDescriptorUtil {
 
     private ParcelFileDescriptorUtil() { }

+ 9 - 9
src/main/java/com/owncloud/android/services/AccountManagerService.java

@@ -1,12 +1,4 @@
-package com.owncloud.android.services;
-
-import android.app.Service;
-import android.content.Intent;
-import android.os.IBinder;
-
-import com.nextcloud.android.sso.InputStreamBinder;
-
-/**
+/*
  *  Nextcloud SingleSignOn
  *
  *  @author David Luhmer
@@ -25,6 +17,14 @@ import com.nextcloud.android.sso.InputStreamBinder;
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+package com.owncloud.android.services;
+
+import android.app.Service;
+import android.content.Intent;
+import android.os.IBinder;
+
+import com.nextcloud.android.sso.InputStreamBinder;
+
 public class AccountManagerService extends Service {
 
     private InputStreamBinder mBinder;