/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 | 66 FullBackup.BackupScheme bs = FullBackup.getBackupSchemeForTest(mContext); in testparseBackupSchemeFromXml_onlyInclude() local 67 bs.parseBackupSchemeFromXmlLocked(mXpp, excludesSet, includeMap); in testparseBackupSchemeFromXml_onlyInclude() 88 FullBackup.BackupScheme bs = FullBackup.getBackupSchemeForTest(mContext); in testparseBackupSchemeFromXml_onlyIncludeRequireEncryptionFlag() local 89 bs.parseBackupSchemeFromXmlLocked(mXpp, excludesSet, includeMap); in testparseBackupSchemeFromXml_onlyIncludeRequireEncryptionFlag() 113 FullBackup.BackupScheme bs = FullBackup.getBackupSchemeForTest(mContext); in testParseBackupSchemeFromXml_onlyIncludeRequireFakeEncryptionFlag() local 114 bs.parseBackupSchemeFromXmlLocked(mXpp, excludesSet, includeMap); in testParseBackupSchemeFromXml_onlyIncludeRequireFakeEncryptionFlag() 134 FullBackup.BackupScheme bs = FullBackup.getBackupSchemeForTest(mContext); in testparseBackupSchemeFromXml_onlyIncludeRequireD2DFlag() local 135 bs.parseBackupSchemeFromXmlLocked(mXpp, excludesSet, includeMap); in testparseBackupSchemeFromXml_onlyIncludeRequireD2DFlag() 159 FullBackup.BackupScheme bs = FullBackup.getBackupSchemeForTest(mContext); in testparseBackupSchemeFromXml_onlyIncludeRequireEncryptionAndD2DFlags() local 160 bs.parseBackupSchemeFromXmlLocked(mXpp, excludesSet, includeMap); in testparseBackupSchemeFromXml_onlyIncludeRequireEncryptionAndD2DFlags() [all …]
|
/frameworks/av/media/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/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 | 254 BufferState* bs = ts.states[mIndex].get(); in getBuffer() local 255 if (bs != nullptr && bs->seq == mSeq) return bs; in getBuffer() 258 bs = ts.states[mIndex].get(); in getBuffer() 259 if (bs != nullptr) return bs; in getBuffer()
|
/frameworks/av/media/libaudioclient/ |
D | AudioEffect.cpp | 336 Status bs; in setEnabled() local 340 bs = mIEffect->enable(&status); in setEnabled() 343 bs = mIEffect->disable(&status); in setEnabled() 345 if (!bs.isOk()) { in setEnabled() 346 status = statusTFromBinderStatus(bs); in setEnabled() 385 Status bs = mIEffect->command(cmdCode, data, *replySize, &response, &status); in command() local 386 if (!bs.isOk()) { in command() 387 status = statusTFromBinderStatus(bs); in command() 429 Status bs = mIEffect->command(EFFECT_CMD_SET_PARAM, in setParameter() local 434 if (!bs.isOk()) { in setParameter() [all …]
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | BlackFrame.java | 76 BlackSurface bs = mBlackSurfaces[i]; in printTo() local 78 pw.print(": "); pw.print(bs.surface); in printTo() 79 pw.print(" left="); pw.print(bs.left); in printTo() 80 pw.print(" top="); pw.println(bs.top); in printTo()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/display/ |
D | DisplayManagerServiceTest.java | 210 DisplayManagerService.BinderService bs = displayManager.new BinderService(); in testCreateVirtualDisplay_sentToInputManager() local 224 int displayId = bs.createVirtualDisplay(builder.build(), mMockAppToken /* callback */, in testCreateVirtualDisplay_sentToInputManager() 286 DisplayManagerService.BinderService bs = displayManager.new BinderService(); in testPhysicalViewports() local 290 final int[] displayIds = bs.getDisplayIds(/* includeDisabled= */ true); in testPhysicalViewports() 299 DisplayInfo info = bs.getDisplayInfo(displayIds[i]); in testPhysicalViewports() 322 DisplayInfo displayInfo = bs.getDisplayInfo(viewport.displayId); in testPhysicalViewports() 337 DisplayManagerService.BinderService bs = displayManager.new BinderService(); in testCreateVirtualDisplayRotatesWithContent() local 350 int displayId = bs.createVirtualDisplay(builder.build(), mMockAppToken /* callback */, in testCreateVirtualDisplayRotatesWithContent() 404 DisplayManagerService.BinderService bs = displayManager.new BinderService(); in testShouldNotifyChangeWhenNonOverrideDisplayInfoChanged() local 405 int displayId = getDisplayIdForDisplayDevice(displayManager, bs, displayDevice); in testShouldNotifyChangeWhenNonOverrideDisplayInfoChanged() [all …]
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/display/ |
D | BrightnessSynchronizerTest.java | 204 BrightnessSynchronizer bs = new BrightnessSynchronizer(mContext, mTestLooper.getLooper(), in start() local 206 bs.startSynchronizing(); in start() 214 return bs; in start()
|
/frameworks/base/core/tests/coretests/jni/ |
D | NativePowerManagerTest.cpp | 224 BatterySaverPolicyConfig bs = BatterySaverPolicyConfig( in nativeObtainBSPConfigParcel() local 247 status_t err = bs.writeToParcel(parcel); in nativeObtainBSPConfigParcel() 258 BatterySaverPolicyConfig bs = {}; in nativeUnparcelAndVerifyBSPConfig() local 260 status_t err = bs.readFromParcel(parcel); in nativeUnparcelAndVerifyBSPConfig() 295 if (bs == bsOrig) { in nativeUnparcelAndVerifyBSPConfig()
|
/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/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/compile/mclinker/lib/Support/ |
D | Demangle.cpp | 44 arena<bs> a; in isCtorOrDtor()
|
/frameworks/base/apex/jobscheduler/service/java/com/android/server/alarm/ |
D | AlarmManagerService.java | 3482 BroadcastStats bs = uidStats.valueAt(ip); in dumpImpl() local 3483 for (int is = 0; is < bs.filterStats.size(); is++) { in dumpImpl() 3484 FilterStats fs = bs.filterStats.valueAt(is); in dumpImpl() 3534 BroadcastStats bs = uidStats.valueAt(ip); in dumpImpl() local 3535 if (bs.nesting > 0) pw.print("*ACTIVE* "); in dumpImpl() 3536 UserHandle.formatUid(pw, bs.mUid); in dumpImpl() 3538 pw.print(bs.mPackageName); in dumpImpl() 3540 TimeUtils.formatDuration(bs.aggregateTime, pw); in dumpImpl() 3542 pw.print(bs.numWakeup); in dumpImpl() 3546 for (int is = 0; is < bs.filterStats.size(); is++) { in dumpImpl() [all …]
|
/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/base/tools/obbtool/ |
D | mkobb.sh | 221 ${DDBIN} if=/dev/zero of=${tempfile} bs=${BLOCK_SIZE} count=$((${block_count} + ${SLOP})) > /dev/nu…
|
/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/tests/coretests/src/android/os/ |
D | PowerManagerTest.java | 61 private native Parcel nativeObtainBSPConfigParcel(BatterySaverPolicyConfig bs, in nativeObtainBSPConfigParcel() argument 63 private native void nativeUnparcelAndVerifyBSPConfig(Parcel parcel, BatterySaverPolicyConfig bs, in nativeUnparcelAndVerifyBSPConfig() argument
|
/frameworks/base/core/java/android/app/backup/ |
D | BackupAgent.java | 911 FullBackup.BackupScheme bs = FullBackup.getBackupScheme(this, mOperationType); in isFileEligibleForRestore() local 912 if (!bs.isFullRestoreEnabled()) { in isFileEligibleForRestore() 925 includes = bs.maybeParseAndGetCanonicalIncludePaths(); in isFileEligibleForRestore() 926 excludes = bs.maybeParseAndGetCanonicalExcludePaths(); in isFileEligibleForRestore()
|
/frameworks/base/core/java/android/nfc/ |
D | NdefRecord.java | 1073 private static StringBuilder bytesToString(byte[] bs) { in bytesToString() argument 1075 for (byte b : bs) { in bytesToString()
|
/frameworks/av/services/audioflinger/ |
D | Effects.cpp | 3224 Status bs; in setEnabled() local 3226 bs = handle.second->enable(&status); in setEnabled() 3228 bs = handle.second->disable(&status); in setEnabled() 3230 if (!bs.isOk()) { in setEnabled() 3231 status = statusTFromBinderStatus(bs); in setEnabled() 3343 Status bs; in checkPort() local 3345 bs = (*handle)->enable(&status); in checkPort() 3347 bs = (*handle)->disable(&status); in checkPort() 3349 if (!bs.isOk()) { in checkPort() 3350 status = statusTFromBinderStatus(bs); in checkPort()
|