/frameworks/base/tools/powermodel/src/com/android/powermodel/component/ |
D | ModemBatteryStatsReader.java | 30 public static List<ComponentActivity> createActivities(RawBatteryStats bs) { in createActivities() argument 34 createGlobal(result, bs); in createActivities() 37 createApps(result, bs); in createActivities() 40 createRemainder(result, bs); in createActivities() 45 private static void createGlobal(List<ComponentActivity> result, RawBatteryStats bs) { in createGlobal() argument 49 final RawBatteryStats.GlobalNetwork gn = bs.getSingle(RawBatteryStats.GlobalNetwork.class); in createGlobal() 50 final RawBatteryStats.Misc misc = bs.getSingle(RawBatteryStats.Misc.class); in createGlobal() 63 private static void createApps(List<ComponentActivity> result, RawBatteryStats bs) { in createApps() argument 64 for (AttributionKey key: bs.getApps()) { in createApps() 67 = bs.getSingle(RawBatteryStats.Network.class, uid); in createApps() [all …]
|
/frameworks/base/core/tests/coretests/src/android/app/backup/ |
D | FullBackupTest.java | 64 FullBackup.BackupScheme bs = FullBackup.getBackupSchemeForTest(mContext); in testparseBackupSchemeFromXml_onlyInclude() local 65 bs.parseBackupSchemeFromXmlLocked(mXpp, excludesSet, includeMap); in testparseBackupSchemeFromXml_onlyInclude() 86 FullBackup.BackupScheme bs = FullBackup.getBackupSchemeForTest(mContext); in testparseBackupSchemeFromXml_onlyIncludeRequireEncryptionFlag() local 87 bs.parseBackupSchemeFromXmlLocked(mXpp, excludesSet, includeMap); in testparseBackupSchemeFromXml_onlyIncludeRequireEncryptionFlag() 111 FullBackup.BackupScheme bs = FullBackup.getBackupSchemeForTest(mContext); in testParseBackupSchemeFromXml_onlyIncludeRequireFakeEncryptionFlag() local 112 bs.parseBackupSchemeFromXmlLocked(mXpp, excludesSet, includeMap); in testParseBackupSchemeFromXml_onlyIncludeRequireFakeEncryptionFlag() 132 FullBackup.BackupScheme bs = FullBackup.getBackupSchemeForTest(mContext); in testparseBackupSchemeFromXml_onlyIncludeRequireD2DFlag() local 133 bs.parseBackupSchemeFromXmlLocked(mXpp, excludesSet, includeMap); in testparseBackupSchemeFromXml_onlyIncludeRequireD2DFlag() 157 FullBackup.BackupScheme bs = FullBackup.getBackupSchemeForTest(mContext); in testparseBackupSchemeFromXml_onlyIncludeRequireEncryptionAndD2DFlags() local 158 bs.parseBackupSchemeFromXmlLocked(mXpp, excludesSet, includeMap); in testparseBackupSchemeFromXml_onlyIncludeRequireEncryptionAndD2DFlags() [all …]
|
/frameworks/native/opengl/libagl/ |
D | mipmap.cpp | 53 int bs = base->stride; in buildAPyramid() local 62 size_t offset = (y*2) * bs; in buildAPyramid() 66 uint32_t p01 = src[offset+bs]; in buildAPyramid() 67 uint32_t p11 = src[offset+bs+1]; in buildAPyramid() 84 size_t offset = (y*2) * bs; in buildAPyramid() 88 uint32_t p01 = src[offset+bs]; in buildAPyramid() 89 uint32_t p11 = src[offset+bs+1]; in buildAPyramid() 104 size_t offset = (y*2) * bs; in buildAPyramid() 108 uint32_t p01 = src[offset+bs]; in buildAPyramid() 109 uint32_t p11 = src[offset+bs+1]; in buildAPyramid() [all …]
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/ |
D | vop.cpp | 511 BitstreamEncVideo *bs, tmp; in EncodeVideoPacketHeader() local 519 bs = &tmp; in EncodeVideoPacketHeader() 522 bs = video->bitstream1; in EncodeVideoPacketHeader() 526 BitstreamPutGT16Bits(bs, 17, 1); /* resync_marker I_VOP */ in EncodeVideoPacketHeader() 530 BitstreamPutGT16Bits(bs, 16 + fcode, 1); /* resync_marker P_VOP */ in EncodeVideoPacketHeader() 538 BitstreamPutGT16Bits(bs, 16 + fcode, 1); /* resync_marker B_VOP */ in EncodeVideoPacketHeader() 541 BitstreamPutBits(bs, currVol->nBitsForMBID, MB_number); /* resync_marker */ in EncodeVideoPacketHeader() 542 BitstreamPutBits(bs, 5, quant_scale); /* quant_scale */ in EncodeVideoPacketHeader() 543 BitstreamPut1Bits(bs, 0); /* header_extension_code = 0 */ in EncodeVideoPacketHeader() 549 BitstreamPut1Bits(bs, 1); in EncodeVideoPacketHeader() [all …]
|
D | vlc_encode.cpp | 172 Void WriteMVcomponent(Int f_code, Int dmv, BitstreamEncVideo *bs); 1432 Void BlockCodeCoeff_RVLC(RunLevelBlock *RLB, BitstreamEncVideo *bs, Int j_start, Int j_stop, UChar … in BlockCodeCoeff_RVLC() argument 1451 length = PutCoeff_Intra_RVLC(run, level, bs); in BlockCodeCoeff_RVLC() 1453 length = PutCoeff_Inter_RVLC(run, level, bs); in BlockCodeCoeff_RVLC() 1460 BitstreamPutBits(bs, 5 + 1, 2); /* ESCAPE + Not Last Coefficient */ in BlockCodeCoeff_RVLC() 1462 BitstreamPutBits(bs, 6 + 1, (run << 1) | 1); /* RUN + MARKER BIT*/ in BlockCodeCoeff_RVLC() 1464 BitstreamPutGT8Bits(bs, 11, level); /* LEVEL */ in BlockCodeCoeff_RVLC() 1465 BitstreamPutBits(bs, 1 + 4, 16); /* MARKER BIT */ in BlockCodeCoeff_RVLC() 1468 BitstreamPutBits(bs, 1, RLB->s[i]); /* SIGN BIT */ in BlockCodeCoeff_RVLC() 1478 length = PutCoeff_Intra_RVLC_Last(run, level, bs); in BlockCodeCoeff_RVLC() [all …]
|
D | vlc_encode.h | 40 Void MB_CodeCoeff(VideoEncData *video, BitstreamEncVideo *bs); 41 Void BlockCodeCoeff(RunLevelBlock *RLB, BitstreamEncVideo *bs, Int j_start, UChar Mode, Int rvlc, I…
|
D | mp4enc_lib.h | 198 …void BlockCodeCoeff_ShortHeader(RunLevelBlock *RLB, BitstreamEncVideo *bs, Int j_start, Int j_stop… 199 …void BlockCodeCoeff_RVLC(RunLevelBlock *RLB, BitstreamEncVideo *bs, Int j_start, Int j_stop, UChar… 200 …void BlockCodeCoeff_Normal(RunLevelBlock *RLB, BitstreamEncVideo *bs, Int j_start, Int j_stop, UCh…
|
/frameworks/base/core/java/com/android/internal/os/ |
D | BatteryStatsHelper.java | 481 BatterySipper bs = mUsageList.get(i); in refreshStats() local 482 bs.computeMobilemspp(); in refreshStats() 483 if (bs.mobilemspp != 0) { in refreshStats() 484 mMobilemsppList.add(bs); in refreshStats() 491 BatterySipper bs = user.get(j); in refreshStats() local 492 bs.computeMobilemspp(); in refreshStats() 493 if (bs.mobilemspp != 0) { in refreshStats() 494 mMobilemsppList.add(bs); in refreshStats() 529 BatterySipper bs = new BatterySipper(DrainType.UNACCOUNTED, null, amount); in refreshStats() local 532 int index = Collections.binarySearch(mUsageList, bs); in refreshStats() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/euicc/asn1/ |
D | IccUtilsTest.java | 99 byte[] bs = new byte[] {0, 0, 0, 0, 0, 0}; in testUnsignedToBytes() 100 assertEquals(4, IccUtils.unsignedIntToBytes(0x7F12FE34, bs, 2)); in testUnsignedToBytes() 101 assertArrayEquals(new byte[] {0, 0, 0x7F, 0x12, -2, 0x34}, bs); in testUnsignedToBytes() 114 byte[] bs = new byte[] {0, 0, 0, 0, 0, 0}; in testSignedToBytes() 115 assertEquals(4, IccUtils.signedIntToBytes(0x801234, bs, 2)); in testSignedToBytes() 116 assertArrayEquals(new byte[] {0, 0, 0, -128, 0x12, 0x34}, bs); in testSignedToBytes() 122 byte[] bs = new byte[] {0, 0, 0, 0, 0, 0}; in testUnsignedIntToBytes_NoEnoughSpace() 123 IccUtils.unsignedIntToBytes(0x7F12FE34, bs, 3); in testUnsignedIntToBytes_NoEnoughSpace() 129 byte[] bs = new byte[] {0, 0, 0, 0, 0, 0}; in testSignedIntToBytes_NoEnoughSpace() 130 IccUtils.signedIntToBytes(0x801234, bs, 3); in testSignedIntToBytes_NoEnoughSpace()
|
/frameworks/base/tools/powermodel/test/com/android/powermodel/ |
D | RawBatteryStatsTest.java | 50 final RawBatteryStats bs = RawBatteryStats.parse(is); in testVersion() local 51 final List<RawBatteryStats.Record> records = bs.getRecords(); in testVersion() 54 Assert.assertEquals(0, bs.getWarnings().size()); in testVersion() 71 final RawBatteryStats bs = RawBatteryStats.parse(is); in testUid() local 72 final List<RawBatteryStats.Record> records = bs.getRecords(); in testUid() 82 final RawBatteryStats bs = RawBatteryStats.parse(is); in testVarargs() local 83 final List<RawBatteryStats.Record> records = bs.getRecords(); in testVarargs()
|
/frameworks/native/libs/binder/ |
D | BufferedTextOutput.cpp | 272 BufferState* bs = ts->states[mIndex].get(); in getBuffer() local 273 if (bs != nullptr && bs->seq == mSeq) return bs; in getBuffer() 276 bs = ts->states[mIndex].get(); in getBuffer() 277 if (bs != nullptr) return bs; in getBuffer()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/display/ |
D | DisplayManagerServiceTest.java | 128 DisplayManagerService.BinderService bs = displayManager.new BinderService(); in testCreateVirtualDisplay_sentToInputManager() local 138 int displayId = bs.createVirtualDisplay(mMockAppToken /* callback */, in testCreateVirtualDisplay_sentToInputManager() 197 DisplayManagerService.BinderService bs = displayManager.new BinderService(); in testPhysicalViewports() local 201 final int displayIds[] = bs.getDisplayIds(); in testPhysicalViewports() 204 DisplayInfo info = bs.getDisplayInfo(displayId); in testPhysicalViewports() 235 DisplayManagerService.BinderService bs = displayManager.new BinderService(); in testCreateVirtualDisplayRotatesWithContent() local 244 int displayId = bs.createVirtualDisplay(mMockAppToken /* callback */, in testCreateVirtualDisplayRotatesWithContent()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | BlackFrame.java | 107 BlackSurface bs = mBlackSurfaces[i]; in printTo() local 109 pw.print(": "); pw.print(bs.surface); in printTo() 110 pw.print(" left="); pw.print(bs.left); in printTo() 111 pw.print(" top="); pw.println(bs.top); in printTo()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | HealthStatsBatteryStatsWriter.java | 50 public void writeUid(HealthStatsWriter uidWriter, BatteryStats bs, BatteryStats.Uid uid) { in writeUid() argument 66 bs.computeBatteryRealtime(mNowRealtimeMs*1000, STATS_SINCE_CHARGED)/1000); in writeUid() 70 bs.computeBatteryUptime(mNowUptimeMs*1000, STATS_SINCE_CHARGED)/1000); in writeUid() 74 bs.computeBatteryScreenOffRealtime( in writeUid() 79 bs.computeBatteryScreenOffUptime(mNowUptimeMs*1000, STATS_SINCE_CHARGED)/1000); in writeUid()
|
/frameworks/base/core/java/android/os/ |
D | BatteryStats.java | 3990 final BatterySipper bs = sippers.get(i); in dumpCheckinLocked() local 3992 switch (bs.drainType) { in dumpCheckinLocked() 4018 uid = bs.uidObj.getUid(); in dumpCheckinLocked() 4022 uid = UserHandle.getUid(bs.userId, 0); in dumpCheckinLocked() 4041 BatteryStatsHelper.makemAh(bs.totalPowerMah), in dumpCheckinLocked() 4042 bs.shouldHide ? 1 : 0, in dumpCheckinLocked() 4043 BatteryStatsHelper.makemAh(bs.screenPowerMah), in dumpCheckinLocked() 4044 BatteryStatsHelper.makemAh(bs.proportionalSmearMah)); in dumpCheckinLocked() 5139 final BatterySipper bs = sippers.get(i); in dumpLocked() 5141 switch (bs.drainType) { in dumpLocked() [all …]
|
/frameworks/base/services/core/java/com/android/server/ |
D | AlarmManagerService.java | 2463 BroadcastStats bs = uidStats.valueAt(ip); in dumpImpl() local 2464 for (int is=0; is<bs.filterStats.size(); is++) { in dumpImpl() 2465 FilterStats fs = bs.filterStats.valueAt(is); in dumpImpl() 2507 BroadcastStats bs = uidStats.valueAt(ip); in dumpImpl() local 2509 if (bs.nesting > 0) pw.print("*ACTIVE* "); in dumpImpl() 2510 UserHandle.formatUid(pw, bs.mUid); in dumpImpl() 2512 pw.print(bs.mPackageName); in dumpImpl() 2513 pw.print(" "); TimeUtils.formatDuration(bs.aggregateTime, pw); in dumpImpl() 2514 pw.print(" running, "); pw.print(bs.numWakeup); in dumpImpl() 2517 for (int is=0; is<bs.filterStats.size(); is++) { in dumpImpl() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/net/watchlist/ |
D | WatchlistConfigTests.java | 132 ByteArrayOutputStream bs = new ByteArrayOutputStream(2048); in testWatchlistConfig_testDumpDoesNotCrash() local 133 PrintWriter pw = new PrintWriter(bs); in testWatchlistConfig_testDumpDoesNotCrash()
|
/frameworks/base/services/core/java/com/android/server/stats/ |
D | StatsCompanionService.java | 884 BatteryStatsInternal bs = LocalServices.getService(BatteryStatsInternal.class); in pullWifiBytesTransfer() local 885 String[] ifaces = bs.getWifiIfaces(); in pullWifiBytesTransfer() 908 BatteryStatsInternal bs = LocalServices.getService(BatteryStatsInternal.class); in pullWifiBytesTransferByFgBg() local 909 String[] ifaces = bs.getWifiIfaces(); in pullWifiBytesTransferByFgBg() 932 BatteryStatsInternal bs = LocalServices.getService(BatteryStatsInternal.class); in pullMobileBytesTransfer() local 933 String[] ifaces = bs.getMobileIfaces(); in pullMobileBytesTransfer() 972 BatteryStatsInternal bs = LocalServices.getService(BatteryStatsInternal.class); in pullMobileBytesTransferByFgBg() local 973 String[] ifaces = bs.getMobileIfaces(); in pullMobileBytesTransferByFgBg() 1790 for (BatterySipper bs : sippers) { in pullDeviceCalculatedPowerBlameUid() 1791 if (bs.drainType != bs.drainType.APP) { in pullDeviceCalculatedPowerBlameUid() [all …]
|
/frameworks/compile/mclinker/lib/Support/ |
D | Demangle.cpp | 44 arena<bs> a; in isCtorOrDtor()
|
/frameworks/av/media/libstagefright/rtsp/ |
D | AMPEG4AudioAssembler.cpp | 233 ABitReader bs(dataStart, (totalNumBits + 7) / 8); in parseAudioSpecificConfig() local 242 bs.skipBits(8 - (bitpos & 7)); in parseAudioSpecificConfig() 247 *dstPtr++ = bs.getBits(8); in parseAudioSpecificConfig()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiVendorHal.java | 667 for (WifiNative.BucketSettings bs : settings.buckets) { in CurrentBackgroundScan() 668 param.buckets.add(makeStaBackgroundScanBucketParametersFromBucketSettings(bs)); in CurrentBackgroundScan() 682 makeStaBackgroundScanBucketParametersFromBucketSettings(WifiNative.BucketSettings bs) { in makeStaBackgroundScanBucketParametersFromBucketSettings() argument 684 pa.bucketIdx = bs.bucket; in makeStaBackgroundScanBucketParametersFromBucketSettings() 685 pa.band = makeWifiBandFromFrameworkBand(bs.band); in makeStaBackgroundScanBucketParametersFromBucketSettings() 686 if (bs.channels != null) { in makeStaBackgroundScanBucketParametersFromBucketSettings() 687 for (WifiNative.ChannelSettings cs : bs.channels) { in makeStaBackgroundScanBucketParametersFromBucketSettings() 691 pa.periodInMs = bs.period_ms; in makeStaBackgroundScanBucketParametersFromBucketSettings() 692 pa.eventReportScheme = makeReportSchemeFromBucketSettingsReportEvents(bs.report_events); in makeStaBackgroundScanBucketParametersFromBucketSettings() 693 pa.exponentialMaxPeriodInMs = bs.max_period_ms; in makeStaBackgroundScanBucketParametersFromBucketSettings() [all …]
|
/frameworks/base/tools/obbtool/ |
D | mkobb.sh | 221 ${DDBIN} if=/dev/zero of=${tempfile} bs=${BLOCK_SIZE} count=$((${block_count} + ${SLOP})) > /dev/nu…
|
/frameworks/base/core/java/android/app/backup/ |
D | BackupAgent.java | 835 FullBackup.BackupScheme bs = FullBackup.getBackupScheme(this); in isFileEligibleForRestore() local 836 if (!bs.isFullBackupContentEnabled()) { in isFileEligibleForRestore() 849 includes = bs.maybeParseAndGetCanonicalIncludePaths(); in isFileEligibleForRestore() 850 excludes = bs.maybeParseAndGetCanonicalExcludePaths(); in isFileEligibleForRestore()
|
/frameworks/base/tools/powermodel/src/com/android/powermodel/ |
D | RawBatteryStats.java | 774 Record create(RawBatteryStats bs, int dumpsysVersion, int lineNumber, in create() argument 817 bs.addWarning(lineNumber, WarningId.BAD_FIELD_TYPE, fieldValues, in create() 829 bs.addWarning(lineNumber, WarningId.TOO_MANY_FIELDS, fieldValues, in create() 843 bs.addWarning(lineNumber, WarningId.NOT_ENOUGH_FIELDS, fieldValues, in create()
|
/frameworks/base/core/java/android/nfc/ |
D | NdefRecord.java | 1054 private static StringBuilder bytesToString(byte[] bs) { in bytesToString() argument 1056 for (byte b : bs) { in bytesToString()
|