Home
last modified time | relevance | path

Searched refs:bs (Results 1 – 25 of 31) sorted by relevance

12

/frameworks/data-binding/compiler/src/test/java/android/databinding/tool/writer/
DFlagSetTest.java28 BitSet bs = new BitSet(); in testSimple1Level() local
29 bs.set(7); in testSimple1Level()
30 FlagSet flagSet = new FlagSet(bs, 3); in testSimple1Level()
39 BitSet bs = new BitSet(); in testSimple2Level() local
40 bs.set(FlagSet.sBucketSize + 2); in testSimple2Level()
41 FlagSet flagSet = new FlagSet(bs, 3); in testSimple2Level()
50 BitSet bs = new BitSet(); in testSimple3Level() local
51 bs.set(5); in testSimple3Level()
52 bs.set(FlagSet.sBucketSize + 2); in testSimple3Level()
53 bs.set(FlagSet.sBucketSize * 2 + 10); in testSimple3Level()
[all …]
/frameworks/native/cmds/servicemanager/
Dbctest.c11 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(128*1024); in main()
66 if (!bs) { in main()
[all …]
Dbinder.c98 struct binder_state *bs; in binder_open() local
101 bs = malloc(sizeof(*bs)); in binder_open()
102 if (!bs) { in binder_open()
107 bs->fd = open("/dev/binder", O_RDWR | O_CLOEXEC); in binder_open()
108 if (bs->fd < 0) { in binder_open()
114 if ((ioctl(bs->fd, BINDER_VERSION, &vers) == -1) || in binder_open()
122 bs->mapsize = mapsize; in binder_open()
123 bs->mapped = mmap(NULL, mapsize, PROT_READ, MAP_PRIVATE, bs->fd, 0); in binder_open()
124 if (bs->mapped == MAP_FAILED) { in binder_open()
130 return bs; in binder_open()
[all …]
Dbinder.h26 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);
Dservice_manager.c164 void svcinfo_death(struct binder_state *bs, void *ptr) in svcinfo_death() argument
170 binder_release(bs, si->handle); in svcinfo_death()
205 int do_add_service(struct binder_state *bs, in do_add_service() argument
229 svcinfo_death(bs, si); in do_add_service()
250 binder_acquire(bs, handle); in do_add_service()
251 binder_link_to_death(bs, handle, &si->death); in do_add_service()
255 int svcmgr_handler(struct binder_state *bs, in svcmgr_handler() argument
320 if (do_add_service(bs, s, len, handle, txn->sender_euid, in svcmgr_handler()
367 struct binder_state *bs; in main() local
369 bs = binder_open(128*1024); in main()
[all …]
/frameworks/base/core/tests/coretests/src/android/app/backup/
DFullBackupTest.java63 FullBackup.BackupScheme bs = FullBackup.getBackupSchemeForTest(mContext); in testparseBackupSchemeFromXml_onlyInclude() local
64 bs.parseBackupSchemeFromXmlLocked(mXpp, excludesSet, includeMap); in testparseBackupSchemeFromXml_onlyInclude()
82 FullBackup.BackupScheme bs = FullBackup.getBackupSchemeForTest(mContext); in testparseBackupSchemeFromXml_onlyExclude() local
83 bs.parseBackupSchemeFromXmlLocked(mXpp, excludesSet, includeMap); in testparseBackupSchemeFromXml_onlyExclude()
99 FullBackup.BackupScheme bs = FullBackup.getBackupSchemeForTest(mContext); in testparseBackupSchemeFromXml_includeAndExclude() local
100 bs.parseBackupSchemeFromXmlLocked(mXpp, excludesSet, includeMap); in testparseBackupSchemeFromXml_includeAndExclude()
128 FullBackup.BackupScheme bs = FullBackup.getBackupSchemeForTest(mContext); in testparseBackupSchemeFromXml_lotsOfIncludesAndExcludes() local
129 bs.parseBackupSchemeFromXmlLocked(mXpp, excludesSet, includeMap); in testparseBackupSchemeFromXml_lotsOfIncludesAndExcludes()
221 FullBackup.BackupScheme bs = FullBackup.getBackupSchemeForTest(mContext); in testParseBackupSchemeFromXml_invalidXmlFails() local
222 bs.parseBackupSchemeFromXmlLocked(mXpp, excludesSet, includeMap); in testParseBackupSchemeFromXml_invalidXmlFails()
[all …]
/frameworks/native/opengl/libagl/
Dmipmap.cpp53 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/base/core/java/com/android/internal/os/
DBatteryStatsHelper.java418 BatterySipper bs = mUsageList.get(i); in refreshStats() local
419 bs.computeMobilemspp(); in refreshStats()
420 if (bs.mobilemspp != 0) { in refreshStats()
421 mMobilemsppList.add(bs); in refreshStats()
428 BatterySipper bs = user.get(j); in refreshStats() local
429 bs.computeMobilemspp(); in refreshStats()
430 if (bs.mobilemspp != 0) { in refreshStats()
431 mMobilemsppList.add(bs); in refreshStats()
466 BatterySipper bs = new BatterySipper(DrainType.UNACCOUNTED, null, amount); in refreshStats() local
469 int index = Collections.binarySearch(mUsageList, bs); in refreshStats()
[all …]
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
Dvop.cpp511 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 …]
Dvlc_encode.cpp172 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 …]
Dvlc_encode.h40 Void MB_CodeCoeff(VideoEncData *video, BitstreamEncVideo *bs);
41 Void BlockCodeCoeff(RunLevelBlock *RLB, BitstreamEncVideo *bs, Int j_start, UChar Mode, Int rvlc, I…
Dmp4enc_lib.h198 …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/av/media/libstagefright/codecs/on2/h264dec/source/
Dh264bsd_deblocking.c171 static u32 GetBoundaryStrengths(mbStorage_t *mb, bS_t *bs, u32 flags);
206 static u32 GetBoundaryStrengths(mbStorage_t *mb, u8 (*bs)[16], u32 flags);
213 u8 (*bs)[16],
221 u8 (*bs)[16],
2179 u8 (*bs)[16], in GetLumaEdgeThresholds()
2192 ASSERT(bs); in GetLumaEdgeThresholds()
2217 t1 = bs[i][0]; in GetLumaEdgeThresholds()
2218 t2 = bs[i][1]; in GetLumaEdgeThresholds()
2220 t1 = bs[i][2]; in GetLumaEdgeThresholds()
2222 t2 = bs[i][3]; in GetLumaEdgeThresholds()
[all …]
/frameworks/native/libs/binder/
DBufferedTextOutput.cpp270 BufferState* bs = ts->states[mIndex].get(); in getBuffer() local
271 if (bs != NULL && bs->seq == mSeq) return bs; in getBuffer()
274 bs = ts->states[mIndex].get(); in getBuffer()
275 if (bs != NULL) return bs; in getBuffer()
/frameworks/native/services/surfaceflinger/DisplayHardware/
DPowerHAL.cpp36 sp<IBinder> bs = defaultServiceManager()->checkService(serviceName); in vsyncHint() local
37 if (bs == NULL) { in vsyncHint()
40 mPowerManager = interface_cast<IPowerManager>(bs); in vsyncHint()
/frameworks/base/services/core/java/com/android/server/wm/
DBlackFrame.java113 BlackSurface bs = mBlackSurfaces[i]; in printTo() local
115 pw.print(": "); pw.print(bs.surface); in printTo()
116 pw.print(" left="); pw.print(bs.left); in printTo()
117 pw.print(" top="); pw.println(bs.top); in printTo()
/frameworks/base/services/core/java/com/android/server/
DAlarmManagerService.java1526 BroadcastStats bs = uidStats.valueAt(ip); in dumpImpl() local
1527 for (int is=0; is<bs.filterStats.size(); is++) { in dumpImpl()
1528 FilterStats fs = bs.filterStats.valueAt(is); in dumpImpl()
1570 BroadcastStats bs = uidStats.valueAt(ip); in dumpImpl() local
1572 if (bs.nesting > 0) pw.print("*ACTIVE* "); in dumpImpl()
1573 UserHandle.formatUid(pw, bs.mUid); in dumpImpl()
1575 pw.print(bs.mPackageName); in dumpImpl()
1576 pw.print(" "); TimeUtils.formatDuration(bs.aggregateTime, pw); in dumpImpl()
1577 pw.print(" running, "); pw.print(bs.numWakeup); in dumpImpl()
1580 for (int is=0; is<bs.filterStats.size(); is++) { in dumpImpl()
[all …]
/frameworks/base/services/core/java/com/android/server/am/
DHealthStatsBatteryStatsWriter.java49 public void writeUid(HealthStatsWriter uidWriter, BatteryStats bs, BatteryStats.Uid uid) { in writeUid() argument
65 bs.computeBatteryRealtime(mNowRealtimeMs*1000, STATS_SINCE_UNPLUGGED)/1000); in writeUid()
69 bs.computeBatteryUptime(mNowUptimeMs*1000, STATS_SINCE_UNPLUGGED)/1000); in writeUid()
73 bs.computeBatteryScreenOffRealtime( in writeUid()
78 bs.computeBatteryScreenOffUptime(mNowUptimeMs*1000, STATS_SINCE_UNPLUGGED)/1000); in writeUid()
/frameworks/base/core/java/android/os/
DBatteryStats.java3042 final BatterySipper bs = sippers.get(i); in dumpCheckinLocked() local
3045 switch (bs.drainType) { in dumpCheckinLocked()
3068 uid = bs.uidObj.getUid(); in dumpCheckinLocked()
3072 uid = UserHandle.getUid(bs.userId, 0); in dumpCheckinLocked()
3088 BatteryStatsHelper.makemAh(bs.totalPowerMah)); in dumpCheckinLocked()
3875 final BatterySipper bs = sippers.get(i); in dumpLocked() local
3877 switch (bs.drainType) { in dumpLocked()
3901 UserHandle.formatUid(pw, bs.uidObj.getUid()); in dumpLocked()
3905 pw.print(" User "); pw.print(bs.userId); in dumpLocked()
3921 printmAh(pw, bs.totalPowerMah); in dumpLocked()
[all …]
/frameworks/av/media/libstagefright/rtsp/
DAMPEG4AudioAssembler.cpp233 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/compile/mclinker/lib/Support/
DDemangle.cpp44 arena<bs> a; in isCtorOrDtor()
/frameworks/base/docs/html-intl/intl/zh-cn/distribute/tools/promote/
Ddevice-art.jd663 var bs = window.atob(dataURL.split(',')[1]);
664 if (dataURL == 'data:,' || !bs.length) {
668 for (var ui8arr = new Uint8Array(bs.length), i = 0; i < bs.length; ++i) {
669 ui8arr[i] = bs.charCodeAt(i);
/frameworks/base/core/java/android/app/backup/
DBackupAgent.java733 FullBackup.BackupScheme bs = FullBackup.getBackupScheme(this); in isFileEligibleForRestore() local
734 if (!bs.isFullBackupContentEnabled()) { in isFileEligibleForRestore()
747 includes = bs.maybeParseAndGetCanonicalIncludePaths(); in isFileEligibleForRestore()
748 excludes = bs.maybeParseAndGetCanonicalExcludePaths(); in isFileEligibleForRestore()
/frameworks/base/tools/obbtool/
Dmkobb.sh221 ${DDBIN} if=/dev/zero of=${tempfile} bs=${BLOCK_SIZE} count=$((${block_count} + ${SLOP})) > /dev/nu…
/frameworks/base/docs/html/distribute/tools/promote/
Ddevice-art.jd802 var bs = window.atob(dataURL.split(',')[1]);
803 if (dataURL == 'data:,' || !bs.length) {
807 for (var ui8arr = new Uint8Array(bs.length), i = 0; i < bs.length; ++i) {
808 ui8arr[i] = bs.charCodeAt(i);

12