Lines Matching defs:file
5 * you may not use this file except in compliance with the License.
17 package com.android.dexgen.dex.file;
98 /** {@code non-null;} file being written */
99 private final DexFile file;
107 * @param file {@code non-null;} file being written
110 public ValueEncoder(DexFile file, AnnotatedOutput out) {
111 if (file == null) {
112 throw new NullPointerException("file == null");
119 this.file = file;
158 int index = file.getStringIds().indexOf((CstString) cst);
163 int index = file.getTypeIds().indexOf((CstType) cst);
168 int index = file.getFieldIds().indexOf((CstFieldRef) cst);
173 int index = file.getMethodIds().indexOf((CstMethodRef) cst);
179 int index = file.getFieldIds().indexOf(fieldRef);
311 StringIdsSection stringIds = file.getStringIds();
312 TypeIdsSection typeIds = file.getTypeIds();
491 * @param file {@code non-null;} the file to add to
494 public static void addContents(DexFile file, Annotation annotation) {
495 TypeIdsSection typeIds = file.getTypeIds();
496 StringIdsSection stringIds = file.getStringIds();
502 addContents(file, pair.getValue());
513 * @param file {@code non-null;} the file to add to
516 public static void addContents(DexFile file, Constant cst) {
518 addContents(file, ((CstAnnotation) cst).getAnnotation());
523 addContents(file, list.get(i));
526 file.internIfAppropriate(cst);