Home
last modified time | relevance | path

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

/frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/
DSettingsStateTest.java51 assertFalse(SettingsState.isBinary(" abc 日本語")); in testIsBinary()
55 SettingsState.isBinary(String.valueOf(ch))); in testIsBinary()
59 SettingsState.isBinary(String.valueOf(ch))); in testIsBinary()
64 SettingsState.isBinary(String.valueOf(ch))); in testIsBinary()
68 SettingsState.isBinary(String.valueOf(ch))); in testIsBinary()
70 assertTrue(SettingsState.isBinary("\ufffe")); in testIsBinary()
71 assertTrue(SettingsState.isBinary("\uffff")); in testIsBinary()
73 assertFalse(SettingsState.isBinary(null)); in testIsBinary()
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsState.java781 if (id == null || isBinary(id) || name == null || isBinary(name) in writeSingleSetting()
782 || packageName == null || isBinary(packageName)) { in writeSingleSetting()
807 } else if (isBinary(value)) { in setValueAttribute()
1125 public static boolean isBinary(String s) { in isBinary() method in SettingsState
DSettingsProvider.java2271 return !(TextUtils.isEmpty(key) || SettingsState.isBinary(key));