// Path: AndroidStub/src/main/java/android/content/res/Resources.java
// public final class Theme {
//     
//     public void applyStyle(int resId, boolean force) {
//         throw new RuntimeException("Stub!");
//     }
//     
//     public TypedArray obtainStyledAttributes(int[] attrs) {
//         throw new RuntimeException("Stub!");
//     }
//     
//     public void setTo(Theme other) {
//         throw new RuntimeException("Stub!");
//     }
//         
// }


import android.content.pm.ActivityInfo;
import android.content.res.TypedArray;
import android.util.Log;
import android.content.res.Resources.Theme;
import java.util.HashMap;
/*
 * Copyright (C) 2017 Beijing Didi Infinity Technology and Development Co.,Ltd. All rights reserved.
 *
 * 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.didi.virtualapk.internal;



/**
 * Created by renyugang on 16/8/15.
 */
class StubActivityInfo {
    public static final int MAX_COUNT_STANDARD = 1;
    public static final int MAX_COUNT_SINGLETOP = 8;
    public static final int MAX_COUNT_SINGLETASK = 8;
    public static final int MAX_COUNT_SINGLEINSTANCE = 8;

    public static final String corePackage = "com.didi.virtualapk.core";
    public static final String STUB_ACTIVITY_STANDARD = "%s.A$%d";
    public static final String STUB_ACTIVITY_SINGLETOP = "%s.B$%d";
    public static final String STUB_ACTIVITY_SINGLETASK = "%s.C$%d";
    public static final String STUB_ACTIVITY_SINGLEINSTANCE = "%s.D$%d";

    public final int usedStandardStubActivity = 1;
    public int usedSingleTopStubActivity = 0;
    public int usedSingleTaskStubActivity = 0;
    public int usedSingleInstanceStubActivity = 0;

    private HashMap<String, String> mCachedStubActivity = new HashMap<>();

// Path: AndroidStub/src/main/java/android/content/res/Resources.java
// public final class Theme {
//     
//     public void applyStyle(int resId, boolean force) {
//         throw new RuntimeException("Stub!");
//     }
//     
//     public TypedArray obtainStyledAttributes(int[] attrs) {
//         throw new RuntimeException("Stub!");
//     }
//     
//     public void setTo(Theme other) {
//         throw new RuntimeException("Stub!");
//     }
//         
// }


// Path: CoreLibrary/src/main/java/com/didi/virtualapk/internal/StubActivityInfo.java
import android.content.pm.ActivityInfo;
import android.content.res.TypedArray;
import android.util.Log;
import android.content.res.Resources.Theme;
import java.util.HashMap;

/*
 * Copyright (C) 2017 Beijing Didi Infinity Technology and Development Co.,Ltd. All rights reserved.
 *
 * 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.didi.virtualapk.internal;



/**
 * Created by renyugang on 16/8/15.
 */
class StubActivityInfo {
    public static final int MAX_COUNT_STANDARD = 1;
    public static final int MAX_COUNT_SINGLETOP = 8;
    public static final int MAX_COUNT_SINGLETASK = 8;
    public static final int MAX_COUNT_SINGLEINSTANCE = 8;

    public static final String corePackage = "com.didi.virtualapk.core";
    public static final String STUB_ACTIVITY_STANDARD = "%s.A$%d";
    public static final String STUB_ACTIVITY_SINGLETOP = "%s.B$%d";
    public static final String STUB_ACTIVITY_SINGLETASK = "%s.C$%d";
    public static final String STUB_ACTIVITY_SINGLEINSTANCE = "%s.D$%d";

    public final int usedStandardStubActivity = 1;
    public int usedSingleTopStubActivity = 0;
    public int usedSingleTaskStubActivity = 0;
    public int usedSingleInstanceStubActivity = 0;

    private HashMap<String, String> mCachedStubActivity = new HashMap<>();

    public String getStubActivity(String className, int launchMode, Theme theme) {