Home
last modified time | relevance | path

Searched refs:subscribeType (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/wifi/java/android/net/wifi/nan/
DSubscribeSettings.java62 private SubscribeSettings(int subscribeType, int publichCount, int ttlSec) { in SubscribeSettings() argument
63 mSubscribeType = subscribeType; in SubscribeSettings()
94 int subscribeType = in.readInt();
97 return new SubscribeSettings(subscribeType, subscribeCount, ttlSec);
149 public Builder setSubscribeType(int subscribeType) { in setSubscribeType() argument
150 if (subscribeType < SUBSCRIBE_TYPE_PASSIVE || subscribeType > SUBSCRIBE_TYPE_ACTIVE) { in setSubscribeType()
151 throw new IllegalArgumentException("Invalid subscribeType - " + subscribeType); in setSubscribeType()
153 mSubscribeType = subscribeType; in setSubscribeType()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/nan/
DWifiNanManagerTest.java211 final int subscribeType = SubscribeSettings.SUBSCRIBE_TYPE_PASSIVE; in testSubscribeSettingsBuilder() local
216 .setSubscribeType(subscribeType).setSubscribeCount(subscribeCount) in testSubscribeSettingsBuilder()
219 collector.checkThat("mSubscribeType", subscribeType, in testSubscribeSettingsBuilder()
246 final int subscribeType = SubscribeSettings.SUBSCRIBE_TYPE_PASSIVE; in testSubscribeSettingsParcel() local
251 .setSubscribeType(subscribeType).setSubscribeCount(subscribeCount) in testSubscribeSettingsParcel()
DWifiNanHalTest.java697 private void testSubscribe(short transactionId, int subscribeId, int subscribeType, in testSubscribe() argument
707 .setSubscribeType(subscribeType).setSubscribeCount(subscribeCount) in testSubscribe()
720 equalTo(subscribeType)); in testSubscribe()