Searched refs:license (Results 1 - 12 of 12) sorted by relevance

/packages/apps/TV/src/com/android/tv/license/
H A DLicenseSideFragment.java17 package com.android.tv.license;
34 private final License license; field in class:LicenseSideFragment.LicenseActionItem
36 public LicenseActionItem(License license) { argument
37 super(license.getLibraryName());
38 this.license = license;
43 LicenseDialogFragment dialog = LicenseDialogFragment.newInstance(license);
60 for (License license : licenses) {
61 items.add(new LicenseActionItem(license));
H A DLicenseUtils.java17 package com.android.tv.license;
H A DLicenses.java17 package com.android.tv.license;
54 * Returns a list of {@link License}s parsed from a license metadata file.
56 * @param metadata a {@code String} containing the contents of a license metadata file.
68 "Invalid license meta-data line:\n" + entry);
82 /** Return the text of a bundled license file. */
83 public static String getLicenseText(Context context, License license) { argument
84 long offset = license.getLicenseOffset();
85 int length = license.getLicenseLength();
113 throw new RuntimeException("Failed to read license or metadata text.", e);
H A DLicenseDialogFragment.java17 package com.android.tv.license;
43 * Create a new LicenseDialogFragment to show a particular license.
45 * @param license The License to show.
47 public static LicenseDialogFragment newInstance(License license) { argument
50 args.putParcelable(LICENSE, license);
H A DLicense.java17 package com.android.tv.license;
23 * Container class to store the name of a library and the filename of its associated license file.
28 // Byte offset in the file to the start of the license text.
30 // Byte length of the license text.
33 // Empty string if the license is bundled in the apk itself.
37 * Create an object representing a stored license. The text for all licenses is stored in a
38 * single file, so the offset and length describe this license's position within the file.
40 * @param path a path to an .apk-compatible archive that contains the license. An empty string
41 * in case the license is contained within the app itself.
/packages/apps/Dialer/java/com/android/dialer/about/
H A DLicenseActivity.java35 License license = getIntent().getParcelableExtra(LicenseMenuActivity.ARGS_LICENSE);
36 getSupportActionBar().setTitle(license.getLibraryName());
44 String licenseText = Licenses.getLicenseText(this, license);
H A DLicenseMenuActivity.java37 static final String ARGS_LICENSE = "license";
52 listAdapter = new ArrayAdapter<>(this, R.layout.license, R.id.license, new ArrayList<>());
60 License license = (License) parent.getItemAtPosition(position);
62 licenseIntent.putExtra(ARGS_LICENSE, license);
H A DLicenses.java42 * Returns a list of {@link License}s parsed from a license metadata file.
44 * @param metadata a {@code String} containing the contents of a license metadata file.
54 "Invalid license meta-data line:\n" + entry);
63 /** Return the text of a bundled license file. */
64 public static String getLicenseText(Context context, License license) { argument
65 long offset = license.getLicenseOffset();
66 int length = license.getLicenseLength();
75 // resource to know what package to lookup the license files in.
98 throw new RuntimeException("Failed to read license or metadata text.", e);
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
H A DLicensesActivity.java54 // read the raw license String from the license HTML file
56 final String license = IOUtils.toString(input, "UTF-8");
58 // encode the license string for display as HTML in the webview
59 licenseHTML = URLEncoder.encode(license, "UTF-8").replace("+", "%20");
72 // set the license HTML into the webview
/packages/apps/TV/src/com/android/tv/ui/sidepanel/
H A DSettingsFragment.java32 import com.android.tv.license.LicenseSideFragment;
33 import com.android.tv.license.Licenses;
/packages/apps/TV/src/com/android/tv/ui/sidepanel/parentalcontrols/
H A DRatingsFragment.java31 import com.android.tv.license.LicenseUtils;
/packages/apps/TV/src/com/android/tv/ui/
H A DTvOverlayManager.java60 import com.android.tv.license.LicenseDialogFragment;

Completed in 165 milliseconds