Home
last modified time | relevance | path

Searched refs:manager (Results 1 – 25 of 755) sorted by relevance

12345678910>>...31

/external/autotest/server/
Dserver_job_unittest.py55 class manager: class
58 lambda *a,**k: manager())
70 manager = server_job.warning_manager()
71 self.assertEqual(manager.is_valid(10, "MSGTYPE"), True)
75 manager = server_job.warning_manager()
76 manager.enable_warnings("MSGTYPE", lambda: 10)
77 self.assertEqual(manager.is_valid(20, "MSGTYPE"), True)
81 manager = server_job.warning_manager()
82 manager.disable_warnings("MSGTYPE", lambda: 10)
83 self.assertEqual(manager.is_valid(5, "MSGTYPE"), True)
[all …]
/external/autotest/frontend/migrations/
D037_db_constraints.py1 def execute_safely(manager, statement): argument
3 manager.execute(statement)
8 def delete_duplicates(manager, table, first_id, second_id): argument
9 rows = manager.execute(
14 manager.execute('DELETE FROM %s '
22 def delete_invalid_foriegn_keys(manager, pivot_table, foreign_key_field, argument
24 manager.execute(
31 deleted_count = manager._database.rowcount
47 def create_unique_index(manager, pivot_table, first_field, second_field): argument
49 manager.execute('CREATE UNIQUE INDEX %s ON %s (%s, %s)' %
[all …]
D013_new_test_fields.py1 def migrate_up(manager): argument
2 manager.execute('ALTER TABLE jobs ADD run_verify tinyint(1) default 1')
3 manager.execute('ALTER TABLE autotests ADD author VARCHAR(256)')
4 manager.execute('ALTER TABLE autotests ADD dependencies VARCHAR(256)')
5 manager.execute('ALTER TABLE autotests ADD experimental SMALLINT DEFAULT 0')
6 manager.execute('ALTER TABLE autotests ADD run_verify SMALLINT DEFAULT 1')
7 manager.execute('ALTER TABLE autotests ADD test_time SMALLINT DEFAULT 1')
8 manager.execute('ALTER TABLE autotests ADD test_category VARCHAR(256)')
9 manager.execute('ALTER TABLE autotests ADD sync_count INT(11) DEFAULT 1')
12 def migrate_down(manager): argument
[all …]
D022_implement_sync_count.py12 def migrate_up(manager): argument
14 manager.execute("""ALTER TABLE host_queue_entries ADD COLUMN
18 rows = manager.execute("""
24 hqes = manager.execute("""
34 manager.execute(
39 manager.execute('UPDATE jobs SET synch_count = 1 WHERE synch_type = 1')
40 manager.execute('UPDATE jobs SET synch_count = 2 '
43 manager.execute('ALTER TABLE jobs DROP COLUMN synch_type')
44 manager.execute('ALTER TABLE autotests DROP COLUMN synch_type')
46 manager.execute('ALTER TABLE jobs DROP COLUMN synchronizing')
[all …]
D028_add_atomic_groups.py1 def migrate_up(manager): argument
2 manager.execute_script(CREATE_TABLE)
3 manager.execute("ALTER TABLE labels ADD `atomic_group_id` "
5 manager.execute("ALTER TABLE labels ADD CONSTRAINT FOREIGN KEY "
8 manager.execute("ALTER TABLE host_queue_entries ADD `atomic_group_id` "
10 manager.execute("ALTER TABLE host_queue_entries ADD CONSTRAINT FOREIGN KEY "
15 def migrate_down(manager): argument
16 manager.execute("ALTER TABLE host_queue_entries REMOVE `atomic_group_id`")
17 manager.execute("ALTER TABLE labels REMOVE `atomic_group_id`")
18 manager.execute("DROP TABLE IF EXISTS `atomic_groups`")
D002_cleanup_fields.py1 def migrate_up(manager): argument
2 manager.execute('ALTER TABLE autotests DROP params')
3 manager.execute('ALTER TABLE jobs DROP kernel_url, DROP status, '
5 manager.execute('ALTER TABLE host_queue_entries DROP created_on')
7 def migrate_down(manager): argument
8 manager.execute('ALTER TABLE autotests ADD params VARCHAR(255)')
9 manager.execute('ALTER TABLE jobs ADD kernel_url VARCHAR(255), '
11 manager.execute('ALTER TABLE host_queue_entries ADD created_on '
/external/autotest/server/cros/
Dhost_lock_manager_unittest.py75 self.manager = host_lock_manager.HostLockManager(self.afe)
82 actual = self.manager._check_host(self.HOST1, None)
91 actual = self.manager._check_host(self.HOST1, self.manager.LOCK)
100 actual = self.manager._check_host(self.HOST1, self.manager.UNLOCK)
110 actual = self.manager._check_host(host_with_dot, self.manager.LOCK)
120 actual = self.manager._check_host(host_with_dot, self.manager.UNLOCK)
127 manager = self.MockHostLockManager(self.afe)
128 manager.locked_hosts = set([self.HOST1])
129 manager.lock(hosts, lock_reason='Locking for test')
130 self.assertEquals(set([self.HOST1, self.HOST2]), manager.locked_hosts)
[all …]
/external/clang/unittests/Basic/
DFileManagerTest.cpp70 FileManagerTest() : manager(options) { in FileManagerTest()
74 FileManager manager; member in __anon53760de30111::FileManagerTest
80 const FileEntry *file = manager.getVirtualFile("foo.cpp", 42, 0); in TEST_F()
87 file = manager.getVirtualFile("x/y/z.cpp", 42, 0); in TEST_F()
101 manager.addStatCache(llvm::make_unique<FakeStatCache>()); in TEST_F()
103 EXPECT_EQ(nullptr, manager.getDirectory("virtual/dir/foo")); in TEST_F()
104 EXPECT_EQ(nullptr, manager.getDirectory("virtual/dir")); in TEST_F()
105 EXPECT_EQ(nullptr, manager.getDirectory("virtual")); in TEST_F()
111 manager.addStatCache(llvm::make_unique<FakeStatCache>()); in TEST_F()
113 manager.getVirtualFile("virtual/dir/bar.h", 100, 0); in TEST_F()
[all …]
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DServiceManagerTest.java155 ServiceManager manager = new ServiceManager(asList(a, b)); in testServiceStartStop() local
157 manager.addListener(listener); in testServiceStartStop()
158 assertState(manager, Service.State.NEW, a, b); in testServiceStartStop()
159 assertFalse(manager.isHealthy()); in testServiceStartStop()
160 manager.startAsync().awaitHealthy(); in testServiceStartStop()
161 assertState(manager, Service.State.RUNNING, a, b); in testServiceStartStop()
162 assertTrue(manager.isHealthy()); in testServiceStartStop()
166 manager.stopAsync().awaitStopped(); in testServiceStartStop()
167 assertState(manager, Service.State.TERMINATED, a, b); in testServiceStartStop()
168 assertFalse(manager.isHealthy()); in testServiceStartStop()
[all …]
/external/autotest/database/
Ddb_utils.py9 def drop_views(manager, views): argument
19 check_exists(manager, views, VIEW_TYPE)
21 manager.execute('DROP VIEW `%s`' % view)
24 def rename(manager, mapping): argument
35 check_exists(manager, (table for table, _ in mapping.iteritems()),
38 manager.execute('RENAME TABLE `%s` TO `%s`' % (orig_name, new_name))
41 def move_tables(manager, src_manager, tables): argument
54 manager.execute('RENAME TABLE `%(db)s`.`%(table)s` TO `%(table)s`'
58 def drop_database(manager): argument
64 manager.execute('DROP DATABASE `%s`' % manager.get_db_name())
[all …]
Dmigrate_unittest.py43 def migrate_up(self, manager): argument
46 manager.create_migrate_table()
49 def migrate_down(self, manager): argument
72 self.manager = TestableMigrationManager(self._database)
81 self.manager.do_sync_db()
82 self.assertEquals(self.manager.get_db_version(), NUM_MIGRATIONS)
87 self.manager.do_sync_db(0)
88 self.assertEquals(self.manager.get_db_version(), 0)
95 self.manager.do_sync_db(version)
96 self.assertEquals(self.manager.get_db_version(),
[all …]
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DFragmentManagerTest.java33 private TestFragmentManager manager; field in FragmentManagerTest
42 manager = (TestFragmentManager) activity.getSupportFragmentManager(); in setUp()
49 manager.addFragment(CONTAINER_VIEW_ID, "tag1", fragment, false); in shouldFindFragmentById()
51 assertThat(manager.findFragmentById(CONTAINER_VIEW_ID), sameInstance((Fragment) fragment)); in shouldFindFragmentById()
56 manager.addFragment(CONTAINER_VIEW_ID, "tag1", fragment, false); in shouldFindFragmentByTag()
58 assertThat(manager.findFragmentByTag("tag1"), sameInstance((Fragment) fragment)); in shouldFindFragmentByTag()
63 manager.addFragment(View.NO_ID, null, fragment, false); in addFragment_shouldCallLifecycleMethods()
76 manager.addFragment(View.NO_ID, null, fragment, false); in startFragment_shouldCallLifecycleMethods()
78 manager.startFragment(fragment); in startFragment_shouldCallLifecycleMethods()
93 manager.addFragment(View.NO_ID, null, fragment, false); in addFragment_shouldSetTheFragmentsView()
[all …]
DFragmentTransactionTest.java34 private MockTestFragmentManager manager; field in FragmentTransactionTest
42 manager = new MockTestFragmentManager(); in setUp()
43 txn = new TestFragmentTransaction(manager); in setUp()
91 assertTrue(manager.addFragmentWasCalled); in addWithId_commit_shouldCallFragmentManager()
92 assertEquals(manager.addFragmentContainerViewId, 111); in addWithId_commit_shouldCallFragmentManager()
93 assertEquals(manager.addFragmentTag, null); in addWithId_commit_shouldCallFragmentManager()
94 assertSame(manager.addFragmentFragment, fragment); in addWithId_commit_shouldCallFragmentManager()
95 assertFalse(manager.addFragmentReplace); in addWithId_commit_shouldCallFragmentManager()
102 assertTrue(manager.addFragmentWasCalled); in addWithIdAndTag_commit_shouldCallFragmentManager()
103 assertEquals(manager.addFragmentContainerViewId, 111); in addWithIdAndTag_commit_shouldCallFragmentManager()
[all …]
/external/webrtc/webrtc/base/
Dnetwork_unittest.cc190 BasicNetworkManager manager; in TEST_F() local
191 NetworkManager::NetworkList result = GetNetworks(manager, true); in TEST_F()
227 BasicNetworkManager manager; in TEST_F() local
228 manager.SignalNetworksChanged.connect( in TEST_F()
231 manager.enumeration_permission()); in TEST_F()
232 manager.StartUpdating(); in TEST_F()
238 manager.StartUpdating(); in TEST_F()
239 EXPECT_TRUE(manager.started()); in TEST_F()
242 manager.StopUpdating(); in TEST_F()
243 EXPECT_TRUE(manager.started()); in TEST_F()
[all …]
/external/autotest/scheduler/
Ddrone_manager_unittest.py83 self.manager = drone_manager.DroneManager()
84 self.god.stub_with(self.manager, '_results_dir', self._RESULTS_DIR)
91 self.god.stub_with(self.manager, 'refresh_drone_configs', do_nothing)
95 self.manager._drones[self.mock_drone.name] = self.mock_drone
97 self.manager._results_drone = self.results_drone
115 self.manager._enqueue_drone(MockDrone(
119 return self.manager._choose_drone_for_execution(
162 self.manager._enqueue_drone(MockDrone(1, max_processes=10,
165 self.manager._enqueue_drone(MockDrone(2, max_processes=2,
169 self.manager.max_runnable_processes(self._USERNAME,
[all …]
/external/apache-harmony/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/
DLogManagerTest.java51 LogManager manager = LogManager.getLogManager(); field in LogManagerTest
189 assertTrue(manager.addLogger(foo)); in testAddGetLogger_Hierachy()
190 assertSame(manager.getLogger(""), manager.getLogger( in testAddGetLogger_Hierachy()
194 assertTrue(manager.addLogger(otherChild)); in testAddGetLogger_Hierachy()
195 assertTrue(manager.addLogger(grandson)); in testAddGetLogger_Hierachy()
210 Logger realRoot = manager.getLogger(""); in testAddLoggerReverseOrder()
212 manager.addLogger(fooGrandChild); in testAddLoggerReverseOrder()
215 manager.addLogger(root); in testAddLoggerReverseOrder()
219 manager.addLogger(foo); in testAddLoggerReverseOrder()
223 manager.addLogger(fooGrandChild2); in testAddLoggerReverseOrder()
[all …]
/external/llvm/test/Other/
Dpass-pipeline-parsing.ll1 ; RUN: opt -disable-output -debug-pass-manager \
4 ; CHECK-TWO-NOOP-MP: Starting llvm::Module pass manager run
7 ; CHECK-TWO-NOOP-MP: Finished llvm::Module pass manager run
9 ; RUN: opt -disable-output -debug-pass-manager \
12 ; CHECK-NESTED-TWO-NOOP-MP: Starting llvm::Module pass manager run
13 ; CHECK-NESTED-TWO-NOOP-MP: Starting llvm::Module pass manager run
16 ; CHECK-NESTED-TWO-NOOP-MP: Finished llvm::Module pass manager run
17 ; CHECK-NESTED-TWO-NOOP-MP: Finished llvm::Module pass manager run
19 ; RUN: opt -disable-output -debug-pass-manager \
22 ; CHECK-TWO-NOOP-FP: Starting llvm::Module pass manager run
[all …]
Dnew-pass-manager.ll2 ; new pass manager pipeline. It will be used to flesh out the feature
3 ; completeness of the opt tool when the new pass manager is engaged. The tests
8 ; RUN: opt -disable-output -disable-verify -debug-pass-manager \
11 ; CHECK-MODULE-PASS: Starting llvm::Module pass manager run
13 ; CHECK-MODULE-PASS-NEXT: Finished llvm::Module pass manager run
15 ; RUN: opt -disable-output -disable-verify -debug-pass-manager \
18 ; RUN: opt -disable-output -disable-verify -debug-pass-manager \
21 ; CHECK-CGSCC-PASS: Starting llvm::Module pass manager run
26 ; CHECK-CGSCC-PASS-NEXT: Starting llvm::LazyCallGraph::SCC pass manager run
28 ; CHECK-CGSCC-PASS-NEXT: Finished llvm::LazyCallGraph::SCC pass manager run
[all …]
/external/webp/src/enc/
Dbackward_references_enc.c754 static void CostIntervalAddToFreeList(CostManager* const manager, in CostIntervalAddToFreeList() argument
756 interval->next_ = manager->free_intervals_; in CostIntervalAddToFreeList()
757 manager->free_intervals_ = interval; in CostIntervalAddToFreeList()
760 static int CostIntervalIsInFreeList(const CostManager* const manager, in CostIntervalIsInFreeList() argument
762 return (interval >= &manager->intervals_[0] && in CostIntervalIsInFreeList()
763 interval <= &manager->intervals_[COST_MANAGER_MAX_FREE_LIST - 1]); in CostIntervalIsInFreeList()
766 static void CostManagerInitFreeList(CostManager* const manager) { in CostManagerInitFreeList() argument
768 manager->free_intervals_ = NULL; in CostManagerInitFreeList()
770 CostIntervalAddToFreeList(manager, &manager->intervals_[i]); in CostManagerInitFreeList()
774 static void DeleteIntervalList(CostManager* const manager, in DeleteIntervalList() argument
[all …]
/external/libchrome/base/threading/
Dthread_id_name_manager_unittest.cc20 base::ThreadIdNameManager* manager = base::ThreadIdNameManager::GetInstance(); in TEST_F() local
27 EXPECT_STREQ(kAThread, manager->GetName(thread_a.GetThreadId())); in TEST_F()
28 EXPECT_STREQ(kBThread, manager->GetName(thread_b.GetThreadId())); in TEST_F()
35 base::ThreadIdNameManager* manager = base::ThreadIdNameManager::GetInstance(); in TEST_F() local
44 EXPECT_STREQ(kAThread, manager->GetName(thread_a.GetThreadId())); in TEST_F()
47 EXPECT_STREQ("", manager->GetName(thread_a.GetThreadId())); in TEST_F()
51 base::ThreadIdNameManager* manager = base::ThreadIdNameManager::GetInstance(); in TEST_F() local
56 EXPECT_STREQ(kAThread, manager->GetName(a_id)); in TEST_F()
60 EXPECT_STREQ("", manager->GetName(a_id)); in TEST_F()
61 EXPECT_STREQ(kAThread, manager->GetName(thread_a.GetThreadId())); in TEST_F()
[all …]
/external/chromium-trace/catapult/common/py_utils/py_utils/
Dbinary_manager_unittest.py174 manager = binary_manager.BinaryManager(self.base_config)
175 manager = binary_manager.BinaryManager([self.base_config])
177 manager._dependency_manager._lookup_dict)
180 manager = binary_manager.BinaryManager([self.base_config])
181 found_path = manager.FetchPath('dep_2', 'linux', 'x86_64')
185 manager = binary_manager.BinaryManager([self.base_config])
186 found_path = manager.FetchPath('dep_2', 'android', 'x86', 'l')
190 manager = binary_manager.BinaryManager([self.base_config])
191 found_path = manager.FetchPath('dep_2', 'linux', 'x86_64', 'fake_version')
195 manager = binary_manager.BinaryManager([self.base_config])
[all …]
/external/freetype/src/cache/
Dftccache.c50 FTC_Manager manager ) in ftc_node_mru_link() argument
52 void *nl = &manager->nodes_list; in ftc_node_mru_link()
57 manager->num_nodes++; in ftc_node_mru_link()
64 FTC_Manager manager ) in ftc_node_mru_unlink() argument
66 void *nl = &manager->nodes_list; in ftc_node_mru_unlink()
71 manager->num_nodes--; in ftc_node_mru_unlink()
80 FTC_Manager manager ) in ftc_node_mru_up() argument
82 FTC_MruNode_Up( (FTC_MruNode*)&manager->nodes_list, in ftc_node_mru_up()
274 FTC_Manager manager ) in ftc_node_destroy() argument
281 if ( node->cache_index >= manager->num_caches ) in ftc_node_destroy()
[all …]
/external/autotest/client/cros/cellular/
Dcell_tools.py133 def _EnumerateModems(manager): argument
135 return set([x[1] for x in mm.EnumerateDevices(manager)])
138 def _SawNewModem(manager, preexisting_modems, old_modem): argument
139 current_modems = _EnumerateModems(manager)
147 def _WaitForModemToReturn(manager, preexisting_modems_original, modem_path): argument
152 lambda: _SawNewModem(manager, preexisting_modems, modem_path),
157 current_modems = _EnumerateModems(manager)
169 def SetFirmwareForTechnologyFamily(manager, modem_path, family): argument
174 logger.debug('SetFirmwareForTechnologyFamily : manager : %s ' % manager)
178 preexisting_modems = _EnumerateModems(manager)
[all …]
/external/e2fsprogs/lib/ext2fs/
Dio_manager.c33 if (!channel->manager->set_option) in io_channel_set_options()
51 retval = (channel->manager->set_option)(channel, ptr, arg); in io_channel_set_options()
65 if (channel->manager->write_byte) in io_channel_write_byte()
66 return channel->manager->write_byte(channel, offset, in io_channel_write_byte()
77 if (channel->manager->read_blk64) in io_channel_read_blk64()
78 return (channel->manager->read_blk64)(channel, block, in io_channel_read_blk64()
84 return (channel->manager->read_blk)(channel, (unsigned long) block, in io_channel_read_blk64()
93 if (channel->manager->write_blk64) in io_channel_write_blk64()
94 return (channel->manager->write_blk64)(channel, block, in io_channel_write_blk64()
100 return (channel->manager->write_blk)(channel, (unsigned long) block, in io_channel_write_blk64()
[all …]
/external/conscrypt/platform/src/test/java/org/conscrypt/
DCertPinManagerTest.java52 TestCertPinManager manager = new TestCertPinManager(); in testCertPinManagerCalled() local
53 callCheckServerTrusted(null, manager); in testCertPinManagerCalled()
54 assertTrue(manager.called); in testCertPinManagerCalled()
62 CertPinManager manager = new CertPinManager() { in testFailure() local
70 callCheckServerTrusted(null, manager); in testFailure()
87 TestCertPinManager manager = new TestCertPinManager(); in testHostnameProvided() local
88 callCheckServerTrusted(expectedHostname, manager); in testHostnameProvided()
89 assertTrue(manager.hostnameMatched); in testHostnameProvided()
101 TestCertPinManager manager = new TestCertPinManager(); in testFullChainProvided() local
102 callCheckServerTrusted(null, manager); in testFullChainProvided()
[all …]

12345678910>>...31