/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/ |
D | BatteryTipPolicy.java | 211 private final KeyValueListParser mParser; field in BatteryTipPolicy 219 mParser = parser; in BatteryTipPolicy() 225 mParser.setString(value); in BatteryTipPolicy() 230 batteryTipEnabled = mParser.getBoolean(KEY_BATTERY_TIP_ENABLED, true); in BatteryTipPolicy() 231 summaryEnabled = mParser.getBoolean(KEY_SUMMARY_ENABLED, false); in BatteryTipPolicy() 232 batterySaverTipEnabled = mParser.getBoolean(KEY_BATTERY_SAVER_TIP_ENABLED, true); in BatteryTipPolicy() 233 highUsageEnabled = mParser.getBoolean(KEY_HIGH_USAGE_ENABLED, true); in BatteryTipPolicy() 234 highUsageAppCount = mParser.getInt(KEY_HIGH_USAGE_APP_COUNT, 3); in BatteryTipPolicy() 236 mParser.getLong(KEY_HIGH_USAGE_PERIOD_MS, Duration.ofHours(2).toMillis()); in BatteryTipPolicy() 237 highUsageBatteryDraining = mParser.getInt(KEY_HIGH_USAGE_BATTERY_DRAINING, 25); in BatteryTipPolicy() [all …]
|
/packages/providers/MediaProvider/src/com/android/providers/media/util/ |
D | XmpDataParser.java | 57 private final XmlPullParser mParser; field in XmpDataParser 63 mParser = Xml.newPullParser(); in XmpDataParser() 64 mParser.setInput(mInput, StandardCharsets.UTF_8.name()); in XmpDataParser() 112 while ((type = mParser.next()) != END_DOCUMENT) { in createXmpInterface() 114 offset = mInput.getOffset(mParser); in createXmpInterface() 119 final String ns = mParser.getNamespace(); in createXmpInterface() 120 final String name = mParser.getName(); in createXmpInterface() 123 builder.format(mParser.getAttributeValue(NS_DC, NAME_FORMAT)) in createXmpInterface() 124 .documentId(mParser.getAttributeValue( in createXmpInterface() 126 .instanceId(mParser.getAttributeValue( in createXmpInterface() [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/mapclient/obex/ |
D | BmessageParser.java | 66 private BmsgTokenizer mParser; field in BmessageParser 102 return new ParseException("Expected: " + sb.toString(), mParser.pos()); in expected() 112 mParser = new BmsgTokenizer(str + CRLF); in parse() 114 prop = mParser.next(); in parse() 145 mParser = null; in parse() 160 prop = mParser.next(); in parseProperties() 200 throw new ParseException("bEnvelope is nested more than 3 times", mParser.pos()); in parseEnvelope() 208 prop = mParser.next(); in parseEnvelope() 237 return mParser.next(); in parseEnvelope() 259 prop = mParser.next(); in parseBody() [all …]
|
/packages/modules/Wifi/framework/tests/src/android/net/wifi/hotspot2/omadm/ |
D | XMLParserTest.java | 37 XMLParser mParser; field in XMLParserTest 53 mParser = new XMLParser(); in setUp() 58 mParser.parse(null); in parseNullXML() 63 mParser.parse(new String()); in parseEmptyXML() 69 mParser.parse(malformedXmlTree); in parseMalformedXML() 81 XMLNode actualRoot = mParser.parse(xmlTree); in parseValidXMLTree()
|
/packages/modules/AdServices/sdksandbox/service/java/com/android/server/sdksandbox/verification/ |
D | SerialDexLoader.java | 34 private DexParser mParser; field in SerialDexLoader 39 mParser = parser; in SerialDexLoader() 58 dexEntries = mParser.getDexFilePaths(apkPathFile); in queueApkToLoad() 67 mParser.loadDexSymbols( in queueApkToLoad()
|
/packages/apps/Nfc/tests/unit/src/com/android/nfc/cardemulation/ |
D | RegisteredNfcFServicesCacheTest.java | 123 private XmlPullParser mParser; field in RegisteredNfcFServicesCacheTest 173 when(Xml.newPullParser()).thenReturn(mParser); in setUp() 762 when(mParser.getEventType()).thenReturn(XmlPullParser.START_TAG); in testReadDynamicSystemCodeNfcid2Locked() 763 when(mParser.next()).thenReturn(XmlPullParser.END_TAG).thenReturn(XmlPullParser.END_DOCUMENT); in testReadDynamicSystemCodeNfcid2Locked() 764 when(mParser.getName()).thenReturn("services").thenReturn("service"); in testReadDynamicSystemCodeNfcid2Locked() 765 when(mParser.getDepth()).thenReturn(2); in testReadDynamicSystemCodeNfcid2Locked() 766 when(mParser.getAttributeValue(any(), eq("component"))) in testReadDynamicSystemCodeNfcid2Locked() 768 when(mParser.getAttributeValue(any(), eq("uid"))).thenReturn("1"); in testReadDynamicSystemCodeNfcid2Locked() 769 when(mParser.getAttributeValue(any(), eq("system-code"))).thenReturn(SYSTEM_CODE); in testReadDynamicSystemCodeNfcid2Locked() 770 when(mParser.getAttributeValue(any(), eq("nfcid2"))).thenReturn(NFCID2); in testReadDynamicSystemCodeNfcid2Locked() [all …]
|
/packages/services/Car/service/src/com/android/car/hal/fakevhal/ |
D | FakeVehicleStub.java | 97 private final FakeVhalConfigParser mParser; field in FakeVehicleStub 151 mParser = parser; in FakeVehicleStub() 554 configDeclarations = mParser.parseJsonConfig(defaultConfigInputStream); in parseConfigFiles() 560 customConfigDeclarations = mParser.parseJsonConfig(customFile); in parseConfigFiles()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/fakevhal/ |
D | FakeVehicleStubUnitTest.java | 152 private FakeVhalConfigParser mParser; field in FakeVehicleStubUnitTest 244 when(mParser.parseJsonConfig(any(InputStream.class))).thenThrow( in testParseConfigFilesThrowException() 248 () -> new FakeVehicleStub(mMockRealVehicleStub, mParser, new ArrayList<>())); in testParseConfigFilesThrowException() 259 when(mParser.parseJsonConfig(any(InputStream.class))).thenReturn(defaultParseResult); in testNoCustomFile() 261 FakeVehicleStub fakeVehicleStub = new FakeVehicleStub(mMockRealVehicleStub, mParser, in testNoCustomFile() 318 when(mParser.parseJsonConfig(any(InputStream.class))).thenReturn(new SparseArray<>()); in testGetMethodPropIdNotSupported() 323 FakeVehicleStub fakeVehicleStub = new FakeVehicleStub(mMockRealVehicleStub, mParser, in testGetMethodPropIdNotSupported()
|