Lines Matching refs:flags
127 public Entry(String tag, long millis, byte[] data, int flags) {
129 if (((flags & IS_EMPTY) != 0) != (data == null)) {
130 throw new IllegalArgumentException("Bad flags: " + flags);
137 mFlags = flags;
144 public Entry(String tag, long millis, ParcelFileDescriptor data, int flags) {
146 if (((flags & IS_EMPTY) != 0) != (data == null)) {
147 throw new IllegalArgumentException("Bad flags: " + flags);
154 mFlags = flags;
161 public Entry(String tag, long millis, File data, int flags) throws IOException {
163 if ((flags & IS_EMPTY) != 0) throw new IllegalArgumentException("Bad flags: " + flags);
169 mFlags = flags;
183 /** @return flags describing the content returned by {@link #getInputStream()}. */
230 int flags = in.readInt();
231 if ((flags & HAS_BYTE_ARRAY) != 0) {
232 return new Entry(tag, millis, in.createByteArray(), flags & ~HAS_BYTE_ARRAY);
235 return new Entry(tag, millis, pfd, flags);
244 public void writeToParcel(Parcel out, int flags) {
249 mFileDescriptor.writeToParcel(out, flags);
299 * @param flags describing the data
301 public void addData(String tag, byte[] data, int flags) {
304 mService.add(new Entry(tag, 0, data, flags));
321 * @param flags describing the data
324 public void addFile(String tag, File file, int flags) throws IOException {
326 Entry entry = new Entry(tag, 0, file, flags);