blob: 71716bd849add822c18b094283ae3f54eb4446a0 [file] [log] [blame]
Daichi Hirono20754c52015-12-15 18:52:26 +09001/*
2 * Copyright (C) 2015 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package com.android.mtp;
18
Daichi Hirono148954a2016-01-21 19:55:45 +090019import android.annotation.Nullable;
20
Daichi Hirono20754c52015-12-15 18:52:26 +090021class MtpDeviceRecord {
22 public final int deviceId;
23 public final String name;
Daichi Hironoebd24052016-02-06 21:05:57 +090024 public final @Nullable String deviceKey;
Daichi Hirono20754c52015-12-15 18:52:26 +090025 public final boolean opened;
26 public final MtpRoot[] roots;
Daichi Hirono148954a2016-01-21 19:55:45 +090027 public final @Nullable int[] operationsSupported;
28 public final @Nullable int[] eventsSupported;
Daichi Hirono20754c52015-12-15 18:52:26 +090029
Daichi Hironoebd24052016-02-06 21:05:57 +090030 MtpDeviceRecord(int deviceId, String name, @Nullable String deviceKey, boolean opened,
31 MtpRoot[] roots, @Nullable int[] operationsSupported,
32 @Nullable int[] eventsSupported) {
Daichi Hirono20754c52015-12-15 18:52:26 +090033 this.deviceId = deviceId;
34 this.name = name;
35 this.opened = opened;
36 this.roots = roots;
Daichi Hironoebd24052016-02-06 21:05:57 +090037 this.deviceKey = deviceKey;
Daichi Hirono1d4779c2016-01-06 16:43:32 +090038 this.operationsSupported = operationsSupported;
Daichi Hirono148954a2016-01-21 19:55:45 +090039 this.eventsSupported = eventsSupported;
Daichi Hirono20754c52015-12-15 18:52:26 +090040 }
41}