Home
last modified time | relevance | path

Searched refs:mParser (Results 1 – 25 of 43) sorted by relevance

12

/frameworks/base/core/tests/coretests/src/android/util/
DKeyValueListParserTest.java40 private KeyValueListParser mParser; field in KeyValueListParserTest
44 mParser = new KeyValueListParser(','); in setUp()
49 mParser.setString(null); in testParseIntArrayNullInput()
50 int[] result = mParser.getIntArray("test", DEFAULT); in testParseIntArrayNullInput()
56 mParser.setString("test="); in testParseIntArrayEmptyInput()
57 int[] result = mParser.getIntArray("test", DEFAULT); in testParseIntArrayEmptyInput()
63 mParser.setString("foo=bar,test=100:200,baz=123"); in testParseIntArrayNullKey()
64 int[] result = mParser.getIntArray(null, DEFAULT); in testParseIntArrayNullKey()
70 mParser.setString("foo=bar,test=100:200,baz=123"); in testParseIntArrayComplexInput()
71 int[] result = mParser.getIntArray("test", DEFAULT); in testParseIntArrayComplexInput()
[all …]
/frameworks/base/apct-tests/perftests/core/src/android/content/res/
DXmlBlockBenchmark.java52 private XmlBlock.Parser mParser; field in XmlBlockBenchmark
55 if (mParser != null) { in cleanCache()
56 mParser.close(); in cleanCache()
75 mParser = getNewParser(); in setUp()
85 int parseState = mParser.next(); in safeNext()
89 mParser = getNewParser(); in safeNext()
97 mParser.close(); in throwNpeCausedByNullDocument()
100 mParser.getClassAttribute(); in throwNpeCausedByNullDocument()
112 int parseState = mParser.next(); in getNext()
115 mParser = getNewParser(); in getNext()
[all …]
/frameworks/base/core/tests/coretests/src/android/view/
DCutoutSpecificationTest.java128 private CutoutSpecification.Parser mParser; field in CutoutSpecificationTest
135 mParser = new CutoutSpecification.Parser(3.5f, 1080, 1920); in setUp()
140 assertThrows(NullPointerException.class, () -> mParser.parse(null)); in parse_nullString_shouldTriggerException()
145 CutoutSpecification cutoutSpecification = mParser.parse(""); in parse_emptyString_pathShouldBeNull()
151 CutoutSpecification cutoutSpecification = mParser.parse(WITHOUT_BIND_CUTOUT_SPECIFICATION); in parse_withoutBindMarker_shouldHaveNoLeftBound()
157 CutoutSpecification cutoutSpecification = mParser.parse(WITHOUT_BIND_CUTOUT_SPECIFICATION); in parse_withoutBindMarker_shouldHaveNoRightBound()
163 CutoutSpecification cutoutSpecification = mParser.parse(WITH_BIND_CUTOUT_SPECIFICATION); in parse_withBindMarker_shouldHaveLeftBound()
169 CutoutSpecification cutoutSpecification = mParser.parse(WITH_BIND_CUTOUT_SPECIFICATION); in parse_withBindMarker_shouldHaveTopBound()
175 CutoutSpecification cutoutSpecification = mParser.parse(WITH_BIND_CUTOUT_SPECIFICATION); in parse_withBindMarker_shouldHaveRightBound()
181 CutoutSpecification cutoutSpecification = mParser.parse(WITH_BIND_CUTOUT_SPECIFICATION); in parse_withBindMarker_shouldHaveBottomBound()
[all …]
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgeXmlBlockParser.java43 @NonNull private final XmlPullParser mParser; field in BridgeXmlBlockParser
67 mParser = parser; in BridgeXmlBlockParser()
82 return mParser; in getParser()
91 if (mParser instanceof ILayoutPullParser) { in getViewCookie()
92 return ((ILayoutPullParser)mParser).getViewCookie(); in getViewCookie()
137 mParser.setInput(in); in setInput()
143 mParser.setInput(inputStream, inputEncoding); in setInput()
165 return mParser.getNamespace(prefix); in getNamespace()
190 return mParser.getDepth(); in getDepth()
195 return mParser.getText(); in getText()
[all …]
DXmlPullParserResolver.java35 private final XmlPullParser mParser; field in XmlPullParserResolver
41 mParser = parser; in XmlPullParserResolver()
48 String result = mParser.getNamespace(namespacePrefix); in prefixToUri()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/compat/overrides/
DAppCompatOverridesParserTest.java63 private AppCompatOverridesParser mParser; field in AppCompatOverridesParserTest
70 mParser = new AppCompatOverridesParser(mPackageManager); in setUp()
77 assertThat(mParser.parseRemoveOverrides("", ownedChangeIds)).isEmpty(); in parseRemoveOverrides_emptyConfig_returnsEmpty()
85 assertThat(mParser.parseRemoveOverrides("*", /* ownedChangeIds= */ emptySet())).isEmpty(); in parseRemoveOverrides_configHasWildcardNoOwnedChangeIds_returnsEmpty()
95 Map<String, Set<Long>> result = mParser.parseRemoveOverrides("*", ownedChangeIds); in parseRemoveOverrides_configHasWildcard_returnsAllInstalledPackagesToAllOwnedIds()
109 assertThat(mParser.parseRemoveOverrides("**", ownedChangeIds)).isEmpty(); in parseRemoveOverrides_configHasInvalidWildcardSymbol_returnsEmpty()
114 Map<String, Set<Long>> result = mParser.parseRemoveOverrides( in parseRemoveOverrides_configHasSingleEntry_returnsPackageToChangeIds()
125 Map<String, Set<Long>> result = mParser.parseRemoveOverrides( in parseRemoveOverrides_configHasMultipleEntries_returnsPackagesToChangeIds()
137 Map<String, Set<Long>> result = mParser.parseRemoveOverrides( in parseRemoveOverrides_configHasPackageWithWildcardNoOwnedId_returnsWithoutPackage()
148 assertThat(mParser.parseRemoveOverrides( in parseRemoveOverrides_configHasInvalidKeyValueListFormat_returnsEmpty()
[all …]
/frameworks/base/services/core/java/com/android/server/pm/
DSettingsXml.java164 private final TypedXmlPullParser mParser; field in SettingsXml.ReadSectionImpl
172 mParser = Xml.newFastPullParser(); in ReadSectionImpl()
173 mParser.setInput(mInput, StandardCharsets.UTF_8.name()); in ReadSectionImpl()
180 mParser = parser; in ReadSectionImpl()
185 if (mParser.getEventType() == XmlPullParser.START_TAG) { in moveToFirstTag()
191 while ((type = mParser.next()) != XmlPullParser.START_TAG in moveToFirstTag()
199 return mParser.getName(); in getName()
205 return mParser.getPositionDescription(); in getDescription()
210 return mParser.getAttributeValue(null, attrName) != null; in has()
216 return mParser.getAttributeValue(null, attrName); in getString()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DAlwaysOnDisplayPolicy.java133 private final KeyValueListParser mParser; field in AlwaysOnDisplayPolicy
141 mParser = new KeyValueListParser(','); in AlwaysOnDisplayPolicy()
173 mParser.setString(value); in update()
178 proxScreenOffDelayMs = mParser.getLong(KEY_PROX_SCREEN_OFF_DELAY_MS, in update()
180 proxCooldownTriggerMs = mParser.getLong(KEY_PROX_COOLDOWN_TRIGGER_MS, in update()
182 proxCooldownPeriodMs = mParser.getLong(KEY_PROX_COOLDOWN_PERIOD_MS, in update()
184 wallpaperFadeOutDuration = mParser.getLong(KEY_WALLPAPER_FADE_OUT_MS, in update()
186 wallpaperVisibilityDuration = mParser.getLong(KEY_WALLPAPER_VISIBILITY_MS, in update()
192 screenBrightnessArray = mParser.getIntArray(KEY_SCREEN_BRIGHTNESS_ARRAY, in update()
195 dimmingScrimArray = mParser.getIntArray(KEY_DIMMING_SCRIM_ARRAY, in update()
/frameworks/base/core/java/android/util/
DXmlPullAttributes.java31 mParser = parser; in XmlPullAttributes()
35 return mParser.getAttributeCount(); in getAttributeCount()
39 return mParser.getAttributeNamespace(index); in getAttributeNamespace()
43 return mParser.getAttributeName(index); in getAttributeName()
47 return mParser.getAttributeValue(index); in getAttributeValue()
51 return mParser.getAttributeValue(namespace, name); in getAttributeValue()
55 return mParser.getPositionDescription(); in getPositionDescription()
152 /*package*/ XmlPullParser mParser; field in XmlPullAttributes
DKeyValueSettingObserver.java42 private final KeyValueListParser mParser = new KeyValueListParser(','); field in KeyValueSettingObserver
59 update(mParser); in start()
77 mParser.setString(setting); in setParserValue()
94 update(mParser); in onChange()
/frameworks/base/services/tests/servicestests/src/com/android/server/graphics/fonts/
DUpdatableFontDirTest.java155 private FakeFontFileParser mParser; field in UpdatableFontDirTest
174 mParser = new FakeFontFileParser(); in setUp()
190 mUpdatableFontFilesDir, mParser, mFakeFsverityUtil, in construct()
213 mUpdatableFontFilesDir, mParser, mFakeFsverityUtil, in construct()
217 assertThat(mParser.getRevision(dir.getPostScriptMap().get("foo"))).isEqualTo(3); in construct()
219 assertThat(mParser.getRevision(dir.getPostScriptMap().get("bar"))).isEqualTo(4); in construct()
236 mUpdatableFontFilesDir, mParser, mFakeFsverityUtil, in construct_empty()
246 mUpdatableFontFilesDir, mParser, mFakeFsverityUtil, in construct_missingFsverity()
264 mUpdatableFontFilesDir, mParser, mFakeFsverityUtil, in construct_missingFsverity()
276 mUpdatableFontFilesDir, mParser, mFakeFsverityUtil, in construct_fontNameMismatch()
[all …]
/frameworks/base/media/java/android/media/
DTtmlRenderer.java361 private XmlPullParser mParser; field in TtmlParser
378 mParser = null; in parse()
387 mParser = factory.newPullParser(); in loadParser()
389 mParser.setInput(in); in loadParser()
405 int eventType = mParser.getEventType(); in parseTtml()
409 if (!isSupportedTag(mParser.getName())) { in parseTtml()
410 Log.w(TAG, "Unsupported tag " + mParser.getName() + " is ignored."); in parseTtml()
421 String text = TtmlUtils.applyDefaultSpacePolicy(mParser.getText()); in parseTtml()
429 if (mParser.getName().equals(TtmlUtils.TAG_P)) { in parseTtml()
431 } else if (mParser.getName().equals(TtmlUtils.TAG_TT)) { in parseTtml()
[all …]
/frameworks/av/media/module/extractors/flac/
DFLACExtractor.cpp79 FLACParser *mParser; member in android::FLACSource
659 mParser(new FLACParser(mDataSource, outputFloat, 0, mTrackMetadata)), in FLACSource()
660 mInitCheck(mParser->initCheck()), in FLACSource()
672 delete mParser; in ~FLACSource()
680 mParser->allocateBuffers(mBufferGroup); in start()
691 mParser->releaseBuffers(); in stop()
720 sample = (seekTimeUs * mParser->getSampleRate()) / 1000000LL; in read()
721 if (sample >= mParser->getTotalSamples()) { in read()
722 sample = mParser->getTotalSamples(); in read()
725 buffer = mParser->readBuffer(sample); in read()
[all …]
/frameworks/av/media/module/mpeg2ts/test/
DMpeg2tsUnitTest.cpp52 : mInputBuffer(nullptr), mSource(nullptr), mFpInput(nullptr), mParser(nullptr) {} in Mpeg2tsUnitTest()
86 mParser = new ATSParser(); in SetUp()
87 ASSERT_NE(mParser, nullptr) << "Unable to create ATS parser!"; in SetUp()
102 ATSParser *mParser; member in Mpeg2tsUnitTest
129 status_t err = mParser->feedTSPacket(packet, kTSPacketSize, &event); in TEST_P()
134 if (mParser->hasSource(mediaType[i])) { in TEST_P()
158 if (mParser->hasSource(currentMediaType)) { in TEST_P()
185 sp<AnotherPacketSource> packetSource = mParser->getSource(currentMediaType); in TEST_P()
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/
DParallelPackageParserTest.java47 private ParallelPackageParser mParser; field in ParallelPackageParserTest
51 mParser = new TestParallelPackageParser(new TestPackageParser2(), in setUp()
61 mParser.submit(file, 0); in test()
66 ParallelPackageParser.ParseResult result = mParser.take(); in test()
/frameworks/base/services/core/java/com/android/server/
DBinderCallsStatsService.java140 private final KeyValueListParser mParser = new KeyValueListParser(','); field in BinderCallsStatsService.SettingsObserver
170 mParser.setString(Settings.Global.getString(mContext.getContentResolver(), in onChange()
175 mBinderCallsStats.setDetailedTracking(mParser.getBoolean( in onChange()
177 mBinderCallsStats.setSamplingInterval(mParser.getInt( in onChange()
180 mBinderCallsStats.setMaxBinderCallStats(mParser.getInt( in onChange()
184 mParser.getBoolean(SETTINGS_TRACK_SCREEN_INTERACTIVE_KEY, in onChange()
187 mParser.getBoolean(SETTINGS_TRACK_DIRECT_CALLING_UID_KEY, in onChange()
190 mParser.getBoolean(SETTINGS_IGNORE_BATTERY_STATUS_KEY, in onChange()
192 mBinderCallsStats.setShardingModulo(mParser.getInt( in onChange()
197 mParser.getBoolean(SETTINGS_COLLECT_LATENCY_DATA_KEY, in onChange()
[all …]
/frameworks/av/media/libstagefright/omx/1.0/
DOmx.cpp45 mParser() { in Omx()
46 (void)mParser.parseXmlFilesInSearchDirs(); in Omx()
47 (void)mParser.parseXmlPath(mParser.defaultProfilingResultsXmlPath); in Omx()
119 const auto& codec = mParser.getCodecMap().find(name.c_str()); in allocateNode()
120 if (codec == mParser.getCodecMap().cend()) { in allocateNode()
/frameworks/base/services/usb/java/com/android/server/usb/descriptors/report/
DReportCanvas.java27 private final UsbDescriptorParser mParser; field in ReportCanvas
35 mParser = parser; in ReportCanvas()
39 return mParser; in getParser()
/frameworks/base/services/core/java/com/android/server/am/
DActivityManagerConstants.java879 private final KeyValueListParser mParser = new KeyValueListParser(','); field in ActivityManagerConstants
1551 mParser.setString(setting); in updateConstants()
1559 BACKGROUND_SETTLE_TIME = mParser.getLong(KEY_BACKGROUND_SETTLE_TIME, in updateConstants()
1561 FGSERVICE_MIN_SHOWN_TIME = mParser.getLong(KEY_FGSERVICE_MIN_SHOWN_TIME, in updateConstants()
1563 FGSERVICE_MIN_REPORT_TIME = mParser.getLong(KEY_FGSERVICE_MIN_REPORT_TIME, in updateConstants()
1565 FGSERVICE_SCREEN_ON_BEFORE_TIME = mParser.getLong(KEY_FGSERVICE_SCREEN_ON_BEFORE_TIME, in updateConstants()
1567 FGSERVICE_SCREEN_ON_AFTER_TIME = mParser.getLong(KEY_FGSERVICE_SCREEN_ON_AFTER_TIME, in updateConstants()
1569 FGS_BOOT_COMPLETED_ALLOWLIST = mParser.getInt(KEY_FGS_BOOT_COMPLETED_ALLOWLIST, in updateConstants()
1571 CONTENT_PROVIDER_RETAIN_TIME = mParser.getLong(KEY_CONTENT_PROVIDER_RETAIN_TIME, in updateConstants()
1573 GC_TIMEOUT = mParser.getLong(KEY_GC_TIMEOUT, in updateConstants()
[all …]
DBroadcastConstants.java293 private final KeyValueListParser mParser = new KeyValueListParser(','); field in BroadcastConstants
339 mParser.setString(Settings.Global.getString(mResolver, mSettingsKey)); in updateSettingsConstants()
346 TIMEOUT = mParser.getLong(KEY_TIMEOUT, TIMEOUT); in updateSettingsConstants()
347 ALLOW_BG_ACTIVITY_START_TIMEOUT = mParser.getLong(KEY_ALLOW_BG_ACTIVITY_START_TIMEOUT, in updateSettingsConstants()
/frameworks/av/media/module/extractors/mpeg2/
DMPEG2TSExtractor.cpp251 mParser(new ATSParser), in MPEG2TSExtractor()
318 status_t err = mParser->setMediaCas(cas); in setMediaCas()
360 sp<AnotherPacketSource> impl = mParser->getSource(ATSParser::VIDEO); in init()
377 sp<AnotherPacketSource> impl = mParser->getSource(ATSParser::AUDIO); in init()
451 sp<AnotherPacketSource> impl = mParser->getSource(type); in init()
489 mParser->signalEOS(ERROR_END_OF_STREAM); in feedMore()
496 status_t err = mParser->feedTSPacket(packet, kTSPacketSize, &event); in feedMore()
552 int64_t timeAnchorUs = mParser->getFirstPTSTimeUs(); in estimateDurationsFromTimesUsAtEnd()
584 sp<AnotherPacketSource> src = mParser->getSource(type); in estimateDurationsFromTimesUsAtEnd()
612 sp<AnotherPacketSource> src = mParser->getSource(t); in estimateDurationsFromTimesUsAtEnd()
[all …]
/frameworks/base/cmds/uinput/src/com/android/commands/uinput/
DUinput.java38 private final EventParser mParser; field in Uinput
82 mParser = isEvemuFile(reader) ? new EvemuParser(reader) : new JsonStyleParser(reader); in Uinput()
110 while ((e = mParser.getNextEvent()) != null) { in run()
/frameworks/base/core/java/com/android/internal/os/
DBinderCallsStats.java1209 private final KeyValueListParser mParser = new KeyValueListParser(','); field in BinderCallsStats.SettingsObserver
1230 mParser.setString(Settings.Global.getString(mContext.getContentResolver(), in onChange()
1242 mParser.getBoolean(SETTINGS_IGNORE_BATTERY_STATUS_KEY, in onChange()
1245 mParser.getBoolean(SETTINGS_COLLECT_LATENCY_DATA_KEY, in onChange()
1249 configureLatencyObserver(mParser, mBinderCallsStats.getLatencyObserver()); in onChange()
1252 mParser.getBoolean(SETTINGS_ENABLED_KEY, BinderCallsStats.ENABLED_DEFAULT); in onChange()
1268 KeyValueListParser mParser, BinderLatencyObserver binderLatencyObserver) { in configureLatencyObserver() argument
1269 binderLatencyObserver.setSamplingInterval(mParser.getInt( in configureLatencyObserver()
1272 binderLatencyObserver.setShardingModulo(mParser.getInt( in configureLatencyObserver()
1276 mParser.getInt( in configureLatencyObserver()
[all …]
/frameworks/av/media/libstagefright/xmlparser/test/
DXMLParserTest.cpp78 MediaCodecsXmlParser mParser; member in XMLParseTest
359 mParser.parseXmlPath(inputFileName); in TEST_F()
360 for (const MediaCodecsXmlParser::Codec &mcodec : mParser.getCodecMap()) { in TEST_F()
405 mParser.parseXmlPath(inputFileName); in TEST_F()
407 for (auto &mRole : mParser.getRoleMap()) { in TEST_F()
444 mParser.parseXmlPath(inputFileName); in TEST_F()
445 const auto serviceAttributeMap = mParser.getServiceAttributeMap(); in TEST_F()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DNotificationSnooze.java102 private KeyValueListParser mParser; field in NotificationSnooze
115 mParser = new KeyValueListParser(','); in NotificationSnooze()
125 mParser = parser; in setKeyValueListParser()
272 mParser.setString(config); in getDefaultSnoozeOptions()
277 final int defaultSnooze = mParser.getInt(KEY_DEFAULT_SNOOZE, in getDefaultSnoozeOptions()
279 final int[] snoozeTimes = mParser.getIntArray(KEY_OPTIONS, in getDefaultSnoozeOptions()

12