Lines Matching defs:pasteboard
95 .bundleName = "ohos.privacy_test.pasteboard",
97 .appIDDesc = "privacy_test.pasteboard"
108 .domain = "test.domain.pasteboard",
187 OH_Pasteboard* pasteboard = OH_Pasteboard_Create();
188 void* context = static_cast<void*>(pasteboard);
195 OH_Pasteboard_Destroy(pasteboard);
206 OH_Pasteboard* pasteboard = OH_Pasteboard_Create();
207 void* context = static_cast<void*>(pasteboard);
220 OH_Pasteboard_Destroy(pasteboard);
231 OH_Pasteboard* pasteboard = OH_Pasteboard_Create();
232 EXPECT_NE(pasteboard, nullptr);
234 OH_Pasteboard_Destroy(pasteboard);
245 OH_Pasteboard* pasteboard = OH_Pasteboard_Create();
249 int res = OH_Pasteboard_Subscribe(pasteboard, NOTIFY_LOCAL_DATA_CHANGE, observer);
252 int resRepeat = OH_Pasteboard_Subscribe(pasteboard, NOTIFY_LOCAL_DATA_CHANGE, observer);
255 OH_Pasteboard_Destroy(pasteboard);
267 OH_Pasteboard* pasteboard = OH_Pasteboard_Create();
274 int res2 = OH_Pasteboard_Subscribe(pasteboard, 10, observer);
277 int res3 = OH_Pasteboard_Subscribe(pasteboard, -1, observer);
280 int res4 = OH_Pasteboard_Subscribe(pasteboard, NOTIFY_LOCAL_DATA_CHANGE, nullptr);
283 OH_Pasteboard_Destroy(pasteboard);
295 OH_Pasteboard* pasteboard = OH_Pasteboard_Create();
299 OH_Pasteboard_Subscribe(pasteboard, NOTIFY_LOCAL_DATA_CHANGE, observer);
301 int res = OH_Pasteboard_Unsubscribe(pasteboard, NOTIFY_LOCAL_DATA_CHANGE, observer);
304 OH_Pasteboard_Destroy(pasteboard);
316 OH_Pasteboard* pasteboard = OH_Pasteboard_Create();
323 int res2 = OH_Pasteboard_Unsubscribe(pasteboard, 10, observer);
326 int res3 = OH_Pasteboard_Unsubscribe(pasteboard, -1, observer);
329 int res4 = OH_Pasteboard_Unsubscribe(pasteboard, NOTIFY_LOCAL_DATA_CHANGE, nullptr);
332 OH_Pasteboard_Destroy(pasteboard);
344 OH_Pasteboard* pasteboard = OH_Pasteboard_Create();
346 bool res = OH_Pasteboard_IsRemoteData(pasteboard);
349 OH_Pasteboard_Destroy(pasteboard);
360 OH_Pasteboard* pasteboard = OH_Pasteboard_Create();
369 OH_Pasteboard_SetData(pasteboard, setData);
373 int res = OH_Pasteboard_GetDataSource(pasteboard, source, len);
376 OH_Pasteboard_Destroy(pasteboard);
387 OH_Pasteboard* pasteboard = OH_Pasteboard_Create();
396 OH_Pasteboard_SetData(pasteboard, setData);
398 bool res = OH_Pasteboard_HasType(pasteboard, type);
401 OH_Pasteboard_Destroy(pasteboard);
412 OH_Pasteboard* pasteboard = OH_Pasteboard_Create();
413 OH_Pasteboard_ClearData(pasteboard);
414 bool res = OH_Pasteboard_HasData(pasteboard);
425 OH_Pasteboard_SetData(pasteboard, setData);
427 res = OH_Pasteboard_HasData(pasteboard);
430 OH_Pasteboard_Destroy(pasteboard);
441 OH_Pasteboard* pasteboard = OH_Pasteboard_Create();
442 bool res = OH_Pasteboard_ClearData(pasteboard);
445 OH_Pasteboard_Destroy(pasteboard);
456 OH_Pasteboard* pasteboard = OH_Pasteboard_Create();
465 bool res = OH_Pasteboard_SetData(pasteboard, setData);
468 OH_Pasteboard_Destroy(pasteboard);
482 OH_Pasteboard* pasteboard = OH_Pasteboard_Create();
491 int res = OH_Pasteboard_SetData(pasteboard, setData);
495 OH_UdmfData* getData = OH_Pasteboard_GetData(pasteboard, &status);
508 OH_Pasteboard_Destroy(pasteboard);
524 OH_Pasteboard* pasteboard = OH_Pasteboard_Create();
534 int res = OH_Pasteboard_SetData(pasteboard, setData);
538 OH_UdmfData* getData = OH_Pasteboard_GetData(pasteboard, &status);
554 OH_Pasteboard_Destroy(pasteboard);
579 OH_Pasteboard* pasteboard = OH_Pasteboard_Create();
580 int res = OH_Pasteboard_SetData(pasteboard, setData);
584 OH_UdmfData* getData = OH_Pasteboard_GetData(pasteboard, &status);
599 OH_Pasteboard_Destroy(pasteboard);