OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 package org.chromium.chrome.browser.media.router.cast; | 5 package org.chromium.chrome.browser.media.router.cast; |
6 | 6 |
7 import java.util.ArrayList; | 7 import java.util.ArrayList; |
8 import java.util.Collection; | 8 import java.util.Collection; |
9 import java.util.List; | 9 import java.util.List; |
10 | 10 |
(...skipping 11 matching lines...) Expand all Loading... |
22 public final double level; | 22 public final double level; |
23 /** | 23 /** |
24 * Whether the receiver is muted. | 24 * Whether the receiver is muted. |
25 */ | 25 */ |
26 public final boolean muted; | 26 public final boolean muted; |
27 | 27 |
28 /** | 28 /** |
29 * Use this class to construct an instance of {@link VolumeInfo}. | 29 * Use this class to construct an instance of {@link VolumeInfo}. |
30 */ | 30 */ |
31 public static class Builder { | 31 public static class Builder { |
32 private double mLevel = 0; | 32 private double mLevel; |
33 private boolean mMuted = false; | 33 private boolean mMuted; |
34 | 34 |
35 public Builder setLevel(double level) { | 35 public Builder setLevel(double level) { |
36 mLevel = level; | 36 mLevel = level; |
37 return this; | 37 return this; |
38 } | 38 } |
39 | 39 |
40 public Builder setMuted(boolean muted) { | 40 public Builder setMuted(boolean muted) { |
41 mMuted = muted; | 41 mMuted = muted; |
42 return this; | 42 return this; |
43 } | 43 } |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 */ | 92 */ |
93 public final String receiverType; | 93 public final String receiverType; |
94 | 94 |
95 /** | 95 /** |
96 * Use this class to create an instance of {@link ReceiverInfo}. | 96 * Use this class to create an instance of {@link ReceiverInfo}. |
97 */ | 97 */ |
98 public static class Builder { | 98 public static class Builder { |
99 private String mLabel = ""; | 99 private String mLabel = ""; |
100 private String mFriendlyName = ""; | 100 private String mFriendlyName = ""; |
101 private List<String> mCapabilities = new ArrayList<String>(); | 101 private List<String> mCapabilities = new ArrayList<String>(); |
102 private VolumeInfo mVolume = null; | 102 private VolumeInfo mVolume; |
103 private int mIsActiveInput = 0; | 103 private int mIsActiveInput; |
104 private String mDisplayStatus = ""; | 104 private String mDisplayStatus = ""; |
105 private String mReceiverType = ""; | 105 private String mReceiverType = ""; |
106 | 106 |
107 public Builder setLabel(String label) { | 107 public Builder setLabel(String label) { |
108 mLabel = label; | 108 mLabel = label; |
109 return this; | 109 return this; |
110 } | 110 } |
111 | 111 |
112 public Builder setFriendlyName(String friendlyName) { | 112 public Builder setFriendlyName(String friendlyName) { |
113 mFriendlyName = friendlyName; | 113 mFriendlyName = friendlyName; |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 * The display name of the {@link CastSession}. | 216 * The display name of the {@link CastSession}. |
217 */ | 217 */ |
218 public final String displayName; | 218 public final String displayName; |
219 | 219 |
220 /** | 220 /** |
221 * Use this class to create an instance of {@link CastSessionInfo}. | 221 * Use this class to create an instance of {@link CastSessionInfo}. |
222 */ | 222 */ |
223 public static class Builder { | 223 public static class Builder { |
224 private String mSessionId = ""; | 224 private String mSessionId = ""; |
225 private String mStatusText = ""; | 225 private String mStatusText = ""; |
226 private ReceiverInfo mReceiver = null; | 226 private ReceiverInfo mReceiver; |
227 private List<String> mNamespaces = new ArrayList<String>(); | 227 private List<String> mNamespaces = new ArrayList<String>(); |
228 private List<String> mMedia = new ArrayList<String>(); | 228 private List<String> mMedia = new ArrayList<String>(); |
229 private String mStatus = ""; | 229 private String mStatus = ""; |
230 private String mTransportId = ""; | 230 private String mTransportId = ""; |
231 private String mAppId = ""; | 231 private String mAppId = ""; |
232 private String mDisplayName = ""; | 232 private String mDisplayName = ""; |
233 | 233 |
234 public Builder setSessionId(String sessionId) { | 234 public Builder setSessionId(String sessionId) { |
235 mSessionId = sessionId; | 235 mSessionId = sessionId; |
236 return this; | 236 return this; |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 this.statusText = statusText; | 315 this.statusText = statusText; |
316 this.receiver = receiver; | 316 this.receiver = receiver; |
317 this.namespaces = namespaces; | 317 this.namespaces = namespaces; |
318 this.media = media; | 318 this.media = media; |
319 this.status = status; | 319 this.status = status; |
320 this.transportId = transportId; | 320 this.transportId = transportId; |
321 this.appId = appId; | 321 this.appId = appId; |
322 this.displayName = displayName; | 322 this.displayName = displayName; |
323 } | 323 } |
324 } | 324 } |
OLD | NEW |