/external/chromium_org/chrome/installer/util/ |
work_item.cc | 21 WorkItem::WorkItem() : ignore_failure_(false) { 24 WorkItem::~WorkItem() { 27 CallbackWorkItem* WorkItem::CreateCallbackWorkItem( 32 CopyRegKeyWorkItem* WorkItem::CreateCopyRegKeyWorkItem( 41 CopyTreeWorkItem* WorkItem::CreateCopyTreeWorkItem( 51 CreateDirWorkItem* WorkItem::CreateCreateDirWorkItem( 56 CreateRegKeyWorkItem* WorkItem::CreateCreateRegKeyWorkItem( 61 DeleteRegKeyWorkItem* WorkItem::CreateDeleteRegKeyWorkItem [all...] |
work_item_list.cc | 42 WorkItem* work_item = list_.front(); 72 void WorkItemList::AddWorkItem(WorkItem* work_item) { 77 WorkItem* WorkItemList::AddCallbackWorkItem( 79 WorkItem* item = WorkItem::CreateCallbackWorkItem(callback); 84 WorkItem* WorkItemList::AddCopyRegKeyWorkItem( 89 WorkItem* item = WorkItem::CreateCopyRegKeyWorkItem( 95 WorkItem* WorkItemList::AddCopyTreeWorkItem( 101 WorkItem* item = WorkItem::CreateCopyTreeWorkItem [all...] |
work_item_list.h | 22 // A WorkItem subclass that recursively contains a list of WorkItems. Thus it 26 class WorkItemList : public WorkItem { 31 // It aborts as soon as one WorkItem fails. 37 // Add a WorkItem to the list. 38 // A WorkItem can only be added to the list before the list's DO() is called. 39 // Once a WorkItem is added to the list. The list owns the WorkItem. 40 virtual void AddWorkItem(WorkItem* work_item); 43 virtual WorkItem* AddCallbackWorkItem( 47 virtual WorkItem* AddCopyRegKeyWorkItem(HKEY predefined_root [all...] |
conditional_work_item_list.h | 37 class ConditionRunIfFileExists : public WorkItem::Condition { 49 class Not : public WorkItem::Condition { 51 explicit Not(WorkItem::Condition* original_condition) 56 scoped_ptr<WorkItem::Condition> original_condition_;
|
callback_work_item.h | 34 class CallbackWorkItem : public WorkItem { 44 friend class WorkItem;
|
create_dir_work_item.h | 13 // A WorkItem subclass that creates a directory with the specified path. 15 class CreateDirWorkItem : public WorkItem { 28 friend class WorkItem;
|
create_reg_key_work_item.h | 15 // A WorkItem subclass that creates a registry key at the given path. 17 class CreateRegKeyWorkItem : public WorkItem { 26 friend class WorkItem;
|
delete_reg_key_work_item.h | 19 // A WorkItem subclass that deletes a registry key at the given path. Be aware 22 class DeleteRegKeyWorkItem : public WorkItem { 31 friend class WorkItem;
|
self_reg_work_item.h | 14 class SelfRegWorkItem : public WorkItem { 22 friend class WorkItem;
|
work_item_list_unittest.cc | 53 // Execute a WorkItem list successfully and then rollback. 55 scoped_ptr<WorkItemList> work_item_list(WorkItem::CreateWorkItemList()); 56 scoped_ptr<WorkItem> work_item; 64 work_item.reset(reinterpret_cast<WorkItem*>( 65 WorkItem::CreateCreateDirWorkItem(dir_to_create))); 72 work_item.reset(reinterpret_cast<WorkItem*>( 73 WorkItem::CreateCreateRegKeyWorkItem(HKEY_CURRENT_USER, key_to_create))); 78 work_item.reset(reinterpret_cast<WorkItem*>( 79 WorkItem::CreateSetRegValueWorkItem(HKEY_CURRENT_USER, key_to_create, 105 // Execute a WorkItem list. Fail in the middle. Rollback what has been done [all...] |
copy_reg_key_work_item.h | 15 // A WorkItem subclass that replaces the contents of one registry key with that 20 class CopyRegKeyWorkItem : public WorkItem { 27 // Grant WorkItem access to the ctor (required by the existing WorkItem 29 friend class WorkItem; 48 // WorkItem::ALWAYS or WorkItem::IF_NOT_PRESENT.
|
delete_reg_value_work_item.h | 14 // A WorkItem subclass that deletes a registry value with REG_SZ, REG_DWORD, or 17 class DeleteRegValueWorkItem : public WorkItem { 26 friend class WorkItem;
|
delete_tree_work_item.h | 15 // A WorkItem subclass that recursively deletes a file system hierarchy at the 20 class DeleteTreeWorkItem : public WorkItem { 29 friend class WorkItem;
|
copy_reg_key_work_item_unittest.cc | 44 WorkItem::CreateCopyRegKeyWorkItem(test_data_.root_key(), key_path, 46 WorkItem::ALWAYS)); 63 WorkItem::CreateCopyRegKeyWorkItem(test_data_.root_key(), 66 WorkItem::ALWAYS)); 82 WorkItem::CreateCopyRegKeyWorkItem(test_data_.root_key(), 85 WorkItem::ALWAYS)); 111 WorkItem::CreateCopyRegKeyWorkItem(test_data_.root_key(), 114 WorkItem::IF_NOT_PRESENT)); 146 WorkItem::CreateCopyRegKeyWorkItem(test_data_.root_key(), 149 WorkItem::ALWAYS)) [all...] |
move_tree_work_item.h | 13 // A WorkItem subclass that recursively move a file system hierarchy from 21 class MoveTreeWorkItem : public WorkItem { 30 friend class WorkItem;
|
copy_tree_work_item.h | 13 // A WorkItem subclass that recursively copies a file system hierarchy from 26 class CopyTreeWorkItem : public WorkItem { 35 friend class WorkItem;
|
set_reg_value_work_item.h | 15 // A WorkItem subclass that sets a registry value with REG_SZ, REG_DWORD, or 18 class SetRegValueWorkItem : public WorkItem { 27 friend class WorkItem;
|
create_dir_work_item_unittest.cc | 42 WorkItem::CreateCreateDirWorkItem(dir_to_create)); 62 WorkItem::CreateCreateDirWorkItem(dir_to_create)); 86 WorkItem::CreateCreateDirWorkItem(dir_to_create_3)); 119 WorkItem::CreateCreateDirWorkItem(dir_to_create_3));
|
set_reg_value_work_item_unittest.cc | 61 WorkItem::CreateSetRegValueWorkItem(HKEY_CURRENT_USER, parent_key, 66 WorkItem::CreateSetRegValueWorkItem(HKEY_CURRENT_USER, parent_key, 100 WorkItem::CreateSetRegValueWorkItem(HKEY_CURRENT_USER, parent_key, 105 WorkItem::CreateSetRegValueWorkItem(HKEY_CURRENT_USER, parent_key, 145 WorkItem::CreateSetRegValueWorkItem(HKEY_CURRENT_USER, parent_key, 162 work_item.reset(WorkItem::CreateSetRegValueWorkItem(HKEY_CURRENT_USER, 199 WorkItem::CreateSetRegValueWorkItem(HKEY_CURRENT_USER, parent_key, 202 WorkItem::CreateSetRegValueWorkItem(HKEY_CURRENT_USER, parent_key, 234 WorkItem::CreateSetRegValueWorkItem(HKEY_CURRENT_USER, parent_key, name, 259 WorkItem::CreateSetRegValueWorkItem(HKEY_CURRENT_USER, parent_key [all...] |
delete_reg_value_work_item_unittest.cc | 65 WorkItem::CreateDeleteRegValueWorkItem(HKEY_CURRENT_USER, parent_key, 68 WorkItem::CreateDeleteRegValueWorkItem(HKEY_CURRENT_USER, parent_key, 71 WorkItem::CreateDeleteRegValueWorkItem(HKEY_CURRENT_USER, parent_key, 116 WorkItem::CreateDeleteRegValueWorkItem(HKEY_CURRENT_USER, parent_key, 119 WorkItem::CreateDeleteRegValueWorkItem(HKEY_CURRENT_USER, parent_key,
|
move_tree_work_item_unittest.cc | 88 WorkItem::CreateMoveTreeWorkItem(from_dir1, 91 WorkItem::ALWAYS_MOVE)); 143 WorkItem::CreateMoveTreeWorkItem(from_dir1, 146 WorkItem::ALWAYS_MOVE)); 186 WorkItem::CreateMoveTreeWorkItem(from_file, 189 WorkItem::ALWAYS_MOVE)); 233 WorkItem::CreateMoveTreeWorkItem(from_file, 236 WorkItem::ALWAYS_MOVE)); 293 WorkItem::CreateMoveTreeWorkItem(from_file, 296 WorkItem::ALWAYS_MOVE)) [all...] |
copy_tree_work_item.cc | 40 (overwrite_option_ == WorkItem::IF_DIFFERENT) && // only for single file 49 (overwrite_option_ == WorkItem::NEW_NAME_IF_IN_USE) && 67 (overwrite_option_ == WorkItem::IF_NOT_PRESENT)) {
|
work_item.h | 39 class WorkItem { 57 // TODO(robertshield): Move this out of WorkItem. 64 virtual ~WorkItem(); 170 // Perform the actions of WorkItem. Returns true if success, returns false 172 // If the WorkItem is transactional, then Do() is done as a transaction. 176 // Rollback any actions previously carried out by this WorkItem. If the 177 // WorkItem is transactional, then the previous actions can be fully 178 // rolled back. If the WorkItem is non-transactional, the rollback is a 182 // If called with true, this WorkItem may return true from its Do() method 188 // Returns true if this WorkItem should ignore failures [all...] |
/packages/apps/Gallery/src/com/android/camera/ |
ImageLoader.java | 37 private final ArrayList<WorkItem> mQueue = new ArrayList<WorkItem>(); 55 WorkItem w = new WorkItem(image, imageLoadedRunnable, tag); 96 private static class WorkItem { 101 WorkItem(IImage image, LoadedCallback onLoadedRunnable, int tag) { 120 WorkItem workItem = null; 126 workItem = mQueue.remove(0); 137 final Bitmap b = workItem.mImage.miniThumbBitmap() [all...] |
/external/jmonkeyengine/engine/src/desktop/com/jme3/app/state/ |
VideoRecorderAppState.java | 94 private class WorkItem { 100 public WorkItem(int width, int height) { 114 private LinkedBlockingQueue<WorkItem> freeItems; 115 private LinkedBlockingQueue<WorkItem> usedItems = new LinkedBlockingQueue<WorkItem>(); 123 final WorkItem item = freeItems.take(); 153 freeItems = new LinkedBlockingQueue<WorkItem>(); 155 freeItems.add(new WorkItem(width, height));
|