Home
last modified time | relevance | path

Searched refs:MAX_LENGTH (Results 1 – 2 of 2) sorted by relevance

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/aware/
DWifiAwareServiceImplTest.java78 private static final int MAX_LENGTH = 255; field in WifiAwareServiceImplTest
389 byte[] byteArray = new byte[MAX_LENGTH + 1]; in testPublishServiceNameTooLong()
390 for (int i = 0; i < MAX_LENGTH + 1; ++i) { in testPublishServiceNameTooLong()
401 doBadPublishConfiguration("correctservicename", new byte[MAX_LENGTH + 1], null); in testPublishSsiTooLong()
410 doBadPublishConfiguration("correctservicename", null, new byte[MAX_LENGTH + 1]); in testPublishMatchFilterTooLong()
484 byte[] byteArray = new byte[MAX_LENGTH + 1]; in testSubscribeServiceNameTooLong()
485 for (int i = 0; i < MAX_LENGTH + 1; ++i) { in testSubscribeServiceNameTooLong()
496 doBadSubscribeConfiguration("correctservicename", new byte[MAX_LENGTH + 1], null); in testSubscribeSsiTooLong()
505 doBadSubscribeConfiguration("correctservicename", null, new byte[MAX_LENGTH + 1]); in testSubscribeMatchFilterTooLong()
526 .setServiceSpecificInfo(new byte[MAX_LENGTH + 1]).build(); in testUpdateSubscribeInvalid()
[all …]
/frameworks/base/packages/SettingsProvider/src/android/provider/settings/validators/
DSystemSettingsValidators.java84 private static final int MAX_LENGTH = 1000; in VALIDATORS.put() argument
89 return value == null || value.length() < MAX_LENGTH; in VALIDATORS.put()
149 private static final int MAX_LENGTH = 1000; in VALIDATORS.put() argument
153 if (value != null && value.length() > MAX_LENGTH) { in VALIDATORS.put()