Home
last modified time | relevance | path

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

/frameworks/base/wifi/java/android/net/wifi/nan/
DPublishSettings.java62 private PublishSettings(int publishType, int publichCount, int ttlSec) { in PublishSettings() argument
63 mPublishType = publishType; in PublishSettings()
94 int publishType = in.readInt();
97 return new PublishSettings(publishType, publishCount, ttlSec);
149 public Builder setPublishType(int publishType) { in setPublishType() argument
150 if (publishType < PUBLISH_TYPE_UNSOLICITED || publishType > PUBLISH_TYPE_SOLICITED) { in setPublishType()
151 throw new IllegalArgumentException("Invalid publishType - " + publishType); in setPublishType()
153 mPublishType = publishType; in setPublishType()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/nan/
DWifiNanManagerTest.java330 final int publishType = PublishSettings.PUBLISH_TYPE_SOLICITED; in testPublishSettingsBuilder() local
334 PublishSettings publishSetting = new PublishSettings.Builder().setPublishType(publishType) in testPublishSettingsBuilder()
337 collector.checkThat("mPublishType", publishType, equalTo(publishSetting.mPublishType)); in testPublishSettingsBuilder()
362 final int publishType = PublishSettings.PUBLISH_TYPE_SOLICITED; in testPublishSettingsParcel() local
366 PublishSettings configSetting = new PublishSettings.Builder().setPublishType(publishType) in testPublishSettingsParcel()
DWifiNanHalTest.java649 private void testPublish(short transactionId, int publishId, int publishType, in testPublish() argument
658 PublishSettings publishSettings = new PublishSettings.Builder().setPublishType(publishType) in testPublish()
669 collector.checkThat("publish_type", argsData.getInt("publish_type"), equalTo(publishType)); in testPublish()
671 equalTo(publishType == PublishSettings.PUBLISH_TYPE_UNSOLICITED ? 0 : 1)); in testPublish()