summaryrefslogtreecommitdiffstats
path: root/core/java/android/content/ActiveSyncInfo.java
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2009-05-06 00:28:37 -0700
committerDianne Hackborn <hackbod@google.com>2009-05-06 00:28:37 -0700
commit7a1355950172b7a549820e9a2cd4a9b2099ec32f (patch)
treedc8940cdf38bae09e3427e44ebf1328861abc20b /core/java/android/content/ActiveSyncInfo.java
parent39a8bb26326ceeaad5b46d29bf485329c67ced2f (diff)
parent231cc608d06ffc31c24bf8aa8c8275bdd2636581 (diff)
downloadframeworks_base-7a1355950172b7a549820e9a2cd4a9b2099ec32f.zip
frameworks_base-7a1355950172b7a549820e9a2cd4a9b2099ec32f.tar.gz
frameworks_base-7a1355950172b7a549820e9a2cd4a9b2099ec32f.tar.bz2
merged 231cc608d06ffc31c24bf8aa8c8275bdd2636581
Diffstat (limited to 'core/java/android/content/ActiveSyncInfo.java')
-rw-r--r--core/java/android/content/ActiveSyncInfo.java65
1 files changed, 65 insertions, 0 deletions
diff --git a/core/java/android/content/ActiveSyncInfo.java b/core/java/android/content/ActiveSyncInfo.java
new file mode 100644
index 0000000..209dffa
--- /dev/null
+++ b/core/java/android/content/ActiveSyncInfo.java
@@ -0,0 +1,65 @@
+/*
+ * Copyright (C) 2009 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package android.content;
+
+import android.accounts.Account;
+import android.os.Parcel;
+import android.os.Parcelable.Creator;
+
+/** @hide */
+public class ActiveSyncInfo {
+ public final int authorityId;
+ public final Account account;
+ public final String authority;
+ public final long startTime;
+
+ ActiveSyncInfo(int authorityId, Account account, String authority,
+ long startTime) {
+ this.authorityId = authorityId;
+ this.account = account;
+ this.authority = authority;
+ this.startTime = startTime;
+ }
+
+ public int describeContents() {
+ return 0;
+ }
+
+ public void writeToParcel(Parcel parcel, int flags) {
+ parcel.writeInt(authorityId);
+ account.writeToParcel(parcel, 0);
+ parcel.writeString(authority);
+ parcel.writeLong(startTime);
+ }
+
+ ActiveSyncInfo(Parcel parcel) {
+ authorityId = parcel.readInt();
+ account = new Account(parcel);
+ authority = parcel.readString();
+ startTime = parcel.readLong();
+ }
+
+ public static final Creator<ActiveSyncInfo> CREATOR = new Creator<ActiveSyncInfo>() {
+ public ActiveSyncInfo createFromParcel(Parcel in) {
+ return new ActiveSyncInfo(in);
+ }
+
+ public ActiveSyncInfo[] newArray(int size) {
+ return new ActiveSyncInfo[size];
+ }
+ };
+} \ No newline at end of file