code: boolean GetResourceFlags(int resid, Ref<Integer> out_flags) {
      final Ref<FindEntryResult> entry = new Ref<>(null);
      ApkAssetsCookie cookie = FindEntry(resid, (short) 0 /* density_override */,
          false /* stop_at_first_match */, entry);
      if (cookie.intValue() != kInvalidCookie) {
        out_flags.set(entry.get().type_flags);
        // this makes no sense, not a boolean:
        // return cookie;
      }
      // this makes no sense, not a boolean:
      // return kInvalidCookie;
  
      return cookie.intValue() != kInvalidCookie;
    }
docs: boolean GetResourceFlags(int resid, int* out_flags);