Lines Matching refs:flags
121 public Entry(String tag, long millis, byte[] data, int flags) {
123 if (((flags & IS_EMPTY) != 0) != (data == null)) {
124 throw new IllegalArgumentException("Bad flags: " + flags);
131 mFlags = flags;
138 public Entry(String tag, long millis, ParcelFileDescriptor data, int flags) {
140 if (((flags & IS_EMPTY) != 0) != (data == null)) {
141 throw new IllegalArgumentException("Bad flags: " + flags);
148 mFlags = flags;
155 public Entry(String tag, long millis, File data, int flags) throws IOException {
157 if ((flags & IS_EMPTY) != 0) throw new IllegalArgumentException("Bad flags: " + flags);
163 mFlags = flags;
177 /** @return flags describing the content returned by {@link #getInputStream()}. */
224 int flags = in.readInt();
225 if ((flags & HAS_BYTE_ARRAY) != 0) {
226 return new Entry(tag, millis, in.createByteArray(), flags & ~HAS_BYTE_ARRAY);
228 return new Entry(tag, millis, in.readFileDescriptor(), flags);
237 public void writeToParcel(Parcel out, int flags) {
242 mFileDescriptor.writeToParcel(out, flags);
277 * @param flags describing the data
279 public void addData(String tag, byte[] data, int flags) {
281 try { mService.add(new Entry(tag, 0, data, flags)); } catch (RemoteException e) {}
290 * @param flags describing the data
293 public void addFile(String tag, File file, int flags) throws IOException {
295 Entry entry = new Entry(tag, 0, file, flags);