// Path: fidoclient/src/main/java/com/yalin/fidoclient/asm/api/ASMIntent.java
// public class ASMIntent {
//     public static final String MESSAGE_KEY = "message";
// 
//     public static Intent getASMIntent(){
//         Intent intent = new Intent(Constants.ACTION_FIDO_OPERATION);
//         intent.setType(Constants.FIDO_ASM_INTENT_MIME);
// 
//         return intent;
//     }
// 
//     public static Intent getASMOperationIntent(String asmRequest) {
//         Intent intent = new Intent(Constants.ACTION_FIDO_OPERATION);
//         intent.setType(Constants.FIDO_ASM_INTENT_MIME);
// 
//         Bundle bundle = new Bundle();
//         bundle.putString(MESSAGE_KEY, asmRequest);
//         intent.putExtras(bundle);
//         return intent;
//     }
// 
//     public static Intent getASMOperationResultIntent(String asmResponse) {
//         Intent intent = new Intent();
// 
//         Bundle bundle = new Bundle();
//         bundle.putString(MESSAGE_KEY, asmResponse);
//         intent.putExtras(bundle);
//         return intent;
//     }
// }
// 
// Path: fidoclient/src/main/java/com/yalin/fidoclient/msg/AsmInfo.java
// public class AsmInfo {
//     public String appName;
//     public String pack;
//     public Drawable icon;
// 
//     public AsmInfo appName(String appName) {
//         this.appName = appName;
//         return this;
//     }
// 
//     public AsmInfo pack(String pack) {
//         this.pack = pack;
//         return this;
//     }
// 
//     public AsmInfo icon(Drawable icon) {
//         this.icon = icon;
//         return this;
//     }
// }


import com.yalin.fidoclient.R;
import com.yalin.fidoclient.asm.api.ASMIntent;
import com.yalin.fidoclient.msg.AsmInfo;
import java.util.List;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
/*
 * Copyright 2016 YaLin Jin
 *
 * 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 com.yalin.fidoclient.ui.fragment;




/**
 * Created by YaLin on 2016/2/26.
 */
public class AsmListFragment extends Fragment implements AsmListAdapter.ASMClickListener {
    public interface AsmItemPickListener {
// Path: fidoclient/src/main/java/com/yalin/fidoclient/asm/api/ASMIntent.java
// public class ASMIntent {
//     public static final String MESSAGE_KEY = "message";
// 
//     public static Intent getASMIntent(){
//         Intent intent = new Intent(Constants.ACTION_FIDO_OPERATION);
//         intent.setType(Constants.FIDO_ASM_INTENT_MIME);
// 
//         return intent;
//     }
// 
//     public static Intent getASMOperationIntent(String asmRequest) {
//         Intent intent = new Intent(Constants.ACTION_FIDO_OPERATION);
//         intent.setType(Constants.FIDO_ASM_INTENT_MIME);
// 
//         Bundle bundle = new Bundle();
//         bundle.putString(MESSAGE_KEY, asmRequest);
//         intent.putExtras(bundle);
//         return intent;
//     }
// 
//     public static Intent getASMOperationResultIntent(String asmResponse) {
//         Intent intent = new Intent();
// 
//         Bundle bundle = new Bundle();
//         bundle.putString(MESSAGE_KEY, asmResponse);
//         intent.putExtras(bundle);
//         return intent;
//     }
// }
// 
// Path: fidoclient/src/main/java/com/yalin/fidoclient/msg/AsmInfo.java
// public class AsmInfo {
//     public String appName;
//     public String pack;
//     public Drawable icon;
// 
//     public AsmInfo appName(String appName) {
//         this.appName = appName;
//         return this;
//     }
// 
//     public AsmInfo pack(String pack) {
//         this.pack = pack;
//         return this;
//     }
// 
//     public AsmInfo icon(Drawable icon) {
//         this.icon = icon;
//         return this;
//     }
// }


// Path: fidoclient/src/main/java/com/yalin/fidoclient/ui/fragment/AsmListFragment.java
import com.yalin.fidoclient.R;
import com.yalin.fidoclient.asm.api.ASMIntent;
import com.yalin.fidoclient.msg.AsmInfo;
import java.util.List;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

/*
 * Copyright 2016 YaLin Jin
 *
 * 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 com.yalin.fidoclient.ui.fragment;




/**
 * Created by YaLin on 2016/2/26.
 */
public class AsmListFragment extends Fragment implements AsmListAdapter.ASMClickListener {
    public interface AsmItemPickListener {
        void onAsmItemPick(AsmInfo info);