Google Earth on Audi MMI MIB2
Jump to navigation
Jump to search
public static final boolean isGoogleEarthPresent(IFrameworkAccess iFrameworkAccess) { return iFrameworkAccess.getSysConst(479) == 1; }
public static final boolean isGoogleMapRestricted(IFrameworkAccess iFrameworkAccess) { return iFrameworkAccess.getSysConst(4436) == 1; }
public static final boolean isGoogleMapRestrictedPoiOnly(IFrameworkAccess iFrameworkAccess) { return iFrameworkAccess.getSysConst(4436) == 2; }
public boolean validateGELicenseState(boolean bl) { boolean bl2; int n = this.env.getChoiceModel(-819853824).getStatus(); boolean bl3 = bl2 = bl && (n == 1 || n == 5 || n == 8); if (bl && !bl2) { this.mLogChannel.log(-1601830656, "MapInterface#validateGELicenseState() - Google Earth license not valid! (geLicenseState: %1)", (long)n); } return bl2; }
public void onEnterOnlineMap(boolean bl) { this.logger.log(1078071040, "SatelliteMapsMediator#onEnterOnlineMap() - licenseStatus: %1 ", bl); Object object = this.mapManager.getMutexSwitchToContext(); synchronized (object) { if (!bl) { this.enterMapState = 0; } else { this.mapManager.getGoogleMapLicenseHandler().setGoogleMapLicenseValid(); this.enterMapState = 1; } this.refreshActiveMapStyle(false); } }
@Override public boolean isSatelliteMapSupported() { return Util.isGoogleEarthPresent(this.env.getFramework()) && this.abstractMap.getMapConfig().hasGoogleEarth(); }