Lines Matching refs:flags
124 public Entry(String tag, long millis, byte[] data, int flags) {
126 if (((flags & IS_EMPTY) != 0) != (data == null)) {
127 throw new IllegalArgumentException("Bad flags: " + flags);
134 mFlags = flags;
141 public Entry(String tag, long millis, ParcelFileDescriptor data, int flags) {
143 if (((flags & IS_EMPTY) != 0) != (data == null)) {
144 throw new IllegalArgumentException("Bad flags: " + flags);
151 mFlags = flags;
158 public Entry(String tag, long millis, File data, int flags) throws IOException {
160 if ((flags & IS_EMPTY) != 0) throw new IllegalArgumentException("Bad flags: " + flags);
166 mFlags = flags;
180 /** @return flags describing the content returned by {@link #getInputStream()}. */
227 int flags = in.readInt();
228 if ((flags & HAS_BYTE_ARRAY) != 0) {
229 return new Entry(tag, millis, in.createByteArray(), flags & ~HAS_BYTE_ARRAY);
231 return new Entry(tag, millis, in.readFileDescriptor(), flags);
240 public void writeToParcel(Parcel out, int flags) {
245 mFileDescriptor.writeToParcel(out, flags);
280 * @param flags describing the data
282 public void addData(String tag, byte[] data, int flags) {
284 try { mService.add(new Entry(tag, 0, data, flags)); } catch (RemoteException e) {}
293 * @param flags describing the data
296 public void addFile(String tag, File file, int flags) throws IOException {
298 Entry entry = new Entry(tag, 0, file, flags);