Home
last modified time | relevance | path

Searched refs:pis (Results 1 – 11 of 11) sorted by relevance

/frameworks/native/libs/binder/
DProcessInfoService.cpp32 sp<IProcessInfoService> pis; in getProcessStatesImpl() local
34 pis = mProcessInfoService; in getProcessStatesImpl()
39 if (pis != nullptr) { in getProcessStatesImpl()
40 err = pis->getProcessStatesFromPids(length, /*in*/ pids, /*out*/ states); in getProcessStatesImpl()
42 if (IInterface::asBinder(pis)->isBinderAlive()) return err; in getProcessStatesImpl()
47 if (pis == mProcessInfoService) { in getProcessStatesImpl()
50 pis = mProcessInfoService; in getProcessStatesImpl()
64 sp<IProcessInfoService> pis; in getProcessStatesScoresImpl() local
66 pis = mProcessInfoService; in getProcessStatesScoresImpl()
71 if (pis != nullptr) { in getProcessStatesScoresImpl()
[all …]
/frameworks/base/services/core/java/com/android/server/powerstats/
DProtoStreamUtils.java159 final ProtoInputStream pis = new ProtoInputStream(new ByteArrayInputStream(data)); in unpackProtoMessage() local
164 int nextField = pis.nextField(); in unpackProtoMessage()
169 pis.start(PowerStatsServiceResidencyProto.STATE_RESIDENCY_RESULT); in unpackProtoMessage()
170 stateResidencyResultList.add(unpackStateResidencyResultProto(pis)); in unpackProtoMessage()
171 pis.end(token); in unpackProtoMessage()
177 + ProtoUtils.currentFieldToString(pis)); in unpackProtoMessage()
181 + ProtoUtils.currentFieldToString(pis)); in unpackProtoMessage()
186 private static StateResidencyResult unpackStateResidencyResultProto(ProtoInputStream pis) in unpackStateResidencyResultProto() argument
193 switch (pis.nextField()) { in unpackStateResidencyResultProto()
195 stateResidencyResult.id = pis.readInt(StateResidencyResultProto.ID); in unpackStateResidencyResultProto()
[all …]
DPowerStatsLogger.java153 final ProtoInputStream pis = in writeMeterDataToFile()
194 final ProtoInputStream pis = in writeModelDataToFile()
235 final ProtoInputStream pis = in writeResidencyDataToFile()
/frameworks/base/services/companion/java/com/android/server/companion/datatransfer/contextsync/
DCrossDeviceSyncController.java441 final ProtoInputStream pis = new ProtoInputStream(data); in processTelecomDataFromSync() local
444 while (pis.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in processTelecomDataFromSync()
445 switch (pis.getFieldNumber()) { in processTelecomDataFromSync()
447 version = pis.readInt(ContextSyncMessage.VERSION); in processTelecomDataFromSync()
452 final long telecomToken = pis.start(ContextSyncMessage.TELECOM); in processTelecomDataFromSync()
453 while (pis.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in processTelecomDataFromSync()
454 if (pis.getFieldNumber() == (int) Telecom.CALLS) { in processTelecomDataFromSync()
455 final long callsToken = pis.start(Telecom.CALLS); in processTelecomDataFromSync()
456 callMetadataSyncData.addCall(processCallDataFromSync(pis)); in processTelecomDataFromSync()
457 pis.end(callsToken); in processTelecomDataFromSync()
[all …]
/frameworks/base/core/java/com/android/internal/protolog/
DProtoLogViewerConfigReader.java62 final ProtoInputStream pis = mViewerConfigInputStreamProvider.getInputStream(); in doLoadViewerConfig() local
64 while (pis.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in doLoadViewerConfig()
65 if (pis.getFieldNumber() == (int) MESSAGES) { in doLoadViewerConfig()
66 final long inMessageToken = pis.start(MESSAGES); in doLoadViewerConfig()
70 while (pis.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in doLoadViewerConfig()
71 switch (pis.getFieldNumber()) { in doLoadViewerConfig()
73 messageId = pis.readLong(MESSAGE_ID); in doLoadViewerConfig()
76 message = pis.readString(MESSAGE); in doLoadViewerConfig()
91 pis.end(inMessageToken); in doLoadViewerConfig()
DPerfettoProtoLogImpl.java169 ProtoInputStream pis = mViewerConfigInputStreamProvider.getInputStream(); in dumpTransitionTraceConfig() local
171 if (pis == null) { in dumpTransitionTraceConfig()
183 while (pis.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in dumpTransitionTraceConfig()
184 if (pis.getFieldNumber() == (int) MESSAGES) { in dumpTransitionTraceConfig()
185 writeViewerConfigMessage(pis, os); in dumpTransitionTraceConfig()
188 if (pis.getFieldNumber() == (int) GROUPS) { in dumpTransitionTraceConfig()
189 writeViewerConfigGroup(pis, os); in dumpTransitionTraceConfig()
201 ProtoInputStream pis, ProtoOutputStream os) throws IOException { in writeViewerConfigGroup() argument
202 final long inGroupToken = pis.start(GROUPS); in writeViewerConfigGroup()
205 while (pis.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in writeViewerConfigGroup()
[all …]
/frameworks/base/services/core/java/com/android/server/pm/
DGentleUpdateHelper.java69 var pis = (PackageInstallerService) ActivityThread.getPackageManager() in onStartJob() local
71 var helper = pis.getGentleUpdateHelper(); in onStartJob()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/alarm/
DAlarmManagerServiceTest.java1446 final PendingIntent[] pis = new PendingIntent[numAlarms];
1448 pis[i] = getNewMockPendingIntent();
1449 setTestAlarm(ELAPSED_REALTIME, mNowElapsedTest + i + 5, pis[i]);
1453 mService.removeLocked(pis[i], null, REMOVE_REASON_UNDEFINED);
1512 final PendingIntent[] pis = new PendingIntent[numAlarms];
1514 pis[i] = getNewMockPendingIntent();
1515 setTestAlarm(ELAPSED_REALTIME, mNowElapsedTest + i + 5, pis[i]);
1528 verify(pis[i]).send(eq(mMockContext), eq(0), any(Intent.class), any(),
1565 final PendingIntent[] pis = new PendingIntent[numAlarms];
1567 pis[i] = getNewMockPendingIntent();
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/usage/
DAppStandbyControllerTests.java424 PackageInfo pis = new PackageInfo(); in setupPm() local
425 pis.activities = new ActivityInfo[]{mock(ActivityInfo.class)}; in setupPm()
426 pis.applicationInfo = new ApplicationInfo(); in setupPm()
427 pis.applicationInfo.uid = UID_SYSTEM_HEADFULL; in setupPm()
428 pis.applicationInfo.flags = ApplicationInfo.FLAG_SYSTEM; in setupPm()
429 pis.packageName = PACKAGE_SYSTEM_HEADFULL; in setupPm()
430 packages.add(pis); in setupPm()
468 frontDoorActivity.activityInfo.packageName = pis.packageName; in setupPm()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DIccSmsInterfaceManager.java1539 private void returnUnspecifiedFailure(List<PendingIntent> pis) { in returnUnspecifiedFailure() argument
1540 if (pis == null) { in returnUnspecifiedFailure()
1543 for (PendingIntent pi : pis) { in returnUnspecifiedFailure()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/app/
DGameManagerServiceTests.java1703 final PackageInfo[] pis = new PackageInfo[3]; in mockInterventionListForMultipleUsers() local
1709 pis[i] = new PackageInfo(); in mockInterventionListForMultipleUsers()
1710 pis[i].packageName = packageNames[i]; in mockInterventionListForMultipleUsers()
1711 pis[i].applicationInfo = applicationInfos[i]; in mockInterventionListForMultipleUsers()
1716 userOnePackages.add(pis[1]); in mockInterventionListForMultipleUsers()
1717 userTwoPackages.add(pis[0]); in mockInterventionListForMultipleUsers()
1718 userTwoPackages.add(pis[2]); in mockInterventionListForMultipleUsers()