mkdir -p %{buildroot}/usr/apps/%{name}/bin
mkdir -p %{buildroot}%{INTERNAL_STORAGE_PATH}res
+
%if %{?DEVICE_BUILD_TYPE_MOBILE:1}0
cp -rf src/utc/media-content/res/mobile/* %{buildroot}%{INTERNAL_STORAGE_PATH}res/
%endif
chsmack -a User::App::Shared %{INTERNAL_STORAGE_PATH}res/test/*
%postun
-rm -rf %{buildroot}%{INTERNAL_STORAGE_PATH}res
+rm -rf %{INTERNAL_STORAGE_PATH}/res
%files
/usr/apps/%{name}/*
static bool g_bCallbackPushRequested = false;
+static const char *g_szDest = "/tmp";
/**
* @brief Callback funtions
{
START_TEST;
int nTimeoutId = 0;
- char szFilePath[PATH_LEN] = {0,};
- if ( false == BluetoothGetStorageDownloadsPath(szFilePath))
- {
- return 1;
- }
- int nRetVal = bt_opp_server_initialize_by_connection_request(szFilePath, Bluetooth_bt_opp_server_connection_requested_cb_p, NULL);
+ int nRetVal = bt_opp_server_initialize_by_connection_request(g_szDest, Bluetooth_bt_opp_server_connection_requested_cb_p, NULL);
if ( !g_bBluetoothIsOPPSupported )
{
PRINT_RESULT(BT_ERROR_NOT_SUPPORTED, nRetVal, "bt_opp_server_initialize_by_connection_request", BluetoothGetError(nRetVal));
{
START_TEST;
int nTimeoutId = 0;
- char szFilePath[PATH_LEN] = {0,};
-
-
- if ( false == BluetoothGetStorageDownloadsPath(szFilePath))
- {
- return 1;
- }
- int nRetVal = bt_opp_server_initialize_by_connection_request(szFilePath, Bluetooth_bt_opp_server_connection_requested_cb_p, NULL);
+ int nRetVal = bt_opp_server_initialize_by_connection_request(g_szDest, Bluetooth_bt_opp_server_connection_requested_cb_p, NULL);
if ( !g_bBluetoothIsOPPSupported )
{
PRINT_RESULT(BT_ERROR_NOT_SUPPORTED, nRetVal, "bt_opp_server_initialize_by_connection_request", BluetoothGetError(nRetVal));
PRINT_RESULT(BT_ERROR_NONE, nRetVal, "bt_opp_server_initialize_by_connection_request", BluetoothGetError(nRetVal));
WAIT(SHORT_DELAY);
- nRetVal = bt_opp_server_set_destination(szFilePath);
+ nRetVal = bt_opp_server_set_destination(g_szDest);
PRINT_RESULT_CLEANUP(BT_ERROR_NONE, nRetVal, "bt_opp_server_set_destination", BluetoothGetError(nRetVal),bt_opp_server_deinitialize());
nRetVal = bt_opp_server_deinitialize();
return;
}
- ret = media_bookmark_insert_to_db(g_media_id, 1437008628, img_path);
+ time_t stTime = {0};
+ time(&stTime);
+ fprintf(stderr, "%s:%d img_path = %s\n", __FILE__, __LINE__, img_path);
+ ret = media_bookmark_insert_to_db(g_media_id, stTime, img_path);
if (ret != MEDIA_CONTENT_ERROR_NONE) {
fprintf(stderr, "Startup error at %s:%d\n", __FILE__, __LINE__);
fprintf(stderr, "media_bookmark_insert_to_db failed (code: %d)\n", ret);
int ret = MEDIA_CONTENT_ERROR_NONE;
- ret = media_bookmark_insert_to_db(g_media_id, 1437008628, img_file);
+ time_t stTime = {0};
+ time(&stTime);
+ fprintf(stderr, "%s:%d img_path = %s\n", __FILE__, __LINE__, img_path);
+ ret = media_bookmark_insert_to_db(g_media_id, stTime, img_path);
assert_eq(ret, MEDIA_CONTENT_ERROR_NONE);
ret = media_info_foreach_bookmark_from_db(g_media_id, NULL, bookmark_cb, NULL);
return;
}
- ret = media_bookmark_insert_to_db(g_media_id, 1437008628, img_path);
+ time_t stTime = {0};
+ time(&stTime);
+ fprintf(stderr, "%s:%d img_path = %s\n", __FILE__, __LINE__, img_path);
+ ret = media_bookmark_insert_to_db(g_media_id, stTime, img_path);
if (ret != MEDIA_CONTENT_ERROR_NONE) {
fprintf(stderr, "Startup error at %s:%d\n", __FILE__, __LINE__);
fprintf(stderr, "media_bookmark_insert_to_db failed (code: %d)\n", ret);