예제 #1
0
static void print_cur_config (void *data)
{
   struct android_app *android_app = (struct android_app*)data;
   char lang[2], country[2];
   AConfiguration_getLanguage(android_app->config, lang);
   AConfiguration_getCountry(android_app->config, country);

   RARCH_LOG("Config: mcc=%d mnc=%d lang=%c%c cnt=%c%c orien=%d touch=%d dens=%d "
         "keys=%d nav=%d keysHid=%d navHid=%d sdk=%d size=%d long=%d "
         "modetype=%d modenight=%d\n",
         AConfiguration_getMcc(android_app->config),
         AConfiguration_getMnc(android_app->config),
         lang[0], lang[1], country[0], country[1],
         AConfiguration_getOrientation(android_app->config),
         AConfiguration_getTouchscreen(android_app->config),
         AConfiguration_getDensity(android_app->config),
         AConfiguration_getKeyboard(android_app->config),
         AConfiguration_getNavigation(android_app->config),
         AConfiguration_getKeysHidden(android_app->config),
         AConfiguration_getNavHidden(android_app->config),
         AConfiguration_getSdkVersion(android_app->config),
         AConfiguration_getScreenSize(android_app->config),
         AConfiguration_getScreenLong(android_app->config),
         AConfiguration_getUiModeType(android_app->config),
         AConfiguration_getUiModeNight(android_app->config));
}
예제 #2
0
void AndroidConfiguration::reloadCacheForToString() {

  AConfiguration* config = mConfiguration.get();

  std::stringstream stream;

  char lang[2], country[2];
  AConfiguration_getLanguage(config, lang);
  AConfiguration_getCountry(config, country);

  stream << "Config: "
         << "mcc="       << AConfiguration_getMcc(config)         << " "
         << "mnc="       << AConfiguration_getMnc(config)         << " "
         << "lang="      << lang[0] << lang[1]                    << " "
         << "cnt="       << country[0] << country[1]              << " "
         << "orien="     << AConfiguration_getOrientation(config) << " "
         << "touch="     << AConfiguration_getTouchscreen(config) << " "
         << "dens="      << AConfiguration_getDensity(config)     << " "
         << "keys="      << AConfiguration_getKeyboard(config)    << " "
         << "nav="       << AConfiguration_getNavigation(config)  << " "
         << "keysHid="   << AConfiguration_getKeysHidden(config)  << " "
         << "navHid="    << AConfiguration_getNavHidden(config)   << " "
         << "sdk="       << AConfiguration_getSdkVersion(config)  << " "
         << "size="      << AConfiguration_getScreenSize(config)  << " "
         << "long="      << AConfiguration_getScreenLong(config)  << " "
         << "modetype="  << AConfiguration_getUiModeType(config)  << " "
         << "modenight=" << AConfiguration_getUiModeNight(config) << ""
         << "\n";
  mCacheForToString = stream.str();
}
예제 #3
0
void StAndroidGlue::printConfig() {
    char aLang[3], aCountry[3];
    AConfiguration_getLanguage(myConfig, aLang);
    AConfiguration_getCountry (myConfig, aCountry);
    aLang[2]    = '\0';
    aCountry[2] = '\0';
    ST_DEBUG_LOG("Config:"
               + " mcc="       + AConfiguration_getMcc(myConfig)
               + " mnc="       + AConfiguration_getMnc(myConfig)
               + " lang="      + aLang + " cnt=" + aCountry
               + " orien="     + AConfiguration_getOrientation(myConfig)
               + " touch="     + AConfiguration_getTouchscreen(myConfig)
               + " dens="      + AConfiguration_getDensity    (myConfig)
               + " keys="      + AConfiguration_getKeyboard   (myConfig)
               + " nav="       + AConfiguration_getNavigation (myConfig)
               + " keysHid="   + AConfiguration_getKeysHidden (myConfig)
               + " navHid="    + AConfiguration_getNavHidden  (myConfig)
               + " sdk="       + AConfiguration_getSdkVersion (myConfig)
               + " size="      + AConfiguration_getScreenSize (myConfig)
               + " long="      + AConfiguration_getScreenLong (myConfig)
               + " modetype="  + AConfiguration_getUiModeType (myConfig)
               + " modenight=" + AConfiguration_getUiModeNight(myConfig));
}