HomeSort by relevance Sort by last modified time
    Searched defs:disclaimers (Results 1 - 4 of 4) sorted by null

  /packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/parser/
DisclaimersParser.java 61 List<Disclaimer> disclaimers = new ArrayList<>(MAX_LENGTH); local
63 // maximum 3 disclaimers are accepted in the EXTRA_PROVISIONING_DISCLAIMERS API
64 if (disclaimers.size() >= MAX_LENGTH) {
87 disclaimers.add(new Disclaimer(header, disclaimerFile.getPath()));
89 return disclaimers.isEmpty() ? null : new DisclaimersParam.Builder()
90 .setDisclaimers(disclaimers.toArray(new Disclaimer[disclaimers.size()])).build();
  /packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/model/
DisclaimersParam.java 28 * Stores disclaimers information.
69 Disclaimer[] disclaimers = new Disclaimer[headers.length]; local
71 disclaimers[i] = new Disclaimer(headers[i], contentPaths[i]);
73 builder.setDisclaimers(disclaimers);
115 public Builder setDisclaimers(Disclaimer[] disclaimers) {
116 mDisclaimers = disclaimers;
  /packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/preprovisioning/terms/
TermsProvider.java 135 DisclaimersParam.Disclaimer[] disclaimers = params.disclaimersParam == null ? null local
137 if (disclaimers != null) {
138 for (DisclaimersParam.Disclaimer disclaimer : disclaimers) {
  /packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/parser/
DisclaimersParserTest.java 127 DisclaimersParam disclaimers = mDisclaimersParser.parse(new Bundle[] { bundle }); local
129 assertNotNull(disclaimers);
130 assertEquals(disclaimers.mDisclaimers.length, 1);
131 assertEquals(disclaimers.mDisclaimers[0].mHeader, DISCLAIMER_HEADER_1);
132 assertEquals(disclaimers.mDisclaimers[0].mContentFilePath, DISCLAIMER_FILE_DEST_1);
133 assertEquals(getDisclaimerContentString(disclaimers.mDisclaimers[0]),
149 DisclaimersParam disclaimers = mDisclaimersParser.parse( local
152 // The order of disclaimers must follow the original orders
153 assertNotNull(disclaimers);
154 assertEquals(disclaimers.mDisclaimers.length, 3)
    [all...]

Completed in 178 milliseconds