Lines Matching defs:mode
57 // Compatibility state: no longer ask user to select the mode.
59 // Compatibility state: compatibility mode is enabled.
85 mFile = new AtomicFile(new File(systemDir, "packages-compat.xml"), "compat-mode");
112 String mode = parser.getAttributeValue(null, "mode");
114 if (mode != null) {
116 modeInt = Integer.parseInt(mode);
183 // Update -- if the app no longer can run in compat mode, clear
266 public void setFrontActivityScreenCompatModeLocked(int mode) {
272 setPackageScreenCompatModeLocked(r.info.applicationInfo, mode);
287 public void setPackageScreenCompatModeLocked(String packageName, int mode) {
297 setPackageScreenCompatModeLocked(ai, mode);
300 private void setPackageScreenCompatModeLocked(ApplicationInfo ai, int mode) {
306 switch (mode) {
317 Slog.w(TAG, "Unknown screen compat mode req #" + mode + "; ignoring");
330 Slog.w(TAG, "Ignoring compat mode change of " + packageName
335 Slog.w(TAG, "Ignoring compat mode change of " + packageName
405 int mode = entry.getValue();
406 if (mode == 0) {
427 out.attribute(null, "mode", Integer.toString(mode));