Searched refs:pasteboard (Results 1 - 5 of 5) sorted by relevance
/foundation/distributeddatamgr/pasteboard/interfaces/ndk/src/ |
H A D | oh_pasteboard.cpp | 34 static bool IsPasteboardValid(OH_Pasteboard *pasteboard) in IsPasteboardValid() argument 36 return pasteboard != nullptr && pasteboard->cid == PASTEBOARD_STRUCT_ID; in IsPasteboardValid() 94 OH_Pasteboard *pasteboard = new (std::nothrow) OH_Pasteboard(); in OH_Pasteboard_Create() local 95 if (pasteboard == nullptr) { in OH_Pasteboard_Create() 99 return pasteboard; in OH_Pasteboard_Create() 102 void OH_Pasteboard_Destroy(OH_Pasteboard *pasteboard) in OH_Pasteboard_Destroy() argument 104 if (!IsPasteboardValid(pasteboard)) { in OH_Pasteboard_Destroy() 107 std::lock_guard<std::mutex> lock(pasteboard->mutex); in OH_Pasteboard_Destroy() 108 for (auto iter : pasteboard in OH_Pasteboard_Destroy() 118 OH_Pasteboard_Subscribe(OH_Pasteboard *pasteboard, int type, const OH_PasteboardObserver *observer) OH_Pasteboard_Subscribe() argument 141 OH_Pasteboard_Unsubscribe(OH_Pasteboard *pasteboard, int type, const OH_PasteboardObserver *observer) OH_Pasteboard_Unsubscribe() argument 158 OH_Pasteboard_IsRemoteData(OH_Pasteboard *pasteboard) OH_Pasteboard_IsRemoteData() argument 166 OH_Pasteboard_GetDataSource(OH_Pasteboard *pasteboard, char *source, unsigned int len) OH_Pasteboard_GetDataSource() argument 184 OH_Pasteboard_HasType(OH_Pasteboard *pasteboard, const char *type) OH_Pasteboard_HasType() argument 192 OH_Pasteboard_HasData(OH_Pasteboard *pasteboard) OH_Pasteboard_HasData() argument 200 OH_Pasteboard_GetData(OH_Pasteboard *pasteboard, int *status) OH_Pasteboard_GetData() argument 219 OH_Pasteboard_SetData(OH_Pasteboard *pasteboard, OH_UdmfData *data) OH_Pasteboard_SetData() argument 233 OH_Pasteboard_ClearData(OH_Pasteboard *pasteboard) OH_Pasteboard_ClearData() argument [all...] |
/foundation/distributeddatamgr/pasteboard/interfaces/ndk/unittest/ |
H A D | pasteboard_capi_test.cpp | 95 .bundleName = "ohos.privacy_test.pasteboard", in AllocTestTokenId() 97 .appIDDesc = "privacy_test.pasteboard" in AllocTestTokenId() 108 .domain = "test.domain.pasteboard", in AllocTestTokenId() 187 OH_Pasteboard* pasteboard = OH_Pasteboard_Create(); in HWTEST_F() local 188 void* context = static_cast<void*>(pasteboard); in HWTEST_F() 195 OH_Pasteboard_Destroy(pasteboard); in HWTEST_F() 206 OH_Pasteboard* pasteboard = OH_Pasteboard_Create(); in HWTEST_F() local 207 void* context = static_cast<void*>(pasteboard); in HWTEST_F() 220 OH_Pasteboard_Destroy(pasteboard); in HWTEST_F() 231 OH_Pasteboard* pasteboard in HWTEST_F() local 245 OH_Pasteboard* pasteboard = OH_Pasteboard_Create(); HWTEST_F() local 267 OH_Pasteboard* pasteboard = OH_Pasteboard_Create(); HWTEST_F() local 295 OH_Pasteboard* pasteboard = OH_Pasteboard_Create(); HWTEST_F() local 316 OH_Pasteboard* pasteboard = OH_Pasteboard_Create(); HWTEST_F() local 344 OH_Pasteboard* pasteboard = OH_Pasteboard_Create(); HWTEST_F() local 360 OH_Pasteboard* pasteboard = OH_Pasteboard_Create(); HWTEST_F() local 387 OH_Pasteboard* pasteboard = OH_Pasteboard_Create(); HWTEST_F() local 412 OH_Pasteboard* pasteboard = OH_Pasteboard_Create(); HWTEST_F() local 441 OH_Pasteboard* pasteboard = OH_Pasteboard_Create(); HWTEST_F() local 456 OH_Pasteboard* pasteboard = OH_Pasteboard_Create(); HWTEST_F() local 482 OH_Pasteboard* pasteboard = OH_Pasteboard_Create(); HWTEST_F() local 524 OH_Pasteboard* pasteboard = OH_Pasteboard_Create(); HWTEST_F() local 579 OH_Pasteboard* pasteboard = OH_Pasteboard_Create(); HWTEST_F() local [all...] |
/foundation/distributeddatamgr/pasteboard/interfaces/ndk/include/ |
H A D | oh_pasteboard.h | 154 * @param pasteboard Pointer to the {@link OH_Pasteboard} instance to destroy. 158 void OH_Pasteboard_Destroy(OH_Pasteboard* pasteboard); 163 * @param pasteboard Pointer to the {@link OH_Pasteboard} instance. 166 * reporting the pasteboard data change. For details, see {@link OH_PasteboardObserver}. 173 int OH_Pasteboard_Subscribe(OH_Pasteboard* pasteboard, int type, const OH_PasteboardObserver* observer); 178 * @param pasteboard Pointer to the {@link OH_Pasteboard} instance. 181 * reporting the pasteboard data change. For details, see {@link OH_PasteboardObserver}. 188 int OH_Pasteboard_Unsubscribe(OH_Pasteboard* pasteboard, int type, const OH_PasteboardObserver* observer); 193 * @param pasteboard Pointer to the {@link OH_Pasteboard} instance. 200 bool OH_Pasteboard_IsRemoteData(OH_Pasteboard* pasteboard); [all...] |
/foundation/distributeddatamgr/pasteboard/interfaces/kits/napi/test/unittest/pasteboardperf/ |
H A D | PasteBoardDelayPerfJsunit.test.js | 17 import pasteboard from '@ohos.pasteboard'
65 const systemPasteboard = pasteboard.getSystemPasteboard();
84 const systemPasteboard = pasteboard.getSystemPasteboard();
|
/foundation/arkui/ace_engine/advanced_ui_component/selectionmenu/interfaces/ |
H A D | selectionmenu.js | 15 const pasteboard = requireNapi('pasteboard'); 312 let sysBoard = pasteboard.getSystemPasteboard(); 360 let sysBoard = pasteboard.getSystemPasteboard(); 361 let pasteData = pasteboard.createData(pasteboard.MIMETYPE_TEXT_PLAIN, ''); 369 let data = pasteboard.createRecord(pasteboard.MIMETYPE_TEXT_PLAIN, span.value.substring(span.offsetInSpan[0], span.offsetInSpan[1])); 402 let sysBoard = pasteboard.getSystemPasteboard(); 445 if (element && element.plainText && element.mimeType === pasteboard [all...] |
Completed in 3 milliseconds