/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
FragmentTransactionTest.java | 36 private TestFragmentTransaction txn; field in class:FragmentTransactionTest 43 txn = new TestFragmentTransaction(manager); 51 txn.add(fragment, tag); 52 assertSame(fragment, txn.getFragment()); 53 assertSame(tag, txn.getTag()); 54 assertEquals(View.NO_ID, txn.getContainerViewId()); 56 txn.add(id, fragment); 57 assertEquals(id, txn.getContainerViewId()); 58 assertSame(fragment, txn.getFragment()); 60 txn.add(id, fragment, tag) [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/bsddb/ |
dbtables.py | 220 def cursor(self, txn=None) : 221 return cursor_py3k(self._db.cursor(txn=txn)) 223 def has_key(self, key, txn=None) : 225 txn=txn) 227 def put(self, key, value, flags=0, txn=None) : 231 return self._db.put(key, value, flags=flags, txn=txn) 233 def put_bytes(self, key, value, txn=None) [all...] |
dbrecio.py | 7 f = DBRecIO(db, key, txn=None) 35 def __init__(self, db, key, txn=None): 38 self.txn = txn 47 del self.db, self.txn 78 r = self.db.get(self.key, txn=self.txn, dlen=dlen, doff=self.pos) 124 self.db.put(self.key, "", txn=self.txn, dlen=self.len-size, doff=size) 134 self.db.put(self.key, s, txn=self.txn, dlen=len(s), doff=self.pos [all...] |
dbshelve.py | 164 def keys(self, txn=None): 165 if txn is not None: 166 return self.db.keys(txn) 199 def items(self, txn=None): 200 if txn is not None: 201 items = self.db.items(txn) 210 def values(self, txn=None): 211 if txn is not None: 212 values = self.db.values(txn) 221 def __append(self, value, txn=None) [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/bsddb/ |
dbtables.py | 220 def cursor(self, txn=None) : 221 return cursor_py3k(self._db.cursor(txn=txn)) 223 def has_key(self, key, txn=None) : 225 txn=txn) 227 def put(self, key, value, flags=0, txn=None) : 231 return self._db.put(key, value, flags=flags, txn=txn) 233 def put_bytes(self, key, value, txn=None) [all...] |
dbrecio.py | 7 f = DBRecIO(db, key, txn=None) 35 def __init__(self, db, key, txn=None): 38 self.txn = txn 47 del self.db, self.txn 78 r = self.db.get(self.key, txn=self.txn, dlen=dlen, doff=self.pos) 124 self.db.put(self.key, "", txn=self.txn, dlen=self.len-size, doff=size) 134 self.db.put(self.key, s, txn=self.txn, dlen=len(s), doff=self.pos [all...] |
dbshelve.py | 164 def keys(self, txn=None): 165 if txn is not None: 166 return self.db.keys(txn) 199 def items(self, txn=None): 200 if txn is not None: 201 items = self.db.items(txn) 210 def values(self, txn=None): 211 if txn is not None: 212 values = self.db.values(txn) 221 def __append(self, value, txn=None) [all...] |
/frameworks/native/cmds/servicemanager/ |
binder.c | 20 void bio_init_from_txn(struct binder_io *io, struct binder_txn *txn); 41 void binder_dump_txn(struct binder_txn *txn) 44 unsigned *offs = txn->offs; 45 unsigned count = txn->offs_size / 4; 48 txn->target, txn->cookie, txn->code, txn->flags); 50 txn->sender_pid, txn->sender_euid, txn->data_size, txn->offs_size) 169 struct binder_txn txn; member in struct:__anon32182 220 struct binder_txn *txn = (void *) ptr; local 241 struct binder_txn *txn = (void*) ptr; local 311 struct binder_txn txn; member in struct:__anon32183 [all...] |
service_manager.c | 204 struct binder_txn *txn, 216 // txn->target, txn->code, txn->sender_pid, txn->sender_euid); 218 if (txn->target != svcmgr_handle) 233 switch(txn->code) { 237 ptr = do_find_service(bs, s, len, txn->sender_euid); 247 if (do_add_service(bs, s, len, ptr, txn->sender_euid, allow_isolated)) 264 ALOGE("unknown code %d\n", txn->code) [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/bsddb/test/ |
test_distributed_transactions.py | 33 txn=self.dbenv.txn_begin() 36 txn=txn) 37 txn.commit() 67 txn = self.dbenv.txn_begin() 70 self.db.put(i, gid, txn=txn, flags=db.DB_APPEND) 72 txn.prepare(gid) 73 del txn 81 for gid,txn in recovered_txns [all...] |
test_replication.py | 205 txn=self.dbenvMaster.txn_begin() 206 self.dbMaster.open("test", db.DB_HASH, db.DB_CREATE, 0666, txn=txn) 207 txn.commit() 217 txn=self.dbenvClient.txn_begin() 220 mode=0666, txn=txn) 222 txn.abort() 227 txn.commit() 230 txn=self.dbenvMaster.txn_begin( [all...] |
test_basics.py | 271 self.assertEqual(d.has_key('spam', txn=None), 0) 317 txn = self.env.txn_begin() 319 txn = None 320 c = self.d.cursor(txn=txn) 455 if txn: 456 txn.commit() 491 oldcursor = self.d.cursor(txn=txn) 637 d.compact(start='abcde', stop='monty', txn=None [all...] |
test_associate.py | 140 def addDataToDB(self, d, txn=None): 144 d.put(key, '|'.join(value), txn=txn) 146 def createDB(self, txn=None): 152 db.DB_CREATE | db.DB_THREAD | self.dbFlags, txn=txn) 230 def finish_test(self, secDB, txn=None): 232 vals = secDB.pget('Blues', txn=txn) 235 vals = secDB.pget('Unknown', txn=txn [all...] |
test_early_close.py | 157 txn = dbenv.txn_begin() 159 txn=txn) 160 d.put("XXX", "yyy", txn=txn) 161 txn.commit() 162 txn = dbenv.txn_begin() 163 c1 = d.cursor(txn) 174 txn.commit() 182 # txn.commit( [all...] |
test_sequence.py | 36 self.assertEqual(None, self.seq.open(key='id', txn=None, flags=db.DB_CREATE)) 42 self.assertEqual(None, self.seq.open(key='foo', txn=None, flags=db.DB_CREATE)) 43 self.assertEqual(None, self.seq.remove(txn=None, flags=0)) 49 self.assertEqual(None, self.seq.open(key=key, txn=None, flags=db.DB_CREATE)) 54 self.assertEqual(None, self.seq.open(key='foo', txn=None, flags=db.DB_CREATE)) 61 self.assertEqual(None, self.seq.open(key='foo', txn=None, flags=db.DB_CREATE)) 68 self.assertEqual(None, self.seq.open(key='foo', txn=None, flags=db.DB_CREATE)) 76 self.assertEqual(None, self.seq.open(key='foo', txn=None, flags=db.DB_CREATE)) 81 self.assertEqual(None, self.seq.open(key='foo', txn=None, flags=db.DB_CREATE)) 95 key='id', txn=None, flags=0 [all...] |
test_all.py | 246 def has_key(self, k, txn=None) : 249 return self._db.has_key(k, txn=txn) 265 def put(self, key, data, txn=None, flags=0, dlen=-1, doff=-1) : 270 return self._db.put(key, data, flags=flags, txn=txn, dlen=dlen, 273 def append(self, value, txn=None) : 276 return self._db.append(value, txn=txn) 288 def get(self, key, default="MagicCookie", txn=None, flags=0, dlen=-1, doff=-1) [all...] |
test_dbenv.py | 339 txn = self.env.txn_begin() 340 self.env.log_printf(msg, txn=txn) 341 txn.commit() 347 txn = self.env.txn_begin() 348 self.env.log_printf(msg, txn=txn) 349 txn.abort() # Do not store the new message 354 txn = self.env.txn_begin() 355 self.env.log_printf(msg, txn=txn [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/bsddb/test/ |
test_distributed_transactions.py | 33 txn=self.dbenv.txn_begin() 36 txn=txn) 37 txn.commit() 67 txn = self.dbenv.txn_begin() 70 self.db.put(i, gid, txn=txn, flags=db.DB_APPEND) 72 txn.prepare(gid) 73 del txn 81 for gid,txn in recovered_txns [all...] |
test_replication.py | 205 txn=self.dbenvMaster.txn_begin() 206 self.dbMaster.open("test", db.DB_HASH, db.DB_CREATE, 0666, txn=txn) 207 txn.commit() 217 txn=self.dbenvClient.txn_begin() 220 mode=0666, txn=txn) 222 txn.abort() 227 txn.commit() 230 txn=self.dbenvMaster.txn_begin( [all...] |
test_basics.py | 271 self.assertEqual(d.has_key('spam', txn=None), 0) 317 txn = self.env.txn_begin() 319 txn = None 320 c = self.d.cursor(txn=txn) 455 if txn: 456 txn.commit() 491 oldcursor = self.d.cursor(txn=txn) 637 d.compact(start='abcde', stop='monty', txn=None [all...] |
test_associate.py | 140 def addDataToDB(self, d, txn=None): 144 d.put(key, '|'.join(value), txn=txn) 146 def createDB(self, txn=None): 152 db.DB_CREATE | db.DB_THREAD | self.dbFlags, txn=txn) 230 def finish_test(self, secDB, txn=None): 232 vals = secDB.pget('Blues', txn=txn) 235 vals = secDB.pget('Unknown', txn=txn [all...] |
test_early_close.py | 157 txn = dbenv.txn_begin() 159 txn=txn) 160 d.put("XXX", "yyy", txn=txn) 161 txn.commit() 162 txn = dbenv.txn_begin() 163 c1 = d.cursor(txn) 174 txn.commit() 182 # txn.commit( [all...] |
test_sequence.py | 36 self.assertEqual(None, self.seq.open(key='id', txn=None, flags=db.DB_CREATE)) 42 self.assertEqual(None, self.seq.open(key='foo', txn=None, flags=db.DB_CREATE)) 43 self.assertEqual(None, self.seq.remove(txn=None, flags=0)) 49 self.assertEqual(None, self.seq.open(key=key, txn=None, flags=db.DB_CREATE)) 54 self.assertEqual(None, self.seq.open(key='foo', txn=None, flags=db.DB_CREATE)) 61 self.assertEqual(None, self.seq.open(key='foo', txn=None, flags=db.DB_CREATE)) 68 self.assertEqual(None, self.seq.open(key='foo', txn=None, flags=db.DB_CREATE)) 76 self.assertEqual(None, self.seq.open(key='foo', txn=None, flags=db.DB_CREATE)) 81 self.assertEqual(None, self.seq.open(key='foo', txn=None, flags=db.DB_CREATE)) 95 key='id', txn=None, flags=0 [all...] |
test_all.py | 246 def has_key(self, k, txn=None) : 249 return self._db.has_key(k, txn=txn) 265 def put(self, key, data, txn=None, flags=0, dlen=-1, doff=-1) : 270 return self._db.put(key, data, flags=flags, txn=txn, dlen=dlen, 273 def append(self, value, txn=None) : 276 return self._db.append(value, txn=txn) 288 def get(self, key, default="MagicCookie", txn=None, flags=0, dlen=-1, doff=-1) [all...] |
test_dbenv.py | 339 txn = self.env.txn_begin() 340 self.env.log_printf(msg, txn=txn) 341 txn.commit() 347 txn = self.env.txn_begin() 348 self.env.log_printf(msg, txn=txn) 349 txn.abort() # Do not store the new message 354 txn = self.env.txn_begin() 355 self.env.log_printf(msg, txn=txn [all...] |