正在查看: Petal Maps v4.7.0.310001 应用的 MapStatusContentProvider.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Petal Maps v4.7.0.310001 应用的 MapStatusContentProvider.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.huawei.maps.voice.provider;
import android.content.ContentProvider;
import android.content.ContentValues;
import android.database.Cursor;
import android.net.Uri;
import android.os.Bundle;
import android.text.TextUtils;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.huawei.maps.voice.model.SupportIntentBean;
import com.huawei.phoneservice.faq.base.constants.FaqConstants;
import com.huawei.quickcard.base.Attributes;
import com.huawei.secure.android.common.intent.SafeBundle;
import java.util.Arrays;
import java.util.List;
public class MapStatusContentProvider extends ContentProvider {
public static final List<String> a = Arrays.asList(Attributes.AnimationCommons.DEFAULT_TIME, FaqConstants.MODULE_KNOWLEDGE, FaqConstants.MODULE_CONTACT);
public static final List<String> b = Arrays.asList("NAVIGATE", "SEARCH_LOCATION", "SEARCH_ROUTE", "HIT_LOCATION_ENTITY");
public static final List<String> c = Arrays.asList("EXIT_NAVIGATION");
public interface QueryActions {
public static final String QUERY_NAVIGATION_STATUS = "query_navigation_status";
public static final String QUERY_SUPPORT_INTENT_LIST = "query_support_intent_list";
public static final String REMIND_INFO = "getRemindInfo";
}
public interface ResponseKey {
public static final String INTENT_WHITE_LIST = "intentWhitelist";
public static final String IS_NAVIGATION = "isNavigation";
}
public final SafeBundle a() {
SafeBundle safeBundle = new SafeBundle();
safeBundle.putBoolean(ResponseKey.IS_NAVIGATION, c06.b());
return safeBundle;
}
public final SafeBundle b() {
SafeBundle safeBundle = new SafeBundle();
if (!nla.o()) {
return safeBundle;
}
SupportIntentBean supportIntentBean = new SupportIntentBean();
SupportIntentBean.AbilityListBean abilityListBean = new SupportIntentBean.AbilityListBean();
abilityListBean.setTrafficType(a);
abilityListBean.setIntentWhitelist(b);
abilityListBean.setIntentWhitelistInNavigating(c);
supportIntentBean.setAbilityList(abilityListBean);
safeBundle.putString(ResponseKey.INTENT_WHITE_LIST, og3.a(supportIntentBean));
return safeBundle;
}
@Override
@Nullable
public Bundle call(@NonNull String str, @NonNull String str2, @Nullable String str3, @Nullable Bundle bundle) {
SafeBundle safeBundle = new SafeBundle();
if (!TextUtils.equals("com.huawei.vassistant", getCallingPackage())) {
hm4.z("MapStatusContentProvider", "voice_assistant_log call is not from hivoice");
return safeBundle.getBundle();
}
if (!TextUtils.equals("com.huawei.maps.voiceassistantbase.provider", str)) {
hm4.z("MapStatusContentProvider", "voice_assistant_log authority is not right");
return safeBundle.getBundle();
}
if (str2 == null) {
hm4.z("MapStatusContentProvider", "voice_assistant_log method is null");
return safeBundle.getBundle();
}
hm4.p("MapStatusContentProvider", "voice_assistant_log call start");
switch (str2) {
case "query_navigation_status":
safeBundle = a();
break;
case "getRemindInfo":
long e = p79.e("remindTime", 0L, getContext());
double e2 = p79.e("remindMileage", 0L, getContext());
hm4.p("MapStatusContentProvider", "voice_assistant_log lowerCheckIsRun:false,lastRemindTime:" + e + ",lastRemindMileage:" + e2);
safeBundle.putBoolean("state", false);
safeBundle.putLong("lastRemindTime", e);
safeBundle.putDouble("lastRemindMileage", e2);
break;
case "query_support_intent_list":
safeBundle = b();
break;
default:
hm4.z("MapStatusContentProvider", "no matched method");
break;
}
return safeBundle.getBundle();
}
@Override
public int delete(Uri uri, String str, String[] strArr) {
throw new UnsupportedOperationException("Not yet implemented");
}
@Override
public String getType(Uri uri) {
throw new UnsupportedOperationException("Not yet implemented");
}
@Override
public Uri insert(Uri uri, ContentValues contentValues) {
throw new UnsupportedOperationException("Not yet implemented");
}
@Override
public boolean onCreate() {
return false;
}
@Override
public Cursor query(Uri uri, String[] strArr, String str, String[] strArr2, String str2) {
throw new UnsupportedOperationException("Not yet implemented");
}
@Override
public int update(Uri uri, ContentValues contentValues, String str, String[] strArr) {
throw new UnsupportedOperationException("Not yet implemented");
}
}