code: @Implementation(minSdk = P)
    protected static @Nullable String nativeGetResourceName(long ptr, @AnyRes int resid) {
      CppAssetManager2 assetmanager = AssetManagerFromLong(ptr);
      CppAssetManager2.ResourceName name = new ResourceName();
      if (!assetmanager.GetResourceName(resid, name)) {
        return null;
      }
  
      StringBuilder result = new StringBuilder();
      if (name.package_ != null) {
        result.append(name.package_/*, name.package_len*/);
      }
  
      if (name.type != null /*|| name.type16 != null*/) {
        if (!(result.length() == 0)) {
          result.append(":");
        }
  
        // if (name.type != null) {
          result.append(name.type/*, name.type_len*/);
        // } else {
        //   result.append( /*util.Utf16ToUtf8(StringPiece16(*/ name.type16 /*, name.type_len))*/);
        // }
      }
  
      if (name.entry != null /*|| name.entry16 != null*/) {
        if (!(result.length() == 0)) {
          result.append("/");
        }
  
        // if (name.entry != null) {
          result.append(name.entry/*, name.entry_len*/);
        // } else {
        //   result.append( /*util.Utf16ToUtf8(StringPiece16(*/ name.entry16 /*, name.entry_len)*/);
        // }
      }
      return result.toString();
    }
docs: static jstring NativeGetResourceName(JNIEnv* env, jclass /*clazz*/, jlong ptr, jint resid) {