| Index: runtime/bin/utils_android.cc
|
| diff --git a/runtime/bin/utils_android.cc b/runtime/bin/utils_android.cc
|
| index e36ac11cdb1525e9b543bc023472f9fec85459b1..c7a4d63f98c57ccc7801fd751df3a2211745d232 100644
|
| --- a/runtime/bin/utils_android.cc
|
| +++ b/runtime/bin/utils_android.cc
|
| @@ -14,7 +14,6 @@
|
| #include "platform/assert.h"
|
| #include "platform/utils.h"
|
|
|
| -
|
| namespace dart {
|
| namespace bin {
|
|
|
| @@ -43,41 +42,49 @@ void OSError::SetCodeAndMessage(SubSystem sub_system, int code) {
|
| }
|
| }
|
|
|
| +
|
| const char* StringUtils::ConsoleStringToUtf8(
|
| const char* str, intptr_t len, intptr_t* result_len) {
|
| UNIMPLEMENTED();
|
| return NULL;
|
| }
|
|
|
| +
|
| const char* StringUtils::Utf8ToConsoleString(
|
| const char* utf8, intptr_t len, intptr_t* result_len) {
|
| UNIMPLEMENTED();
|
| return NULL;
|
| }
|
|
|
| +
|
| char* StringUtils::ConsoleStringToUtf8(
|
| char* str, intptr_t len, intptr_t* result_len) {
|
| UNIMPLEMENTED();
|
| return NULL;
|
| }
|
|
|
| +
|
| char* StringUtils::Utf8ToConsoleString(
|
| char* utf8, intptr_t len, intptr_t* result_len) {
|
| UNIMPLEMENTED();
|
| return NULL;
|
| }
|
|
|
| +
|
| bool ShellUtils::GetUtf8Argv(int argc, char** argv) {
|
| return false;
|
| }
|
|
|
| +
|
| void TimerUtils::InitOnce() {
|
| }
|
|
|
| +
|
| int64_t TimerUtils::GetCurrentMonotonicMillis() {
|
| return GetCurrentMonotonicMicros() / 1000;
|
| }
|
|
|
| +
|
| int64_t TimerUtils::GetCurrentMonotonicMicros() {
|
| struct timespec ts;
|
| if (clock_gettime(CLOCK_MONOTONIC, &ts) != 0) {
|
| @@ -91,6 +98,7 @@ int64_t TimerUtils::GetCurrentMonotonicMicros() {
|
| return result;
|
| }
|
|
|
| +
|
| void TimerUtils::Sleep(int64_t millis) {
|
| struct timespec req; // requested.
|
| struct timespec rem; // remainder.
|
|
|