/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf.Test/ |
D | ByteStringTest.cs | 78 ByteString bs = ByteString.CopyFrom("AB", Encoding.Unicode); in CopyFromStringWithExplicitEncoding() 79 Assert.AreEqual(4, bs.Length); in CopyFromStringWithExplicitEncoding() 80 Assert.AreEqual(65, bs[0]); in CopyFromStringWithExplicitEncoding() 81 Assert.AreEqual(0, bs[1]); in CopyFromStringWithExplicitEncoding() 82 Assert.AreEqual(66, bs[2]); in CopyFromStringWithExplicitEncoding() 83 Assert.AreEqual(0, bs[3]); in CopyFromStringWithExplicitEncoding() 103 ByteString bs = ByteString.CopyFrom(data); in CopyFromByteArrayCopiesContents() 104 Assert.AreEqual(10, bs[0]); in CopyFromByteArrayCopiesContents() 106 Assert.AreEqual(10, bs[0]); in CopyFromByteArrayCopiesContents() 112 ByteString bs = ByteString.CopyFromUtf8("Hello"); in ToByteArrayCopiesContents() [all …]
|
/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/native/cmds/servicemanager/ |
D | bctest.c | 11 uint32_t svcmgr_lookup(struct binder_state *bs, uint32_t target, const char *name) in svcmgr_lookup() argument 22 if (binder_call(bs, &msg, &reply, target, SVC_MGR_CHECK_SERVICE)) in svcmgr_lookup() 28 binder_acquire(bs, handle); in svcmgr_lookup() 30 binder_done(bs, &msg, &reply); in svcmgr_lookup() 35 int svcmgr_publish(struct binder_state *bs, uint32_t target, const char *name, void *ptr) in svcmgr_publish() argument 47 if (binder_call(bs, &msg, &reply, target, SVC_MGR_ADD_SERVICE)) in svcmgr_publish() 52 binder_done(bs, &msg, &reply); in svcmgr_publish() 61 struct binder_state *bs; in main() local 65 bs = binder_open("/dev/binder", 128*1024); in main() 66 if (!bs) { in main() [all …]
|
D | binder.c | 99 struct binder_state *bs; in binder_open() local 102 bs = malloc(sizeof(*bs)); in binder_open() 103 if (!bs) { in binder_open() 108 bs->fd = open(driver, O_RDWR | O_CLOEXEC); in binder_open() 109 if (bs->fd < 0) { in binder_open() 115 if ((ioctl(bs->fd, BINDER_VERSION, &vers) == -1) || in binder_open() 123 bs->mapsize = mapsize; in binder_open() 124 bs->mapped = mmap(NULL, mapsize, PROT_READ, MAP_PRIVATE, bs->fd, 0); in binder_open() 125 if (bs->mapped == MAP_FAILED) { in binder_open() 131 return bs; in binder_open() [all …]
|
D | binder.h | 26 void (*func)(struct binder_state *bs, void *ptr); 44 typedef int (*binder_handler)(struct binder_state *bs, 50 void binder_close(struct binder_state *bs); 55 int binder_call(struct binder_state *bs, 64 void binder_done(struct binder_state *bs, 68 void binder_acquire(struct binder_state *bs, uint32_t target); 69 void binder_release(struct binder_state *bs, uint32_t target); 71 void binder_link_to_death(struct binder_state *bs, uint32_t target, struct binder_death *death); 73 void binder_loop(struct binder_state *bs, binder_handler func); 75 int binder_become_context_manager(struct binder_state *bs);
|
D | service_manager.c | 165 void svcinfo_death(struct binder_state *bs, void *ptr) in svcinfo_death() argument 171 binder_release(bs, si->handle); in svcinfo_death() 206 int do_add_service(struct binder_state *bs, const uint16_t *s, size_t len, uint32_t handle, in do_add_service() argument 227 svcinfo_death(bs, si); in do_add_service() 249 binder_acquire(bs, handle); in do_add_service() 250 binder_link_to_death(bs, handle, &si->death); in do_add_service() 254 int svcmgr_handler(struct binder_state *bs, in svcmgr_handler() argument 329 if (do_add_service(bs, s, len, handle, txn->sender_euid, allow_isolated, dumpsys_priority, in svcmgr_handler() 384 struct binder_state *bs; in main() local 394 bs = binder_open(driver, 128*1024); in main() [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…
|
/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 | 271 BufferState* bs = ts->states[mIndex].get(); in getBuffer() local 272 if (bs != nullptr && bs->seq == mSeq) return bs; in getBuffer() 275 bs = ts->states[mIndex].get(); in getBuffer() 276 if (bs != nullptr) return bs; in getBuffer()
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/test/java/com/google/protobuf/ |
D | IsValidUtf8TestUtil.java | 262 ByteString bs = factory.newByteString(bytes); 263 boolean isRoundTrippable = bs.isValidUtf8(); 296 bs.substring(0, i), 297 RopeByteString.newInstanceForTest(bs.substring(i, j), bs.substring(j, numBytes))); 300 ByteString[] byteStrings = {bs, bs.substring(0, numBytes), rope}; 314 ByteString ropeADope = RopeByteString.newInstanceForTest(bs, bs.substring(0, numBytes));
|
/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 | 106 BlackSurface bs = mBlackSurfaces[i]; in printTo() local 108 pw.print(": "); pw.print(bs.surface); in printTo() 109 pw.print(" left="); pw.print(bs.left); in printTo() 110 pw.print(" top="); pw.println(bs.top); in printTo()
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/ruby/src/main/java/com/google/protobuf/jruby/ |
D | SentinelOuterClass.java | 207 com.google.protobuf.ByteString bs = in getDefaultString() local 209 java.lang.String s = bs.toStringUtf8(); in getDefaultString() 210 if (bs.isValidUtf8()) { in getDefaultString() 535 com.google.protobuf.ByteString bs = in getDefaultString() local 537 java.lang.String s = bs.toStringUtf8(); in getDefaultString() 538 if (bs.isValidUtf8()) { in getDefaultString()
|
/frameworks/base/core/java/android/os/ |
D | BatteryStats.java | 3938 final BatterySipper bs = sippers.get(i); in dumpCheckinLocked() local 3940 switch (bs.drainType) { in dumpCheckinLocked() 3966 uid = bs.uidObj.getUid(); in dumpCheckinLocked() 3970 uid = UserHandle.getUid(bs.userId, 0); in dumpCheckinLocked() 3989 BatteryStatsHelper.makemAh(bs.totalPowerMah), in dumpCheckinLocked() 3990 bs.shouldHide ? 1 : 0, in dumpCheckinLocked() 3991 BatteryStatsHelper.makemAh(bs.screenPowerMah), in dumpCheckinLocked() 3992 BatteryStatsHelper.makemAh(bs.proportionalSmearMah)); in dumpCheckinLocked() 5087 final BatterySipper bs = sippers.get(i); in dumpLocked() 5089 switch (bs.drainType) { in dumpLocked() [all …]
|
/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/core/java/com/android/server/ |
D | AlarmManagerService.java | 2466 BroadcastStats bs = uidStats.valueAt(ip); in dumpImpl() local 2467 for (int is=0; is<bs.filterStats.size(); is++) { in dumpImpl() 2468 FilterStats fs = bs.filterStats.valueAt(is); in dumpImpl() 2510 BroadcastStats bs = uidStats.valueAt(ip); in dumpImpl() local 2512 if (bs.nesting > 0) pw.print("*ACTIVE* "); in dumpImpl() 2513 UserHandle.formatUid(pw, bs.mUid); in dumpImpl() 2515 pw.print(bs.mPackageName); in dumpImpl() 2516 pw.print(" "); TimeUtils.formatDuration(bs.aggregateTime, pw); in dumpImpl() 2517 pw.print(" running, "); pw.print(bs.numWakeup); in dumpImpl() 2520 for (int is=0; is<bs.filterStats.size(); is++) { in dumpImpl() [all …]
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/main/java/com/google/protobuf/ |
D | LazyStringArrayList.java | 119 ByteString bs = (ByteString) o; in get() local 120 String s = bs.toStringUtf8(); in get() 121 if (bs.isValidUtf8()) { in get()
|
/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 | 882 BatteryStatsInternal bs = LocalServices.getService(BatteryStatsInternal.class); in pullWifiBytesTransfer() local 883 String[] ifaces = bs.getWifiIfaces(); in pullWifiBytesTransfer() 906 BatteryStatsInternal bs = LocalServices.getService(BatteryStatsInternal.class); in pullWifiBytesTransferByFgBg() local 907 String[] ifaces = bs.getWifiIfaces(); in pullWifiBytesTransferByFgBg() 930 BatteryStatsInternal bs = LocalServices.getService(BatteryStatsInternal.class); in pullMobileBytesTransfer() local 931 String[] ifaces = bs.getMobileIfaces(); in pullMobileBytesTransfer() 970 BatteryStatsInternal bs = LocalServices.getService(BatteryStatsInternal.class); in pullMobileBytesTransferByFgBg() local 971 String[] ifaces = bs.getMobileIfaces(); in pullMobileBytesTransferByFgBg() 1750 for (BatterySipper bs : sippers) { in pullDeviceCalculatedPowerBlameUid() 1751 if (bs.drainType != bs.drainType.APP) { in pullDeviceCalculatedPowerBlameUid() [all …]
|