shadows/framework/src/main/java/org/robolectric/shadows/ShadowArscAssetManager9.java
@Implementation(minSdk = P)
  protected static @Nullable Configuration[] nativeGetSizeConfigurations(long ptr) {
    CppAssetManager2 assetmanager = AssetManagerFromLong(ptr);
    Set<ResTable_config> configurations =
        assetmanager.GetResourceConfigurations(true /*exclude_system*/, false /*exclude_mipmap*/);

    Configuration[] array = new Configuration[configurations.size()];
    // env.NewObjectArray(configurations.size(), gConfigurationOffsets.classObject, null);
    // if (array == null) {
    //   return null;
    // }

    int idx = 0;
    for (ResTable_config configuration : configurations) {
      Configuration java_configuration = ConstructConfigurationObject(configuration);
      // if (java_configuration == null) {
      //   return null;
      // }

      // env.SetObjectArrayElement(array, idx++, java_configuration);
      array[idx++] = java_configuration;
      // env.DeleteLocalRef(java_configuration);
    }
    return array;
  }
@Implementation(minSdk = P)
  protected static @Nullable Configuration[] nativeGetSizeConfigurations(long ptr) {
    CppAssetManager2 assetmanager = AssetManagerFromLong(ptr);
    Set<ResTable_config> configurations =
        assetmanager.GetResourceConfigurations(true /*exclude_system*/, false /*exclude_mipmap*/);

    Configuration[] array = new Configuration[configurations.size()];
    // env.NewObjectArray(configurations.size(), gConfigurationOffsets.classObject, null);
    // if (array == null) {
    //   return null;
    // }

    int idx = 0;
    for (ResTable_config configuration : configurations) {
      Configuration java_configuration = ConstructConfigurationObject(configuration);
      // if (java_configuration == null) {
      //   return null;
      // }

      // env.SetObjectArrayElement(array, idx++, java_configuration);
      array[idx++] = java_configuration;
      // env.DeleteLocalRef(java_configuration);
    }
    return array;
  }
@ Implementation ( minSdk = P ) protected static @ Nullable Configuration [ ] nativeGetSizeConfigurations ( long ptr ) { CppAssetManager2 assetmanager = AssetManagerFromLong ( ptr ) ; Set < ResTable_config > configurations = assetmanager . GetResourceConfigurations ( true /*exclude_system*/ , false /*exclude_mipmap*/ ) ; Configuration [ ] array = new Configuration [ configurations . size ( ) ] ; // env.NewObjectArray(configurations.size(), gConfigurationOffsets.classObject, null); // if (array == null) { //   return null; // } int idx = 0 ; for ( ResTable_config configuration : configurations ) { Configuration java_configuration = ConstructConfigurationObject ( configuration ) ; // if (java_configuration == null) { //   return null; // } // env.SetObjectArrayElement(array, idx++, java_configuration); array [ idx ++ ] = java_configuration ; // env.DeleteLocalRef(java_configuration); } return array ; }
static jobjectArray NativeGetSizeConfigurations(JNIEnv* env, jclass /*clazz*/, jlong ptr) {
static jobjectArray NativeGetSizeConfigurations ( JNIEnv * env jclass / * clazz * / jlong ptr ) {