Home
last modified time | relevance | path

Searched refs:mParser (Results 1 – 25 of 36) 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/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/core/java/com/android/server/pm/
DSettingsXml.java163 private final TypedXmlPullParser mParser; field in SettingsXml.ReadSectionImpl
171 mParser = Xml.newFastPullParser(); in ReadSectionImpl()
172 mParser.setInput(mInput, StandardCharsets.UTF_8.name()); in ReadSectionImpl()
179 mParser = parser; in ReadSectionImpl()
184 if (mParser.getEventType() == XmlPullParser.START_TAG) { in moveToFirstTag()
190 while ((type = mParser.next()) != XmlPullParser.START_TAG in moveToFirstTag()
198 return mParser.getName(); in getName()
204 return mParser.getPositionDescription(); in getDescription()
209 return mParser.getAttributeValue(null, attrName) != null; in has()
215 return mParser.getAttributeValue(null, attrName); in getString()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/graphics/fonts/
DUpdatableFontDirTest.java145 private FakeFontFileParser mParser; field in UpdatableFontDirTest
164 mParser = new FakeFontFileParser(); in setUp()
180 mUpdatableFontFilesDir, mParser, mFakeFsverityUtil, in construct()
203 mUpdatableFontFilesDir, mParser, mFakeFsverityUtil, in construct()
207 assertThat(mParser.getRevision(dir.getPostScriptMap().get("foo"))).isEqualTo(3); in construct()
209 assertThat(mParser.getRevision(dir.getPostScriptMap().get("bar"))).isEqualTo(4); in construct()
225 mUpdatableFontFilesDir, mParser, mFakeFsverityUtil, in construct_empty()
235 mUpdatableFontFilesDir, mParser, mFakeFsverityUtil, in construct_missingFsverity()
253 mUpdatableFontFilesDir, mParser, mFakeFsverityUtil, in construct_missingFsverity()
265 mUpdatableFontFilesDir, mParser, mFakeFsverityUtil, in construct_fontNameMismatch()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DAlwaysOnDisplayPolicy.java129 private final KeyValueListParser mParser; field in AlwaysOnDisplayPolicy
136 mParser = new KeyValueListParser(','); in AlwaysOnDisplayPolicy()
168 mParser.setString(value); in update()
173 proxScreenOffDelayMs = mParser.getLong(KEY_PROX_SCREEN_OFF_DELAY_MS, in update()
175 proxCooldownTriggerMs = mParser.getLong(KEY_PROX_COOLDOWN_TRIGGER_MS, in update()
177 proxCooldownPeriodMs = mParser.getLong(KEY_PROX_COOLDOWN_PERIOD_MS, in update()
179 wallpaperFadeOutDuration = mParser.getLong(KEY_WALLPAPER_FADE_OUT_MS, in update()
181 wallpaperVisibilityDuration = mParser.getLong(KEY_WALLPAPER_VISIBILITY_MS, in update()
187 screenBrightnessArray = mParser.getIntArray(KEY_SCREEN_BRIGHTNESS_ARRAY, in update()
190 dimmingScrimArray = mParser.getIntArray(KEY_DIMMING_SCRIM_ARRAY, in update()
/frameworks/base/services/core/java/com/android/server/am/
DBroadcastConstants.java75 private final KeyValueListParser mParser = new KeyValueListParser(','); field in BroadcastConstants
109 synchronized (mParser) { in updateConstants()
111 mParser.setString(Settings.Global.getString(mResolver, mSettingsKey)); in updateConstants()
118 TIMEOUT = mParser.getLong(KEY_TIMEOUT, TIMEOUT); in updateConstants()
119 SLOW_TIME = mParser.getLong(KEY_SLOW_TIME, SLOW_TIME); in updateConstants()
120 DEFERRAL = mParser.getLong(KEY_DEFERRAL, DEFERRAL); in updateConstants()
121 DEFERRAL_DECAY_FACTOR = mParser.getFloat(KEY_DEFERRAL_DECAY_FACTOR, in updateConstants()
123 DEFERRAL_FLOOR = mParser.getLong(KEY_DEFERRAL_FLOOR, DEFERRAL_FLOOR); in updateConstants()
124 ALLOW_BG_ACTIVITY_START_TIMEOUT = mParser.getLong(KEY_ALLOW_BG_ACTIVITY_START_TIMEOUT, in updateConstants()
133 synchronized (mParser) { in dump()
DActivityManagerConstants.java524 private final KeyValueListParser mParser = new KeyValueListParser(','); field in ActivityManagerConstants
857 mParser.setString(setting); in updateConstants()
865 BACKGROUND_SETTLE_TIME = mParser.getLong(KEY_BACKGROUND_SETTLE_TIME, in updateConstants()
867 FGSERVICE_MIN_SHOWN_TIME = mParser.getLong(KEY_FGSERVICE_MIN_SHOWN_TIME, in updateConstants()
869 FGSERVICE_MIN_REPORT_TIME = mParser.getLong(KEY_FGSERVICE_MIN_REPORT_TIME, in updateConstants()
871 FGSERVICE_SCREEN_ON_BEFORE_TIME = mParser.getLong(KEY_FGSERVICE_SCREEN_ON_BEFORE_TIME, in updateConstants()
873 FGSERVICE_SCREEN_ON_AFTER_TIME = mParser.getLong(KEY_FGSERVICE_SCREEN_ON_AFTER_TIME, in updateConstants()
875 CONTENT_PROVIDER_RETAIN_TIME = mParser.getLong(KEY_CONTENT_PROVIDER_RETAIN_TIME, in updateConstants()
877 GC_TIMEOUT = mParser.getLong(KEY_GC_TIMEOUT, in updateConstants()
879 GC_MIN_INTERVAL = mParser.getLong(KEY_GC_MIN_INTERVAL, in updateConstants()
[all …]
/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/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/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 …]
DFLACExtractor.h46 FLACParser *mParser; variable
/frameworks/av/media/libstagefright/mpeg2ts/test/
DMpeg2tsUnitTest.cpp53 : mInputBuffer(nullptr), mSource(nullptr), mFpInput(nullptr), mParser(nullptr) {} in Mpeg2tsUnitTest()
87 mParser = new ATSParser(); in SetUp()
88 ASSERT_NE(mParser, nullptr) << "Unable to create ATS parser!"; in SetUp()
103 ATSParser *mParser; member in Mpeg2tsUnitTest
130 status_t err = mParser->feedTSPacket(packet, kTSPacketSize, &event); in TEST_P()
135 if (mParser->hasSource(mediaType[i])) { in TEST_P()
159 if (mParser->hasSource(currentMediaType)) { in TEST_P()
186 sp<AnotherPacketSource> packetSource = mParser->getSource(currentMediaType); in TEST_P()
/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/base/services/tests/servicestests/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/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/av/media/extractors/mpeg2/
DMPEG2TSExtractor.cpp237 mParser(new ATSParser), in MPEG2TSExtractor()
304 status_t err = mParser->setMediaCas(cas); in setMediaCas()
346 sp<AnotherPacketSource> impl = mParser->getSource(ATSParser::VIDEO); in init()
363 sp<AnotherPacketSource> impl = mParser->getSource(ATSParser::AUDIO); in init()
437 sp<AnotherPacketSource> impl = mParser->getSource(type); in init()
475 mParser->signalEOS(ERROR_END_OF_STREAM); in feedMore()
482 status_t err = mParser->feedTSPacket(packet, kTSPacketSize, &event); in feedMore()
538 int64_t timeAnchorUs = mParser->getFirstPTSTimeUs(); in estimateDurationsFromTimesUsAtEnd()
570 sp<AnotherPacketSource> src = mParser->getSource(type); in estimateDurationsFromTimesUsAtEnd()
598 sp<AnotherPacketSource> src = mParser->getSource(t); in estimateDurationsFromTimesUsAtEnd()
[all …]
/frameworks/av/media/libstagefright/xmlparser/test/
DXMLParserTest.cpp78 MediaCodecsXmlParser mParser; member in XMLParseTest
316 mParser.parseXmlPath(inputFileName); in TEST_F()
317 for (const MediaCodecsXmlParser::Codec &mcodec : mParser.getCodecMap()) { in TEST_F()
362 mParser.parseXmlPath(inputFileName); in TEST_F()
364 for (auto &mRole : mParser.getRoleMap()) { in TEST_F()
401 mParser.parseXmlPath(inputFileName); in TEST_F()
402 const auto serviceAttributeMap = mParser.getServiceAttributeMap(); in TEST_F()
/frameworks/base/core/java/com/android/internal/os/
DBinderCallsStats.java1198 private final KeyValueListParser mParser = new KeyValueListParser(','); field in BinderCallsStats.SettingsObserver
1219 mParser.setString(Settings.Global.getString(mContext.getContentResolver(), in onChange()
1231 mParser.getBoolean(SETTINGS_IGNORE_BATTERY_STATUS_KEY, in onChange()
1234 mParser.getBoolean(SETTINGS_COLLECT_LATENCY_DATA_KEY, in onChange()
1238 configureLatencyObserver(mParser, mBinderCallsStats.getLatencyObserver()); in onChange()
1241 mParser.getBoolean(SETTINGS_ENABLED_KEY, BinderCallsStats.ENABLED_DEFAULT); in onChange()
1257 KeyValueListParser mParser, BinderLatencyObserver binderLatencyObserver) { in configureLatencyObserver() argument
1258 binderLatencyObserver.setSamplingInterval(mParser.getInt( in configureLatencyObserver()
1261 binderLatencyObserver.setShardingModulo(mParser.getInt( in configureLatencyObserver()
1265 mParser.getInt( in configureLatencyObserver()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DNotificationSnooze.java95 private KeyValueListParser mParser; field in NotificationSnooze
108 mParser = new KeyValueListParser(','); in NotificationSnooze()
119 mParser = parser; in setKeyValueListParser()
221 mParser.setString(config); in getDefaultSnoozeOptions()
226 final int defaultSnooze = mParser.getInt(KEY_DEFAULT_SNOOZE, in getDefaultSnoozeOptions()
228 final int[] snoozeTimes = mParser.getIntArray(KEY_OPTIONS, in getDefaultSnoozeOptions()
/frameworks/base/services/core/java/com/android/server/graphics/fonts/
DUpdatableFontDir.java124 private final FontFileParser mParser; field in UpdatableFontDir
153 mParser = parser; in UpdatableFontDir()
339 fontFileName = mParser.buildFontFileName(tempNewFontFile); in installFontFile()
368 mParser.tryToCreateTypeface(fontFileInfo.getFile()); in installFontFile()
489 psName = mParser.getPostScriptName(file); in validateFontFile()
506 return mParser.getRevision(file); in getFontRevision()
/frameworks/layoutlib/bridge/src/android/util/
DBridgeXmlPullAttributes.java70 mParser, context.getLayoutlibCallback().getImplicitNamespaces()); in BridgeXmlPullAttributes()
101 String ns = mParser.getAttributeNamespace(index); in getAttributeNameResource()
266 mParser.getAttributeNamespace(index), getAttributeName(index), defaultValue); in getAttributeIntValue()

12