/frameworks/base/core/java/android/app/ |
D | SystemServiceRegistry.java | 273 public AccessibilityManager createService(ContextImpl ctx) { in registerService() argument 274 return AccessibilityManager.getInstance(ctx); in registerService() 280 public CaptioningManager createService(ContextImpl ctx) { in registerService() argument 281 return new CaptioningManager(ctx); in registerService() 287 public AccountManager createService(ContextImpl ctx) throws ServiceNotFoundException { in registerService() 290 return new AccountManager(ctx, service); in registerService() 296 public ActivityManager createService(ContextImpl ctx) { in registerService() 297 return new ActivityManager(ctx.getOuterContext(), ctx.mMainThread.getHandler()); in registerService() 303 public ActivityTaskManager createService(ContextImpl ctx) { in registerService() 310 public UriGrantsManager createService(ContextImpl ctx) { in registerService() [all …]
|
/frameworks/base/services/core/jni/BroadcastRadio/ |
D | Tuner.cpp | 118 auto ctx = new TunerContext(); in nativeInit() local 119 ctx->mHalRev = static_cast<HalRevision>(halRev); in nativeInit() 120 ctx->mWithAudio = withAudio; in nativeInit() 121 ctx->mBand = static_cast<Band>(band); in nativeInit() 123 static_assert(sizeof(jlong) >= sizeof(ctx), "jlong is smaller than a pointer"); in nativeInit() 124 return reinterpret_cast<jlong>(ctx); in nativeInit() 131 auto ctx = reinterpret_cast<TunerContext*>(nativeContext); in nativeFinalize() local 132 delete ctx; in nativeFinalize() 160 auto& ctx = getNativeContext(env, jTuner); in assignHalInterfaces() local 162 if (ctx.mIsClosed) { in assignHalInterfaces() [all …]
|
D | BroadcastRadioService.cpp | 116 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()
|
/frameworks/native/libs/adbd_auth/include/ |
D | adbd_auth.h | 68 void adbd_auth_delete(AdbdAuthContext* ctx) __INTRODUCED_IN(30); 78 void adbd_auth_run(AdbdAuthContext* ctx) __INTRODUCED_IN(30); 89 void adbd_auth_get_public_keys(AdbdAuthContext* ctx, 101 uint64_t adbd_auth_notify_auth(AdbdAuthContext* ctx, 111 void adbd_auth_notify_disconnect(AdbdAuthContext* ctx, 124 void adbd_auth_prompt_user(AdbdAuthContext* ctx, const char* public_key, size_t len, void* opaque) 138 __attribute__((weak)) uint64_t adbd_auth_prompt_user_with_id(AdbdAuthContext* ctx, 151 uint64_t adbd_auth_tls_device_connected(AdbdAuthContext* ctx, 163 void adbd_auth_tls_device_disconnected(AdbdAuthContext* ctx,
|
/frameworks/base/core/jni/ |
D | eventlog_helper.h | 77 android_log_event_list ctx(tag); in writeEventInteger() 78 ctx << (int32_t)value; in writeEventInteger() 79 return ctx.write(LogID); in writeEventInteger() 83 android_log_event_list ctx(tag); in writeEventLong() 84 ctx << (int64_t)value; in writeEventLong() 85 return ctx.write(LogID); in writeEventLong() 89 android_log_event_list ctx(tag); in writeEventFloat() 90 ctx << (float)value; in writeEventFloat() 91 return ctx.write(LogID); in writeEventFloat() 95 android_log_event_list ctx(tag); in writeEventString() [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/accessibility/ |
D | AccessibilityButtonHelper.java | 31 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()
|
/frameworks/rs/tests/java_api/RsTest_11/src/com/android/rs/test/ |
D | UnitTest.java | 37 protected UnitTest(RSTestCore rstc, String n, int initResult, Context ctx) { in UnitTest() argument 42 mCtx = ctx; in UnitTest() 47 protected UnitTest(RSTestCore rstc, String n, Context ctx) { in UnitTest() argument 48 this(rstc, n, 0, ctx); in UnitTest() 51 protected UnitTest(RSTestCore rstc, Context ctx) { in UnitTest() argument 52 this (rstc, "<Unknown>", ctx); in UnitTest() 55 protected UnitTest(Context ctx) { in UnitTest() argument 56 this (null, ctx); in UnitTest()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/animation/ |
D | DisappearAnimationUtils.java | 28 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()
|
/frameworks/rs/tests/java_api/RsTest_14/src/com/android/rs/test/ |
D | UnitTest.java | 37 protected UnitTest(RSTestCore rstc, String n, int initResult, Context ctx) { in UnitTest() argument 42 mCtx = ctx; in UnitTest() 47 protected UnitTest(RSTestCore rstc, String n, Context ctx) { in UnitTest() argument 48 this(rstc, n, 0, ctx); in UnitTest() 51 protected UnitTest(RSTestCore rstc, Context ctx) { in UnitTest() argument 52 this (rstc, "<Unknown>", ctx); in UnitTest() 55 protected UnitTest(Context ctx) { in UnitTest() argument 56 this (null, ctx); in UnitTest()
|
/frameworks/rs/tests/java_api/RsTest_16/src/com/android/rs/test/ |
D | UnitTest.java | 37 protected UnitTest(RSTestCore rstc, String n, int initResult, Context ctx) { in UnitTest() argument 42 mCtx = ctx; in UnitTest() 47 protected UnitTest(RSTestCore rstc, String n, Context ctx) { in UnitTest() argument 48 this(rstc, n, 0, ctx); in UnitTest() 51 protected UnitTest(RSTestCore rstc, Context ctx) { in UnitTest() argument 52 this (rstc, "<Unknown>", ctx); in UnitTest() 55 protected UnitTest(Context ctx) { in UnitTest() argument 56 this (null, ctx); in UnitTest()
|
/frameworks/base/media/jni/ |
D | android_media_ImageReader.cpp | 243 JNIImageReaderContext *ctx; in ImageReader_getContext() local 244 ctx = reinterpret_cast<JNIImageReaderContext *> in ImageReader_getContext() 246 return ctx; in ImageReader_getContext() 252 JNIImageReaderContext* const ctx = ImageReader_getContext(env, thiz); in ImageReader_getProducer() local 253 if (ctx == NULL) { in ImageReader_getProducer() 258 return ctx->getProducer(); in ImageReader_getProducer() 262 jobject thiz, sp<JNIImageReaderContext> ctx) in ImageReader_setNativeContext() argument 266 if (ctx != 0) { in ImageReader_setNativeContext() 267 ctx->incStrong((void*)ImageReader_setNativeContext); in ImageReader_setNativeContext() 273 reinterpret_cast<jlong>(ctx.get())); in ImageReader_setNativeContext() [all …]
|
D | android_media_ImageWriter.cpp | 386 sp<JNIImageWriterContext> ctx(new JNIImageWriterContext(env, weakThiz, clazz)); in ImageWriter_init() local 389 ctx->setProducer(producer); in ImageWriter_init() 395 res = producer->connect(/*api*/NATIVE_WINDOW_API_CAMERA, /*listener*/ctx); in ImageWriter_init() 403 jlong nativeCtx = reinterpret_cast<jlong>(ctx.get()); in ImageWriter_init() 418 ctx->setBufferWidth(width); in ImageWriter_init() 429 ctx->setBufferHeight(height); in ImageWriter_init() 471 ctx->setBufferFormat(surfaceFormat); in ImageWriter_init() 504 if (ctx != 0) { in ImageWriter_init() 505 ctx->incStrong((void*)ImageWriter_init); in ImageWriter_init() 512 JNIImageWriterContext* const ctx = reinterpret_cast<JNIImageWriterContext *>(nativeCtx); in ImageWriter_dequeueImage() local [all …]
|
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/face/ |
D | FaceUtils.java | 89 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()
|
/frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/ |
D | UnitTest.java | 37 protected UnitTest(RSTestCore rstc, String n, int initResult, Context ctx) { in UnitTest() argument 42 mCtx = ctx; in UnitTest() 47 protected UnitTest(RSTestCore rstc, String n, Context ctx) { in UnitTest() argument 48 this(rstc, n, 0, ctx); in UnitTest() 51 protected UnitTest(RSTestCore rstc, Context ctx) { in UnitTest() argument 52 this (rstc, "<Unknown>", ctx); in UnitTest() 55 protected UnitTest(Context ctx) { in UnitTest() argument 56 this (null, ctx); in UnitTest()
|
/frameworks/base/core/tests/coretests/src/android/provider/ |
D | FontsContractE2ETest.java | 117 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() 145 FontsContract.requestFonts(ctx, request, new Handler(), null, callback3); 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 [all …]
|
/frameworks/native/services/surfaceflinger/FrameTracer/ |
D | FrameTracer.cpp | 65 duration](FrameTracerDataSource::TraceContext ctx) { in traceTimestamp() argument 72 tracePendingFencesLocked(ctx, layerId, bufferID); in traceTimestamp() 75 traceLocked(ctx, layerId, bufferID, frameNumber, timestamp, type, duration); in traceTimestamp() 83 startTime](FrameTracerDataSource::TraceContext ctx) { in traceFence() argument 92 tracePendingFencesLocked(ctx, layerId, bufferID); in traceFence() 95 traceSpanLocked(ctx, layerId, bufferID, frameNumber, type, startTime, signalTime); in traceFence() 107 void FrameTracer::tracePendingFencesLocked(FrameTracerDataSource::TraceContext& ctx, in tracePendingFencesLocked() argument 124 traceSpanLocked(ctx, layerId, bufferID, pendingFence.frameNumber, pendingFence.type, in tracePendingFencesLocked() 134 void FrameTracer::traceLocked(FrameTracerDataSource::TraceContext& ctx, int32_t layerId, in traceLocked() argument 137 auto packet = ctx.NewTracePacket(); in traceLocked() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/wrapper/ |
D | NotificationViewWrapper.java | 60 public static NotificationViewWrapper wrap(Context ctx, View v, ExpandableNotificationRow row) { in wrap() argument 63 return new NotificationBigPictureTemplateViewWrapper(ctx, v, row); in wrap() 65 return new NotificationBigTextTemplateViewWrapper(ctx, v, row); in wrap() 67 return new NotificationMediaTemplateViewWrapper(ctx, v, row); in wrap() 69 return new NotificationMessagingTemplateViewWrapper(ctx, v, row); in wrap() 71 return new NotificationConversationTemplateViewWrapper(ctx, v, row); in wrap() 73 return new NotificationCallTemplateViewWrapper(ctx, v, row); in wrap() 77 return new NotificationDecoratedCustomViewWrapper(ctx, v, row); in wrap() 80 return new NotificationDecoratedCustomViewWrapper(ctx, v, row); in wrap() 82 return new NotificationTemplateViewWrapper(ctx, v, row); in wrap() [all …]
|
/frameworks/av/camera/ndk/impl/ |
D | ACaptureRequest.h | 53 camera_status_t setContext(void* ctx) { in setContext() 54 context = ctx; in setContext() 58 camera_status_t getContext(void** ctx) const { in getContext() 59 *ctx = context; in getContext()
|
/frameworks/native/cmds/servicemanager/ |
D | Access.cpp | 113 bool Access::canFind(const CallingContext& ctx,const std::string& name) { in canFind() argument 114 return actionAllowedFromLookup(ctx, name, "find"); in canFind() 117 bool Access::canAdd(const CallingContext& ctx, const std::string& name) { in canAdd() argument 118 return actionAllowedFromLookup(ctx, name, "add"); in canAdd() 121 bool Access::canList(const CallingContext& ctx) { in canList() argument 122 return actionAllowed(ctx, mThisProcessContext, "list", "service_manager"); in canList()
|
D | ServiceManager.cpp | 196 auto ctx = mAccess->getCallingContext(); in tryGetService() local 204 uid_t appid = multiuser_get_app_id(ctx.uid); in tryGetService() 214 if (!mAccess->canFind(ctx, name)) { in tryGetService() 247 auto ctx = mAccess->getCallingContext(); in addService() local 250 if (multiuser_get_app_id(ctx.uid) >= AID_APP) { in addService() 254 if (!mAccess->canAdd(ctx, name)) { in addService() 286 .debugPid = ctx.debugPid, in addService() 329 auto ctx = mAccess->getCallingContext(); in registerForNotifications() local 331 if (!mAccess->canFind(ctx, name)) { in registerForNotifications() 365 auto ctx = mAccess->getCallingContext(); in unregisterForNotifications() local [all …]
|
/frameworks/base/tools/aapt2/optimize/ |
D | MultiApkGenerator_test.cpp | 110 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()
|
/frameworks/rs/cpu_ref/ |
D | rsCpuIntrinsicLUT.cpp | 33 RsdCpuScriptIntrinsicLUT(RsdCpuReferenceImpl *ctx, const Script *s, const Element *e); 76 RsdCpuScriptIntrinsicLUT::RsdCpuScriptIntrinsicLUT(RsdCpuReferenceImpl *ctx, in RsdCpuScriptIntrinsicLUT() argument 78 : RsdCpuScriptIntrinsic(ctx, s, e, RS_SCRIPT_INTRINSIC_ID_LUT) { in RsdCpuScriptIntrinsicLUT() 94 RsdCpuScriptImpl * rsdIntrinsic_LUT(RsdCpuReferenceImpl *ctx, in rsdIntrinsic_LUT() argument 97 return new RsdCpuScriptIntrinsicLUT(ctx, s, e); in rsdIntrinsic_LUT()
|
/frameworks/native/libs/adbd_auth/ |
D | adbd_auth.cpp | 533 void adbd_auth_delete(AdbdAuthContext* ctx) { in adbd_auth_delete() argument 534 delete ctx; in adbd_auth_delete() 537 void adbd_auth_run(AdbdAuthContext* ctx) { in adbd_auth_run() argument 538 return ctx->Run(); in adbd_auth_run() 541 void adbd_auth_get_public_keys(AdbdAuthContext* ctx, in adbd_auth_get_public_keys() argument 544 ctx->IteratePublicKeys(callback, opaque); in adbd_auth_get_public_keys() 547 uint64_t adbd_auth_notify_auth(AdbdAuthContext* ctx, const char* public_key, size_t len) { in adbd_auth_notify_auth() argument 548 return ctx->NotifyAuthenticated(std::string_view(public_key, len)); in adbd_auth_notify_auth() 551 void adbd_auth_notify_disconnect(AdbdAuthContext* ctx, uint64_t id) { in adbd_auth_notify_disconnect() argument 552 return ctx->NotifyDisconnected(id); in adbd_auth_notify_disconnect() [all …]
|
/frameworks/native/opengl/libs/EGL/ |
D | egl_tls.cpp | 31 egl_tls_t::egl_tls_t() : error(EGL_SUCCESS), ctx(nullptr), logCallWithNoContext(true) {} in egl_tls_t() 165 void egl_tls_t::setContext(EGLContext ctx) { in setContext() argument 167 getTLS()->ctx = ctx; in setContext() 176 return tls->ctx; in getContext()
|
/frameworks/base/services/backup/java/com/android/server/backup/ |
D | KeyValueBackupJob.java | 67 public static void schedule(int userId, Context ctx, BackupManagerConstants constants) { in schedule() argument 68 schedule(userId, ctx, 0, constants); in schedule() 71 public static void schedule(int userId, Context ctx, long delay, in schedule() argument 107 JobScheduler js = (JobScheduler) ctx.getSystemService(Context.JOB_SCHEDULER_SERVICE); in schedule() 115 public static void cancel(int userId, Context ctx) { in cancel() argument 117 JobScheduler js = (JobScheduler) ctx.getSystemService( in cancel()
|