blob: 33da315cbe59bb6944263d9826d8880b2d716d10 [file] [log] [blame]
// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/base/text/bytes_formatting.h"
#include <jni.h>
#include "base/android/jni_string.h"
#include "base/byte_count.h"
#include "ui/android/ui_android_jni_headers/BytesFormatting_jni.h"
namespace ui {
static jni_zero::ScopedJavaLocalRef<jstring> JNI_BytesFormatting_FormatSpeed(
JNIEnv* env,
jlong speed) {
return base::android::ConvertUTF16ToJavaString(
env, FormatSpeed(base::ByteCount(speed)));
}
} // namespace ui