Home
last modified time | relevance | path

Searched refs:ctx (Results 1 – 25 of 161) sorted by relevance

1234567

/aosp14/frameworks/base/core/java/android/app/
H A DSystemServiceRegistry.java316 return new ActivityManager(ctx.getOuterContext(), ctx.mMainThread.getHandler()); in registerService()
331 ctx.getOuterContext(), ctx.mMainThread.getHandler()); in registerService()
347 return new AudioManager(ctx); in registerService()
361 return new MediaRouter(ctx); in registerService()
588 return new PeopleManager(ctx); in registerService()
654 return new StorageManager(ctx, ctx.mMainThread.getHandler().getLooper()); in registerService()
748 return new SystemVibrator(ctx); in registerService()
815 return new CameraManager(ctx); in registerService()
822 return new LauncherApps(ctx); in registerService()
1054 return new RadioManager(ctx); in registerService()
[all …]
/aosp14/system/core/libstats/push_compat/include/
H A Dstats_event_list.h25 void reset_log_context(android_log_context ctx);
46 android_log_context ctx;
56 ~stats_event_list() { android_log_destroy(&ctx); } in ~stats_event_list()
59 int retval = android_log_destroy(&ctx); in close()
67 operator android_log_context() const { return ctx; } in android_log_context()
73 int retval = android_log_write_list_begin(ctx); in begin()
80 int retval = android_log_write_list_end(ctx); in end()
88 int retval = android_log_write_int32(ctx, value);
112 int retval = android_log_write_int64(ctx, value);
156 int retval = write_to_logger(ctx, id);
[all …]
/aosp14/frameworks/base/api/
H A Dapi.go203 ctx.CreateModule(java.LibraryFactory, &props)
215 ctx.CreateModule(java.LibraryFactory, &props)
226 ctx.CreateModule(java.LibraryFactory, &props)
236 ctx.CreateModule(java.LibraryFactory, &props)
253 ctx.CreateModule(java.LibraryFactory, &props)
277 ctx.CreateModule(java.LibraryFactory, &props)
328 createMergedTxt(ctx, txt)
341 createMergedPublicStubs(ctx, bootclasspath)
342 createMergedSystemStubs(ctx, bootclasspath)
345 createMergedFrameworkImpl(ctx, bootclasspath)
[all …]
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/log/
H A DBiometricFrameworkStatsLoggerTest.java37 final OperationContextExt ctx = new OperationContextExt(false); in testConvertsWakeReason_whenEmpty() local
39 final int reason = BiometricFrameworkStatsLogger.toProtoWakeReason(ctx); in testConvertsWakeReason_whenEmpty()
41 .toProtoWakeReasonDetails(ctx); in testConvertsWakeReason_whenEmpty()
51 final OperationContextExt ctx = new OperationContextExt(context, false); in testConvertsWakeReason_whenPowerReason() local
53 final int reason = BiometricFrameworkStatsLogger.toProtoWakeReason(ctx); in testConvertsWakeReason_whenPowerReason()
66 final OperationContextExt ctx = new OperationContextExt(context, false); in testConvertsWakeReason_whenFaceReason() local
68 final int reason = BiometricFrameworkStatsLogger.toProtoWakeReason(ctx); in testConvertsWakeReason_whenFaceReason()
70 .toProtoWakeReasonDetails(ctx); in testConvertsWakeReason_whenFaceReason()
86 .toProtoWakeReasonDetails(ctx); in testConvertsWakeReason_whenVendorReason()
103 .toProtoWakeReasonDetails(ctx); in testConvertsWakeReason_whenPowerAndFaceReason()
[all …]
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/camera/
H A DCameraServiceProxyTest.java41 Context ctx = InstrumentationRegistry.getContext(); in testGetCropRotateScale() local
50 assertThat(CameraServiceProxy.getCropRotateScale(ctx, ctx.getPackageName(), taskInfo, in testGetCropRotateScale()
55 assertThat(CameraServiceProxy.getCropRotateScale(ctx, ctx.getPackageName(), taskInfo, in testGetCropRotateScale()
61 assertThat(CameraServiceProxy.getCropRotateScale(ctx, ctx.getPackageName(), taskInfo, in testGetCropRotateScale()
66 assertThat(CameraServiceProxy.getCropRotateScale(ctx, ctx.getPackageName(), taskInfo, in testGetCropRotateScale()
73 assertThat(CameraServiceProxy.getCropRotateScale(ctx, ctx.getPackageName(), taskInfo, in testGetCropRotateScale()
85 assertThat(CameraServiceProxy.getCropRotateScale(ctx, ctx.getPackageName(), taskInfo, in testGetCropRotateScale()
95 assertThat(CameraServiceProxy.getCropRotateScale(ctx, ctx.getPackageName(), taskInfo, in testGetCropRotateScale()
/aosp14/frameworks/base/services/core/jni/BroadcastRadio/
H A DTuner.cpp132 delete ctx; in nativeFinalize()
162 if (ctx.mIsClosed) { in assignHalInterfaces()
172 ctx.mHalModule = halModule; in assignHalInterfaces()
173 ctx.mHalTuner = halTuner; in assignHalInterfaces()
175 ALOGW_IF(ctx.mHalRev >= HalRevision::V1_1 && ctx.mHalTuner11 == nullptr, in assignHalInterfaces()
183 auto tuner = ctx.mHalTuner; in getHalTuner()
211 if (ctx.mIsClosed) return; in nativeClose()
212 ctx.mIsClosed = true; in nativeClose()
221 ctx.mHalTuner->unlinkToDeath(ctx.mHalDeathRecipient); in nativeClose()
224 ctx.mHalTuner11 = nullptr; in nativeClose()
[all …]
H A DBroadcastRadioService.cpp116 auto ctx = reinterpret_cast<ServiceContext*>(nativeContext); in nativeFinalize() local
117 delete ctx; in nativeFinalize()
123 auto& ctx = getNativeContext(nativeContext); in nativeLoadModules() local
139 ctx.mModules.clear(); in nativeLoadModules()
172 auto idx = ctx.mModules.size(); in nativeLoadModules()
173 ctx.mModules.push_back({module10, halRev, {}}); in nativeLoadModules()
174 auto& nModule = ctx.mModules[idx]; in nativeLoadModules()
208 auto& ctx = getNativeContext(nativeContext); in nativeOpenTuner() local
215 if (moduleId < 0 || static_cast<size_t>(moduleId) >= ctx.mModules.size()) { in nativeOpenTuner()
221 auto module = ctx.mModules[moduleId]; in nativeOpenTuner()
H A DTunerCallback.cpp363 auto ctx = new TunerCallbackContext(); in nativeInit() local
364 ctx->mNativeCallback = new NativeCallback(env, jTuner, obj, halRev); in nativeInit()
367 return reinterpret_cast<jlong>(ctx); in nativeInit()
374 auto ctx = reinterpret_cast<TunerCallbackContext*>(nativeContext); in nativeFinalize() local
375 delete ctx; in nativeFinalize()
381 auto& ctx = getNativeContext(nativeContext); in nativeDetach() local
383 if (ctx.mNativeCallback == nullptr) return; in nativeDetach()
384 ctx.mNativeCallback->detach(); in nativeDetach()
385 ctx.mNativeCallback = nullptr; in nativeDetach()
390 auto& ctx = getNativeContext(env, jTunerCallback); in getNativeCallback() local
[all …]
/aosp14/frameworks/base/core/jni/
H A Deventlog_helper.h78 ctx << (int32_t)value; in writeEventInteger()
79 return ctx.write(LogID); in writeEventInteger()
84 ctx << (int64_t)value; in writeEventLong()
85 return ctx.write(LogID); in writeEventLong()
90 ctx << (float)value; in writeEventFloat()
91 return ctx.write(LogID); in writeEventFloat()
99 return ctx.write(LogID); in writeEventString()
106 ctx << "[NULL]"; in writeEventArray()
107 return ctx.write(LogID); in writeEventArray()
115 ctx << "NULL"; in writeEventArray()
[all …]
/aosp14/frameworks/base/media/jni/
H A Dandroid_media_ImageReader.cpp245 JNIImageReaderContext *ctx; in ImageReader_getContext() local
248 return ctx; in ImageReader_getContext()
255 if (ctx == NULL) { in ImageReader_getProducer()
260 return ctx->getProducer(); in ImageReader_getProducer()
268 if (ctx != 0) { in ImageReader_setNativeContext()
282 if (ctx == NULL) { in ImageReader_getBufferConsumer()
454 if (ctx == NULL) { in ImageReader_close()
506 if (ctx == NULL) { in ImageReader_imageRelease()
528 if (ctx == NULL) { in ImageReader_imageSetup()
649 if (ctx == NULL) { in ImageReader_detachImage()
[all …]
H A Dandroid_media_ImageWriter.cpp400 ctx->setProducer(producer); in ImageWriter_init()
431 ctx->setBufferWidth(width); in ImageWriter_init()
442 ctx->setBufferHeight(height); in ImageWriter_init()
535 if (ctx != 0) { in ImageWriter_init()
544 if (ctx == NULL || thiz == NULL) { in ImageWriter_dequeueImage()
584 if (ctx == NULL || thiz == NULL) { in ImageWriter_close()
619 if (ctx == NULL || thiz == NULL) { in ImageWriter_cancelImage()
714 ctx->queueAttachedFlag(false); in ImageWriter_queueImage()
718 ctx->dequeueAttachedFlag(); in ImageWriter_queueImage()
801 ctx->queueAttachedFlag(true); in attachAndQeueuGraphicBuffer()
[all …]
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/accessibility/
H A DAccessibilityButtonHelper.java31 public static boolean isRequestedByMagnification(Context ctx) { in isRequestedByMagnification() argument
32 return Settings.Secure.getInt(ctx.getContentResolver(), in isRequestedByMagnification()
36 public static boolean isRequestedByAccessibilityService(Context ctx) { in isRequestedByAccessibilityService() argument
37 final AccessibilityManager accessibilityManager = ctx.getSystemService( in isRequestedByAccessibilityService()
54 public static boolean isRequested(Context ctx) { in isRequested() argument
55 return isRequestedByMagnification(ctx) || isRequestedByAccessibilityService(ctx); in isRequested()
/aosp14/system/core/libasyncio/
H A DAsyncIO.cpp27 int io_destroy(aio_context_t ctx) { in io_destroy() argument
28 return syscall(__NR_io_destroy, ctx); in io_destroy()
31 int io_submit(aio_context_t ctx, long nr, iocb** iocbpp) { in io_submit() argument
32 return syscall(__NR_io_submit, ctx, nr, iocbpp); in io_submit()
35 int io_getevents(aio_context_t ctx, long min_nr, long max_nr, io_event* events, timespec* timeout) { in io_getevents() argument
36 return syscall(__NR_io_getevents, ctx, min_nr, max_nr, events, timeout); in io_getevents()
39 int io_cancel(aio_context_t ctx, iocb* iocbp, io_event* result) { in io_cancel() argument
40 return syscall(__NR_io_cancel, ctx, iocbp, result); in io_cancel()
/aosp14/frameworks/base/services/core/java/com/android/server/biometrics/sensors/face/
H A DFaceUtils.java89 public List<Face> getBiometricsForUser(Context ctx, int userId) { in getBiometricsForUser() argument
90 return getStateForUser(ctx, userId).getBiometrics(); in getBiometricsForUser()
94 public void addBiometricForUser(Context ctx, int userId, Face face) { in addBiometricForUser() argument
95 getStateForUser(ctx, userId).addBiometric(face); in addBiometricForUser()
99 public void removeBiometricForUser(Context ctx, int userId, int faceId) { in removeBiometricForUser() argument
100 getStateForUser(ctx, userId).removeBiometric(faceId); in removeBiometricForUser()
104 public void renameBiometricForUser(Context ctx, int userId, int faceId, CharSequence name) { in renameBiometricForUser() argument
109 getStateForUser(ctx, userId).renameBiometric(faceId, name); in renameBiometricForUser()
127 private FaceUserState getStateForUser(Context ctx, int userId) { in getStateForUser() argument
131 state = new FaceUserState(ctx, userId, mFileName); in getStateForUser()
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/animation/
H A DDisappearAnimationUtils.java28 public DisappearAnimationUtils(Context ctx) { in DisappearAnimationUtils() argument
29 this(ctx, DEFAULT_APPEAR_DURATION, in DisappearAnimationUtils()
31 AnimationUtils.loadInterpolator(ctx, android.R.interpolator.fast_out_linear_in)); in DisappearAnimationUtils()
34 public DisappearAnimationUtils(Context ctx, long duration, float translationScaleFactor, in DisappearAnimationUtils() argument
36 this(ctx, duration, translationScaleFactor, delayScaleFactor, interpolator, in DisappearAnimationUtils()
40 public DisappearAnimationUtils(Context ctx, long duration, float translationScaleFactor, in DisappearAnimationUtils() argument
42 super(ctx, duration, translationScaleFactor, delayScaleFactor, interpolator); in DisappearAnimationUtils()
/aosp14/frameworks/base/core/tests/coretests/src/android/provider/
H A DFontsContractE2ETest.java117 Context ctx = inst.getTargetContext(); in typefaceCacheTest() local
123 FontsContract.requestFonts(ctx, request, new Handler(), null, callback); in typefaceCacheTest()
134 FontsContract.requestFonts(ctx, request, new Handler(), null, callback2); in typefaceCacheTest()
156 Context ctx = inst.getTargetContext(); in typefaceNotCacheTest() local
161 ctx, null /* cancellation signal */, request); in typefaceNotCacheTest()
164 ctx, null /* cancellation signal */, result.getFonts()); in typefaceNotCacheTest()
167 ctx, null /* cancellation signal */, request); in typefaceNotCacheTest()
170 ctx, null /* cancellation signal */, result2.getFonts()); in typefaceNotCacheTest()
179 Context ctx = inst.getTargetContext(); in typefaceNullFdTest() local
184 ctx, null /* cancellation signal */, request); in typefaceNullFdTest()
[all …]
/aosp14/system/core/libstats/push_compat/
H A Dstats_event_list.c48 void reset_log_context(android_log_context ctx) { in reset_log_context() argument
49 if (!ctx) { in reset_log_context()
52 android_log_context_internal* context = (android_log_context_internal*)(ctx); in reset_log_context()
68 int stats_write_list(android_log_context ctx) { in stats_write_list() argument
73 context = (android_log_context_internal*)(ctx); in stats_write_list()
103 int write_to_logger(android_log_context ctx, log_id_t id) { in write_to_logger() argument
107 retValue = android_log_write_list(ctx, id); in write_to_logger()
112 int ret = stats_write_list(ctx); in write_to_logger()
206 int android_log_write_char_array(android_log_context ctx, const char* value, size_t actual_len) { in android_log_write_char_array() argument
211 context = (android_log_context_internal*)ctx; in android_log_write_char_array()
/aosp14/system/core/libcrypto_utils/
H A Dandroid_pubkey.cpp114 BN_CTX* ctx = BN_CTX_new(); in android_pubkey_encode() local
127 if (!ctx || !r32 || !n0inv || !BN_set_bit(r32, 32) || !BN_mod(n0inv, RSA_get0_n(key), r32, ctx) || in android_pubkey_encode()
128 !BN_mod_inverse(n0inv, n0inv, r32, ctx) || !BN_sub(n0inv, r32, n0inv)) { in android_pubkey_encode()
139 if (!ctx || !rr || !BN_set_bit(rr, ANDROID_PUBKEY_MODULUS_SIZE * 8) || in android_pubkey_encode()
140 !BN_mod_sqr(rr, rr, RSA_get0_n(key), ctx) || in android_pubkey_encode()
154 BN_CTX_free(ctx); in android_pubkey_encode()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/wrapper/
H A DNotificationViewWrapper.java64 return new NotificationBigPictureTemplateViewWrapper(ctx, v, row); in wrap()
66 return new NotificationBigTextTemplateViewWrapper(ctx, v, row); in wrap()
68 return new NotificationMediaTemplateViewWrapper(ctx, v, row); in wrap()
70 return new NotificationMessagingTemplateViewWrapper(ctx, v, row); in wrap()
72 return new NotificationConversationTemplateViewWrapper(ctx, v, row); in wrap()
74 return new NotificationCallTemplateViewWrapper(ctx, v, row); in wrap()
78 return new NotificationDecoratedCustomViewWrapper(ctx, v, row); in wrap()
81 return new NotificationDecoratedCustomViewWrapper(ctx, v, row); in wrap()
83 return new NotificationTemplateViewWrapper(ctx, v, row); in wrap()
85 return new NotificationHeaderViewWrapper(ctx, v, row); in wrap()
[all …]
/aosp14/system/core/fs_mgr/libsnapshot/
H A Dtest_helpers.cpp97 SHA256_CTX ctx; in WriteRandomData() local
99 SHA256_Init(&ctx); in WriteRandomData()
116 SHA256_Update(&ctx, buf, n); in WriteRandomData()
127 SHA256_Final(out, &ctx); in WriteRandomData()
139 SHA256_CTX ctx; in HashSnapshot() local
140 SHA256_Init(&ctx); in HashSnapshot()
155 SHA256_Update(&ctx, buffer, to_read); in HashSnapshot()
160 SHA256_Final(out, &ctx); in HashSnapshot()
170 SHA256_CTX ctx; in GetHash() local
171 SHA256_Init(&ctx); in GetHash()
[all …]
/aosp14/system/core/libasyncio/include/asyncio/
H A DAsyncIO.h37 int io_destroy(aio_context_t ctx);
38 int io_submit(aio_context_t ctx, long nr, struct iocb** iocbpp);
39 int io_getevents(aio_context_t ctx, long min_nr, long max_nr, struct io_event* events,
41 int io_cancel(aio_context_t ctx, struct iocb*, struct io_event* result);
/aosp14/frameworks/base/tools/aapt2/optimize/
H A DMultiApkGenerator_test.cpp110 std::unique_ptr<IAaptContext> ctx = test::ContextBuilder().SetMinSdkVersion(19).Build(); in TEST_F() local
115 MultiApkGeneratorWrapper generator{&apk, ctx.get()}; in TEST_F()
117 generator.FilterTable(ctx.get(), artifact, *apk.GetResourceTable(), &chain); in TEST_F()
137 std::unique_ptr<IAaptContext> ctx = test::ContextBuilder().SetMinSdkVersion(1).Build(); in TEST_F() local
142 MultiApkGeneratorWrapper generator{&apk, ctx.get()};; in TEST_F()
144 generator.FilterTable(ctx.get(), artifact, *apk.GetResourceTable(), &chain); in TEST_F()
162 std::unique_ptr<IAaptContext> ctx = test::ContextBuilder().SetMinSdkVersion(1).Build(); in TEST_F() local
167 MultiApkGeneratorWrapper generator{&apk, ctx.get()}; in TEST_F()
169 generator.FilterTable(ctx.get(), artifact, *apk.GetResourceTable(), &chain); in TEST_F()
/aosp14/frameworks/base/services/backup/java/com/android/server/backup/
H A DKeyValueBackupJob.java67 public static void schedule(int userId, Context ctx, in schedule() argument
69 schedule(userId, ctx, 0, userBackupManagerService); in schedule()
72 public static void schedule(int userId, Context ctx, long delay, in schedule() argument
110 JobScheduler js = (JobScheduler) ctx.getSystemService(Context.JOB_SCHEDULER_SERVICE); in schedule()
118 public static void cancel(int userId, Context ctx) { in cancel() argument
120 JobScheduler js = (JobScheduler) ctx.getSystemService( in cancel()
/aosp14/frameworks/base/core/tests/coretests/src/android/net/
H A DSSLSessionCacheTest.java41 final SSLContext ctx = SSLContext.getDefault(); in testInstall_compatibleContext() local
43 final ClientSessionContext clientCtx = (ClientSessionContext) ctx.getClientSessionContext(); in testInstall_compatibleContext()
46 SSLSessionCache.install(new SSLSessionCache(mock), ctx); in testInstall_compatibleContext()
49 SSLSessionCache.install(null, ctx); in testInstall_compatibleContext()
/aosp14/frameworks/base/core/java/com/android/internal/widget/
H A DColoredIconHelper.java41 static void applyGrayTint(Context ctx, Drawable drawable, boolean apply, int originalColor) { in applyGrayTint() argument
47 Configuration config = ctx.getResources().getConfiguration(); in applyGrayTint()
50 int grey = ContrastColorUtil.resolveColor(ctx, Notification.COLOR_DEFAULT, inNightMode); in applyGrayTint()

1234567