Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
39fb8e03
Commit
39fb8e03
authored
Dec 30, 2013
by
Roman Donchenko
Browse files
Options
Browse Files
Download
Plain Diff
Merge commit '
b94963d3
' into merge-2.4
Conflicts: cmake/OpenCVGenAndroidMK.cmake
parents
ce7a2f7e
b94963d3
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
23 deletions
+23
-23
StringUtils.cpp
...ndroid/service/engine/jni/BinderComponent/StringUtils.cpp
+17
-17
StringUtils.h
.../android/service/engine/jni/BinderComponent/StringUtils.h
+2
-2
PackageInfo.cpp
.../android/service/engine/jni/NativeService/PackageInfo.cpp
+1
-1
PackageManagmentTest.cpp
...android/service/engine/jni/Tests/PackageManagmentTest.cpp
+1
-1
OpenCVEngineInterface.aidl
...e/engine/src/org/opencv/engine/OpenCVEngineInterface.aidl
+2
-2
No files found.
platforms/android/service/engine/jni/BinderComponent/StringUtils.cpp
View file @
39fb8e03
...
...
@@ -34,13 +34,13 @@ bool ParseString(const string& src, string& key, string& value)
if
(
src
.
empty
())
return
false
;
// find sep
o
rator ":"
size_t
sep
o
rator_pos
=
src
.
find
(
":"
);
if
(
string
::
npos
!=
sep
o
rator_pos
)
// find sep
a
rator ":"
size_t
sep
a
rator_pos
=
src
.
find
(
":"
);
if
(
string
::
npos
!=
sep
a
rator_pos
)
{
key
=
src
.
substr
(
0
,
sep
o
rator_pos
);
key
=
src
.
substr
(
0
,
sep
a
rator_pos
);
StripString
(
key
);
value
=
src
.
substr
(
sep
o
rator_pos
+
1
);
value
=
src
.
substr
(
sep
a
rator_pos
+
1
);
StripString
(
value
);
return
true
;
}
...
...
@@ -50,42 +50,42 @@ bool ParseString(const string& src, string& key, string& value)
}
}
set
<
string
>
SplitString
(
const
string
&
src
,
const
char
sep
o
rator
)
set
<
string
>
SplitString
(
const
string
&
src
,
const
char
sep
a
rator
)
{
set
<
string
>
result
;
if
(
!
src
.
empty
())
{
size_t
sep
o
rator_pos
;
size_t
sep
a
rator_pos
;
size_t
prev_pos
=
0
;
do
{
sep
orator_pos
=
src
.
find
(
sepo
rator
,
prev_pos
);
result
.
insert
(
src
.
substr
(
prev_pos
,
sep
o
rator_pos
-
prev_pos
));
prev_pos
=
sep
o
rator_pos
+
1
;
sep
arator_pos
=
src
.
find
(
sepa
rator
,
prev_pos
);
result
.
insert
(
src
.
substr
(
prev_pos
,
sep
a
rator_pos
-
prev_pos
));
prev_pos
=
sep
a
rator_pos
+
1
;
}
while
(
string
::
npos
!=
sep
o
rator_pos
);
while
(
string
::
npos
!=
sep
a
rator_pos
);
}
return
result
;
}
vector
<
string
>
SplitStringVector
(
const
string
&
src
,
const
char
sep
o
rator
)
vector
<
string
>
SplitStringVector
(
const
string
&
src
,
const
char
sep
a
rator
)
{
vector
<
string
>
result
;
if
(
!
src
.
empty
())
{
size_t
sep
o
rator_pos
;
size_t
sep
a
rator_pos
;
size_t
prev_pos
=
0
;
do
{
sep
orator_pos
=
src
.
find
(
sepo
rator
,
prev_pos
);
string
tmp
=
src
.
substr
(
prev_pos
,
sep
o
rator_pos
-
prev_pos
);
sep
arator_pos
=
src
.
find
(
sepa
rator
,
prev_pos
);
string
tmp
=
src
.
substr
(
prev_pos
,
sep
a
rator_pos
-
prev_pos
);
result
.
push_back
(
tmp
);
prev_pos
=
sep
o
rator_pos
+
1
;
prev_pos
=
sep
a
rator_pos
+
1
;
}
while
(
string
::
npos
!=
sep
o
rator_pos
);
while
(
string
::
npos
!=
sep
a
rator_pos
);
}
return
result
;
...
...
platforms/android/service/engine/jni/BinderComponent/StringUtils.h
View file @
39fb8e03
...
...
@@ -6,8 +6,8 @@
#include <vector>
bool
StripString
(
std
::
string
&
src
);
std
::
set
<
std
::
string
>
SplitString
(
const
std
::
string
&
src
,
const
char
sep
o
rator
);
std
::
set
<
std
::
string
>
SplitString
(
const
std
::
string
&
src
,
const
char
sep
a
rator
);
bool
ParseString
(
const
std
::
string
&
src
,
std
::
string
&
key
,
std
::
string
&
value
);
std
::
vector
<
std
::
string
>
SplitStringVector
(
const
std
::
string
&
src
,
const
char
sep
o
rator
);
std
::
vector
<
std
::
string
>
SplitStringVector
(
const
std
::
string
&
src
,
const
char
sep
a
rator
);
#endif
platforms/android/service/engine/jni/NativeService/PackageInfo.cpp
View file @
39fb8e03
...
...
@@ -203,7 +203,7 @@ inline int SplitPlatform(const vector<string>& features)
}
/* Package naming convention
* All parts of package name sep
o
rated by "_" symbol
* All parts of package name sep
a
rated by "_" symbol
* First part is base namespace.
* Second part is version. Version starts from "v" symbol. After "v" symbol version nomber without dot symbol added.
* If platform is known third part is platform name
...
...
platforms/android/service/engine/jni/Tests/PackageManagmentTest.cpp
View file @
39fb8e03
...
...
@@ -144,7 +144,7 @@ TEST(PackageManager, GetPackagePathForMips)
}
#endif
// TODO: Enable tests if sep
o
rate package will be exists
// TODO: Enable tests if sep
a
rate package will be exists
// TEST(PackageManager, GetPackagePathForTegra2)
// {
// PackageManagerStub pm;
...
...
platforms/android/service/engine/src/org/opencv/engine/OpenCVEngineInterface.aidl
View file @
39fb8e03
...
...
@@ -25,9 +25,9 @@ interface OpenCVEngineInterface
boolean
installVersion
(
String
version
);
/**
*
Return
list
of
libraries
in
loading
order
sep
o
rated
by
";"
symbol
*
Return
list
of
libraries
in
loading
order
sep
a
rated
by
";"
symbol
*
@
param
OpenCV
version
*
@
return
Returns
OpenCV
libraries
names
sep
o
rated
by
symbol
";"
in
loading
order
*
@
return
Returns
OpenCV
libraries
names
sep
a
rated
by
symbol
";"
in
loading
order
*/
String
getLibraryList
(
String
version
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment