Home
last modified time | relevance | path

Searched refs:mParser (Results 1 – 25 of 42) 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/apex/jobscheduler/service/java/com/android/server/tare/
DJobSchedulerEconomicPolicy.java153 private final KeyValueListParser mParser = new KeyValueListParser(','); field in JobSchedulerEconomicPolicy
221 mParser.setString(policyValuesString); in loadConstants()
226 mMinSatiatedBalanceExempted = getConstantAsCake(mParser, properties, in loadConstants()
229 mMinSatiatedBalanceOther = getConstantAsCake(mParser, properties, in loadConstants()
232 mMaxSatiatedBalance = getConstantAsCake(mParser, properties, in loadConstants()
235 mInitialSatiatedConsumptionLimit = getConstantAsCake(mParser, properties, in loadConstants()
239 getConstantAsCake(mParser, properties, in loadConstants()
244 getConstantAsCake(mParser, properties, in loadConstants()
247 getConstantAsCake(mParser, properties, in loadConstants()
251 getConstantAsCake(mParser, properties, in loadConstants()
[all …]
DAlarmManagerEconomicPolicy.java151 private final KeyValueListParser mParser = new KeyValueListParser(','); field in AlarmManagerEconomicPolicy
224 mParser.setString(policyValuesString); in loadConstants()
229 mMinSatiatedBalanceExempted = getConstantAsCake(mParser, properties, in loadConstants()
232 mMinSatiatedBalanceOther = getConstantAsCake(mParser, properties, in loadConstants()
235 mMaxSatiatedBalance = getConstantAsCake(mParser, properties, in loadConstants()
238 mInitialSatiatedConsumptionLimit = getConstantAsCake(mParser, properties, in loadConstants()
241 getConstantAsCake(mParser, properties, in loadConstants()
244 final long exactAllowWhileIdleWakeupBasePrice = getConstantAsCake(mParser, properties, in loadConstants()
250 getConstantAsCake(mParser, properties, in loadConstants()
256 getConstantAsCake(mParser, properties, in loadConstants()
[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.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.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/services/core/java/com/android/server/am/
DBroadcastConstants.java122 private final KeyValueListParser mParser = new KeyValueListParser(','); field in BroadcastConstants
156 synchronized (mParser) { in updateConstants()
158 mParser.setString(Settings.Global.getString(mResolver, mSettingsKey)); in updateConstants()
165 TIMEOUT = mParser.getLong(KEY_TIMEOUT, TIMEOUT); in updateConstants()
166 SLOW_TIME = mParser.getLong(KEY_SLOW_TIME, SLOW_TIME); in updateConstants()
167 DEFERRAL = mParser.getLong(KEY_DEFERRAL, DEFERRAL); in updateConstants()
168 DEFERRAL_DECAY_FACTOR = mParser.getFloat(KEY_DEFERRAL_DECAY_FACTOR, in updateConstants()
170 DEFERRAL_FLOOR = mParser.getLong(KEY_DEFERRAL_FLOOR, DEFERRAL_FLOOR); in updateConstants()
171 ALLOW_BG_ACTIVITY_START_TIMEOUT = mParser.getLong(KEY_ALLOW_BG_ACTIVITY_START_TIMEOUT, in updateConstants()
180 synchronized (mParser) { in dump()
DActivityManagerConstants.java704 private final KeyValueListParser mParser = new KeyValueListParser(','); field in ActivityManagerConstants
1160 mParser.setString(setting); in updateConstants()
1168 BACKGROUND_SETTLE_TIME = mParser.getLong(KEY_BACKGROUND_SETTLE_TIME, in updateConstants()
1170 FGSERVICE_MIN_SHOWN_TIME = mParser.getLong(KEY_FGSERVICE_MIN_SHOWN_TIME, in updateConstants()
1172 FGSERVICE_MIN_REPORT_TIME = mParser.getLong(KEY_FGSERVICE_MIN_REPORT_TIME, in updateConstants()
1174 FGSERVICE_SCREEN_ON_BEFORE_TIME = mParser.getLong(KEY_FGSERVICE_SCREEN_ON_BEFORE_TIME, in updateConstants()
1176 FGSERVICE_SCREEN_ON_AFTER_TIME = mParser.getLong(KEY_FGSERVICE_SCREEN_ON_AFTER_TIME, in updateConstants()
1178 CONTENT_PROVIDER_RETAIN_TIME = mParser.getLong(KEY_CONTENT_PROVIDER_RETAIN_TIME, in updateConstants()
1180 GC_TIMEOUT = mParser.getLong(KEY_GC_TIMEOUT, in updateConstants()
1182 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 …]
/frameworks/av/media/libstagefright/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/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/PackageManagerServiceTests/server/src/com/android/server/
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.cpp236 mParser(new ATSParser), in MPEG2TSExtractor()
303 status_t err = mParser->setMediaCas(cas); in setMediaCas()
345 sp<AnotherPacketSource> impl = mParser->getSource(ATSParser::VIDEO); in init()
362 sp<AnotherPacketSource> impl = mParser->getSource(ATSParser::AUDIO); in init()
436 sp<AnotherPacketSource> impl = mParser->getSource(type); in init()
474 mParser->signalEOS(ERROR_END_OF_STREAM); in feedMore()
481 status_t err = mParser->feedTSPacket(packet, kTSPacketSize, &event); in feedMore()
537 int64_t timeAnchorUs = mParser->getFirstPTSTimeUs(); in estimateDurationsFromTimesUsAtEnd()
569 sp<AnotherPacketSource> src = mParser->getSource(type); in estimateDurationsFromTimesUsAtEnd()
597 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.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/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DNotificationSnooze.java97 private KeyValueListParser mParser; field in NotificationSnooze
110 mParser = new KeyValueListParser(','); in NotificationSnooze()
121 mParser = parser; in setKeyValueListParser()
224 mParser.setString(config); in getDefaultSnoozeOptions()
229 final int defaultSnooze = mParser.getInt(KEY_DEFAULT_SNOOZE, in getDefaultSnoozeOptions()
231 final int[] snoozeTimes = mParser.getIntArray(KEY_OPTIONS, in getDefaultSnoozeOptions()

12