@Implementation(minSdk = P)
  protected static void nativeThemeApplyStyle(long ptr, long theme_ptr, @StyleRes int resid,
      boolean force) {
    // AssetManager is accessed via the theme, so grab an explicit lock here.
    CppAssetManager2 assetmanager = AssetManagerFromLong(ptr);
    Theme theme = Registries.NATIVE_THEME9_REGISTRY.getNativeObject(theme_ptr);
    CHECK(theme.GetAssetManager() == assetmanager);
    // (void) assetmanager;
    theme.ApplyStyle(resid, force);

    // TODO(adamlesinski): Consider surfacing exception when result is failure.
    // CTS currently expects no exceptions from this method.
    // std::string error_msg = StringPrintf("Failed to apply style 0x%08x to theme", resid);
    // throw new IllegalArgumentException(error_msg.c_str());
  }
@Implementation(minSdk = P)
  protected static void nativeThemeApplyStyle(long ptr, long theme_ptr, @StyleRes int resid,
      boolean force) {
    
    CppAssetManager2 assetmanager = AssetManagerFromLong(ptr);
    Theme theme = Registries.NATIVE_THEME9_REGISTRY.getNativeObject(theme_ptr);
    CHECK(theme.GetAssetManager() == assetmanager);
    
    theme.ApplyStyle(resid, force);

    
    
    
    
  }
@ Implementation ( minSdk = P ) protected static void nativeThemeApplyStyle ( long ptr , long theme_ptr , @ StyleRes int resid , boolean force ) { // AssetManager is accessed via the theme, so grab an explicit lock here. CppAssetManager2 assetmanager = AssetManagerFromLong ( ptr ) ; Theme theme = Registries . NATIVE_THEME9_REGISTRY . getNativeObject ( theme_ptr ) ; CHECK ( theme . GetAssetManager ( ) == assetmanager ) ; // (void) assetmanager; theme . ApplyStyle ( resid , force ) ; // TODO(adamlesinski): Consider surfacing exception when result is failure. // CTS currently expects no exceptions from this method. // std::string error_msg = StringPrintf("Failed to apply style 0x%08x to theme", resid); // throw new IllegalArgumentException(error_msg.c_str()); }
jint resid, jboolean force) {
jint resid jboolean force ) {