Searched refs:bs (Results 1 - 25 of 30) sorted by relevance

12

/frameworks/native/cmds/servicemanager/
H A Dbctest.c10 uint32_t svcmgr_lookup(struct binder_state *bs, uint32_t target, const char *name) argument
21 if (binder_call(bs, &msg, &reply, target, SVC_MGR_CHECK_SERVICE))
27 binder_acquire(bs, handle);
29 binder_done(bs, &msg, &reply);
34 int svcmgr_publish(struct binder_state *bs, uint32_t target, const char *name, void *ptr) argument
46 if (binder_call(bs, &msg, &reply, target, SVC_MGR_ADD_SERVICE))
51 binder_done(bs, &msg, &reply);
61 struct binder_state *bs; local
65 bs = binder_open(128*1024);
66 if (!bs) {
[all...]
H A 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);
[all...]
H A Dbinder.c97 struct binder_state *bs; local
100 bs = malloc(sizeof(*bs));
101 if (!bs) {
106 bs->fd = open("/dev/binder", O_RDWR);
107 if (bs->fd < 0) {
113 if ((ioctl(bs->fd, BINDER_VERSION, &vers) == -1) ||
119 bs->mapsize = mapsize;
120 bs->mapped = mmap(NULL, mapsize, PROT_READ, MAP_PRIVATE, bs
136 binder_close(struct binder_state *bs) argument
143 binder_become_context_manager(struct binder_state *bs) argument
148 binder_write(struct binder_state *bs, void *data, size_t len) argument
167 binder_send_reply(struct binder_state *bs, struct binder_io *reply, binder_uintptr_t buffer_to_free, int status) argument
201 binder_parse(struct binder_state *bs, struct binder_io *bio, uintptr_t ptr, size_t size, binder_handler func) argument
286 binder_acquire(struct binder_state *bs, uint32_t target) argument
294 binder_release(struct binder_state *bs, uint32_t target) argument
302 binder_link_to_death(struct binder_state *bs, uint32_t target, struct binder_death *death) argument
315 binder_call(struct binder_state *bs, struct binder_io *msg, struct binder_io *reply, uint32_t target, uint32_t code) argument
369 binder_loop(struct binder_state *bs, binder_handler func) argument
448 binder_done(struct binder_state *bs, struct binder_io *msg, struct binder_io *reply) argument
[all...]
H A Dservice_manager.c153 void svcinfo_death(struct binder_state *bs, void *ptr) argument
159 binder_release(bs, si->handle);
170 uint32_t do_find_service(struct binder_state *bs, const uint16_t *s, size_t len, uid_t uid, pid_t spid) argument
196 int do_add_service(struct binder_state *bs, argument
220 svcinfo_death(bs, si);
241 binder_acquire(bs, handle);
242 binder_link_to_death(bs, handle, &si->death);
246 int svcmgr_handler(struct binder_state *bs, argument
298 handle = do_find_service(bs, s, len, txn->sender_euid, txn->sender_pid);
311 if (do_add_service(bs,
351 struct binder_state *bs; local
[all...]
/frameworks/native/services/surfaceflinger/DisplayHardware/
H A DPowerHAL.cpp36 sp<IBinder> bs = defaultServiceManager()->checkService(serviceName); local
37 if (bs == NULL) {
40 mPowerManager = interface_cast<IPowerManager>(bs);
/frameworks/native/opengl/libagl/
H A Dmipmap.cpp53 int bs = base->stride; local
62 size_t offset = (y*2) * bs;
66 uint32_t p01 = src[offset+bs];
67 uint32_t p11 = src[offset+bs+1];
84 size_t offset = (y*2) * bs;
88 uint32_t p01 = src[offset+bs];
89 uint32_t p11 = src[offset+bs+1];
104 size_t offset = (y*2) * bs;
108 uint32_t p01 = src[offset+bs];
109 uint32_t p11 = src[offset+bs
[all...]
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
H A Dvop.cpp511 BitstreamEncVideo *bs, tmp; local
519 bs = &tmp;
522 bs = video->bitstream1;
526 BitstreamPutGT16Bits(bs, 17, 1); /* resync_marker I_VOP */
530 BitstreamPutGT16Bits(bs, 16 + fcode, 1); /* resync_marker P_VOP */
538 BitstreamPutGT16Bits(bs, 16 + fcode, 1); /* resync_marker B_VOP */
541 BitstreamPutBits(bs, currVol->nBitsForMBID, MB_number); /* resync_marker */
542 BitstreamPutBits(bs, 5, quant_scale); /* quant_scale */
543 BitstreamPut1Bits(bs, 0); /* header_extension_code = 0 */
549 BitstreamPut1Bits(bs,
[all...]
H A Dvlc_encode.h40 Void MB_CodeCoeff(VideoEncData *video, BitstreamEncVideo *bs);
41 Void BlockCodeCoeff(RunLevelBlock *RLB, BitstreamEncVideo *bs, Int j_start, UChar Mode, Int rvlc, Int shortVideoHeader);
H A 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 Mode) argument
1451 length = PutCoeff_Intra_RVLC(run, level, bs);
1453 length = PutCoeff_Inter_RVLC(run, level, bs);
1460 BitstreamPutBits(bs, 5 + 1, 2); /* ESCAPE + Not Last Coefficient */
1461 //BitstreamPutBits(bs,1,0); /* Not Last Coefficient */
1462 BitstreamPutBits(bs, 6 + 1, (run << 1) | 1); /* RUN + MARKER BIT*/
1463 //BitstreamPutBits(bs,1,1); /* MARKER BIT */
1464 BitstreamPutGT8Bits(bs, 11, level); /* LEVEL */
1465 BitstreamPutBits(bs,
1504 BlockCodeCoeff_ShortHeader(RunLevelBlock *RLB, BitstreamEncVideo *bs, Int j_start, Int j_stop, UChar Mode) argument
1573 BlockCodeCoeff_Normal(RunLevelBlock *RLB, BitstreamEncVideo *bs, Int j_start, Int j_stop, UChar Mode) argument
2732 WriteMVcomponent(Int f_code, Int dmv, BitstreamEncVideo *bs) argument
[all...]
H A Dmp4enc_lib.h198 void BlockCodeCoeff_ShortHeader(RunLevelBlock *RLB, BitstreamEncVideo *bs, Int j_start, Int j_stop, UChar Mode);
199 void BlockCodeCoeff_RVLC(RunLevelBlock *RLB, BitstreamEncVideo *bs, Int j_start, Int j_stop, UChar Mode);
200 void BlockCodeCoeff_Normal(RunLevelBlock *RLB, BitstreamEncVideo *bs, Int j_start, Int j_stop, UChar Mode);
/frameworks/base/core/java/com/android/internal/os/
H A DBatteryStatsHelper.java341 BatterySipper bs = mUsageList.get(i);
342 bs.computeMobilemspp();
343 if (bs.mobilemspp != 0) {
344 mMobilemsppList.add(bs);
350 BatterySipper bs = user.get(j);
351 bs.computeMobilemspp();
352 if (bs.mobilemspp != 0) {
353 mMobilemsppList.add(bs);
667 BatterySipper bs = addEntry(BatterySipper.DrainType.PHONE, phoneOnTimeMs, phoneOnPower);
730 BatterySipper bs
740 aggregateSippers(BatterySipper bs, List<BatterySipper> from, String tag) argument
[all...]
/frameworks/native/libs/binder/
H A DBufferedTextOutput.cpp267 BufferState* bs = ts->states[mIndex].get(); local
268 if (bs != NULL && bs->seq == mSeq) return bs;
271 bs = ts->states[mIndex].get();
272 if (bs != NULL) return bs;
/frameworks/base/tests/RenderScriptTests/FBOTest/src/com/android/fbotest/
H A DFBOSyncRS.java91 Sampler.Builder bs = new Sampler.Builder(mRS);
92 bs.setMinification(Sampler.Value.LINEAR);
93 bs.setMagnification(Sampler.Value.LINEAR);
94 bs.setWrapS(Sampler.Value.CLAMP);
95 bs.setWrapT(Sampler.Value.CLAMP);
96 mSampler = bs.create();
H A DFBOTestRS.java90 Sampler.Builder bs = new Sampler.Builder(mRS);
91 bs.setMinification(Sampler.Value.LINEAR);
92 bs.setMagnification(Sampler.Value.LINEAR);
93 bs.setWrapS(Sampler.Value.CLAMP);
94 bs.setWrapT(Sampler.Value.CLAMP);
95 mSampler = bs.create();
/frameworks/base/tests/RenderScriptTests/ModelViewer/src/com/android/modelviewer/
H A DSceneGraphRS.java105 Sampler.Builder bs = new Sampler.Builder(mRS);
106 bs.setMinification(Sampler.Value.LINEAR);
107 bs.setMagnification(Sampler.Value.LINEAR);
108 bs.setWrapS(Sampler.Value.CLAMP);
109 bs.setWrapT(Sampler.Value.CLAMP);
110 mSampler = bs.create();
H A DSimpleModelRS.java89 Sampler.Builder bs = new Sampler.Builder(mRS);
90 bs.setMinification(Sampler.Value.LINEAR);
91 bs.setMagnification(Sampler.Value.LINEAR);
92 bs.setWrapS(Sampler.Value.CLAMP);
93 bs.setWrapT(Sampler.Value.CLAMP);
94 mSampler = bs.create();
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/
H A 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],
326 Function to calculate boundary strength value bs for an inner
361 Function to calculate boundary strength value bs for an inner
389 Function to calculate boundary strength value bs for left- or
419 Function to calculate boundary strength value bs for
486 Function to calculate boundary strength value bs for left-
2179 u8 (*bs)[1
2174 GetLumaEdgeThresholds( mbStorage_t *mb, u8 (*alpha)[2], u8 (*beta)[2], u8 (*threshold)[16], u8 (*bs)[16], u32 filteringFlags ) argument
2304 GetChromaEdgeThresholds( mbStorage_t *mb, u8 (*alpha)[2], u8 (*beta)[2], u8 (*threshold)[8], u8 (*bs)[16], u32 filteringFlags, i32 chromaQpIndexOffset) argument
[all...]
/frameworks/base/tests/RenderScriptTests/MiscSamples/src/com/example/android/rs/miscsamples/
H A DRsRenderStatesRS.java362 Sampler.Builder bs = new Sampler.Builder(mRS);
363 bs.setMinification(Sampler.Value.LINEAR);
364 bs.setMagnification(Sampler.Value.LINEAR);
365 bs.setWrapS(Sampler.Value.WRAP);
366 bs.setWrapT(Sampler.Value.WRAP);
367 mLinearWrap = bs.create();
373 bs = new Sampler.Builder(mRS);
374 bs.setMinification(Sampler.Value.LINEAR_MIP_LINEAR);
375 bs.setMagnification(Sampler.Value.LINEAR);
376 bs
[all...]
/frameworks/base/services/core/java/com/android/server/wm/
H A DBlackFrame.java107 BlackSurface bs = mBlackSurfaces[i];
109 pw.print(": "); pw.print(bs.surface);
110 pw.print(" left="); pw.print(bs.left);
111 pw.print(" top="); pw.println(bs.top);
/frameworks/compile/mclinker/lib/Support/
H A DDemangle.cpp45 arena<bs> a;
/frameworks/base/services/core/java/com/android/server/
H A DAlarmManagerService.java956 BroadcastStats bs = uidStats.valueAt(ip);
957 for (int is=0; is<bs.filterStats.size(); is++) {
958 FilterStats fs = bs.filterStats.valueAt(is);
1000 BroadcastStats bs = uidStats.valueAt(ip);
1002 if (bs.nesting > 0) pw.print("*ACTIVE* ");
1003 UserHandle.formatUid(pw, bs.mUid);
1005 pw.print(bs.mPackageName);
1006 pw.print(" "); TimeUtils.formatDuration(bs.aggregateTime, pw);
1007 pw.print(" running, "); pw.print(bs.numWakeup);
1010 for (int is=0; is<bs
[all...]
/frameworks/base/core/java/android/os/
H A DBatteryStats.java2097 BatterySipper bs = sippers.get(i);
2100 switch (bs.drainType) {
2123 uid = bs.uidObj.getUid();
2127 uid = UserHandle.getUid(bs.userId, 0);
2140 BatteryStatsHelper.makemAh(bs.value));
2816 BatterySipper bs = sippers.get(i);
2817 switch (bs.drainType) {
2819 pw.print(prefix); pw.print(" Idle: "); printmAh(pw, bs.value);
2823 pw.print(prefix); pw.print(" Cell standby: "); printmAh(pw, bs.value);
2827 pw.print(prefix); pw.print(" Phone calls: "); printmAh(pw, bs
[all...]
/frameworks/av/media/libstagefright/rtsp/
H A DAMPEG4AudioAssembler.cpp233 ABitReader bs(dataStart, (totalNumBits + 7) / 8);
242 bs.skipBits(8 - (bitpos & 7));
247 *dstPtr++ = bs.getBits(8);
/frameworks/base/tools/obbtool/
H A Dmkobb.sh221 ${DDBIN} if=/dev/zero of=${tempfile} bs=${BLOCK_SIZE} count=$((${block_count} + ${SLOP})) > /dev/null 2>&1
/frameworks/base/core/java/android/nfc/
H A DNdefRecord.java1049 private static StringBuilder bytesToString(byte[] bs) { argument
1051 for (byte b : bs) {

Completed in 614 milliseconds

12