// Path: src/org/openintents/openpgp/keyserver/KeyServer.java
// static public class KeyInfo implements Serializable, Parcelable {
//     private static final long serialVersionUID = -7797972113284992662L;
//     public ArrayList<String> userIds;
//     public boolean isRevoked;
//     public Date creationDate;
//     public String fingerprint = null;
//     public long keyId = 0;
//     public int size;
//     public String algorithm;
// 
//     public static long keyIdFromFingerprint(String fingerprint) {
//         return new BigInteger(fingerprint, 16).longValue();
//     }
// 
//     public static String hexFromKeyId(long keyId) {
//         return String.format("%016x", keyId).toLowerCase(Locale.ENGLISH);
//     }
// 
//     public KeyInfo() {
//         userIds = new ArrayList<String>();
//     }
// 
//     public KeyInfo(Parcel in) {
//         this();
// 
//         in.readStringList(this.userIds);
//         this.isRevoked = in.readByte() != 0;
//         this.creationDate = (Date) in.readSerializable();
//         this.fingerprint = in.readString();
//         this.keyId = in.readLong();
//         this.size = in.readInt();
//         this.algorithm = in.readString();
//     }
// 
//     @Override
//     public int describeContents() {
//         return 0;
//     }
// 
//     @Override
//     public void writeToParcel(Parcel dest, int flags) {
//         dest.writeStringList(userIds);
//         dest.writeByte((byte) (isRevoked ? 1 : 0));
//         dest.writeSerializable(creationDate);
//         dest.writeString(fingerprint);
//         dest.writeLong(keyId);
//         dest.writeInt(size);
//         dest.writeString(algorithm);
//     }
// 
//     public void setFingerprint(String fingerprint) {
//         this.fingerprint = fingerprint.toLowerCase(Locale.ENGLISH);
//         this.keyId = keyIdFromFingerprint(fingerprint);
//     }
// }


import java.util.List;
import org.openintents.openpgp.keyserver.KeyServer.KeyInfo;
import android.content.Context;
import android.text.format.DateFormat;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ListView;
import android.widget.TextView;
/*
 * Copyright (C) 2010 Thialfihar <thi@thialfihar.org>
 *
 * 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 info.guardianproject.gpg;




public class KeyListKeyserverAdapter extends BaseAdapter {
    public static final String TAG = "KeyListKeyserverAdapter";

    protected LayoutInflater mInflater;
    protected ListView mParent;
    protected String mSearchString;

// Path: src/org/openintents/openpgp/keyserver/KeyServer.java
// static public class KeyInfo implements Serializable, Parcelable {
//     private static final long serialVersionUID = -7797972113284992662L;
//     public ArrayList<String> userIds;
//     public boolean isRevoked;
//     public Date creationDate;
//     public String fingerprint = null;
//     public long keyId = 0;
//     public int size;
//     public String algorithm;
// 
//     public static long keyIdFromFingerprint(String fingerprint) {
//         return new BigInteger(fingerprint, 16).longValue();
//     }
// 
//     public static String hexFromKeyId(long keyId) {
//         return String.format("%016x", keyId).toLowerCase(Locale.ENGLISH);
//     }
// 
//     public KeyInfo() {
//         userIds = new ArrayList<String>();
//     }
// 
//     public KeyInfo(Parcel in) {
//         this();
// 
//         in.readStringList(this.userIds);
//         this.isRevoked = in.readByte() != 0;
//         this.creationDate = (Date) in.readSerializable();
//         this.fingerprint = in.readString();
//         this.keyId = in.readLong();
//         this.size = in.readInt();
//         this.algorithm = in.readString();
//     }
// 
//     @Override
//     public int describeContents() {
//         return 0;
//     }
// 
//     @Override
//     public void writeToParcel(Parcel dest, int flags) {
//         dest.writeStringList(userIds);
//         dest.writeByte((byte) (isRevoked ? 1 : 0));
//         dest.writeSerializable(creationDate);
//         dest.writeString(fingerprint);
//         dest.writeLong(keyId);
//         dest.writeInt(size);
//         dest.writeString(algorithm);
//     }
// 
//     public void setFingerprint(String fingerprint) {
//         this.fingerprint = fingerprint.toLowerCase(Locale.ENGLISH);
//         this.keyId = keyIdFromFingerprint(fingerprint);
//     }
// }


// Path: src/info/guardianproject/gpg/KeyListKeyserverAdapter.java
import java.util.List;
import org.openintents.openpgp.keyserver.KeyServer.KeyInfo;
import android.content.Context;
import android.text.format.DateFormat;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ListView;
import android.widget.TextView;

/*
 * Copyright (C) 2010 Thialfihar <thi@thialfihar.org>
 *
 * 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 info.guardianproject.gpg;




public class KeyListKeyserverAdapter extends BaseAdapter {
    public static final String TAG = "KeyListKeyserverAdapter";

    protected LayoutInflater mInflater;
    protected ListView mParent;
    protected String mSearchString;

    private KeyInfo[] mKeyArray;