Searched defs:scope (Results 1 - 25 of 312) sorted by relevance

1234567891011>>

/external/guice/core/src/com/google/inject/
H A DScope.java20 * A scope is a level of visibility that instances provided by Guice may have.
21 * By default, an instance created by the {@link Injector} has <i>no scope</i>,
24 * and then immediately forgets it. Associating a scope with a particular
28 * <p>An example of a scope is {@link Scopes#SINGLETON}.
35 * Scopes a provider. The returned provider returns objects from this scope.
36 * If an object does not exist in this scope, the provider can use the given
45 * scope.
48 * scope
50 public <T> Provider<T> scope(Key<T> key, Provider<T> unscoped); method in interface:Scope
53 * A short but useful description of this scope
[all...]
H A DScopes.java28 * Built-in scope implementations.
42 * No scope; the same as not applying any scope at all. Each time the
43 * Injector obtains an instance of an object with "no scope", it injects this
47 * <p>This exists only in case a class has been annotated with a scope
49 * this to "no scope" in your binding.
54 public <T> Provider<T> scope(Key<T> key, Provider<T> unscoped) {
73 public Boolean visitScope(Scope scope) {
74 return scope == Scopes.SINGLETON;
119 * Returns true if {@code binding} has the given scope
129 isScoped(Binding<?> binding, final Scope scope, final Class<? extends Annotation> scopeAnnotation) argument
[all...]
/external/guice/core/src/com/google/inject/binder/
H A DScopedBindingBuilder.java38 void in(Scope scope); argument
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/
H A DNodeWithScope.java30 * Represents a node which has a required scope expression eg. field access (object.method).
36 N setScope(Expression scope); argument
H A DNodeWithOptionalScope.java30 * Represents a node which has an optional scope expression eg. method calls (object.method()).
36 N setScope(Expression scope); argument
/external/tensorflow/tensorflow/cc/framework/
H A Dtestutil.cc27 void GetTensors(const Scope& scope, OutputList tensors, argument
29 ClientSession session(scope);
33 void GetTensor(const Scope& scope, Output tensor, Tensor* out) { argument
35 GetTensors(scope, {std::move(tensor)}, &outputs);
39 void GetTensors(const Scope& scope, const std::vector<Output>& assign_vars, argument
41 ClientSession session(scope);
46 void GetTensor(const Scope& scope, const std::vector<Output>& assign_vars, argument
49 GetTensors(scope, assign_vars, {std::move(tensor)}, &outputs);
H A Dgradient_checker_test.cc40 Scope scope = Scope::NewRootScope(); local
42 auto x = Placeholder(scope, DT_FLOAT, Placeholder::Shape(shape));
43 auto y = Square(scope, x);
46 scope, {x}, {shape}, {y}, {shape}, &max_error)));
51 Scope scope = Scope::NewRootScope(); local
53 auto x = Placeholder(scope, DT_DOUBLE, Placeholder::Shape(shape));
54 auto y = Square(scope, x);
57 scope, {x}, {shape}, {y}, {shape}, &max_error)));
62 Scope scope = Scope::NewRootScope(); local
64 auto x = Placeholder(scope, DT_COMPLEX6
73 Scope scope = Scope::NewRootScope(); local
85 Scope scope = Scope::NewRootScope(); local
97 Scope scope = Scope::NewRootScope(); local
108 Scope scope = Scope::NewRootScope(); local
125 Scope scope = Scope::NewRootScope(); local
140 Scope scope = Scope::NewRootScope(); local
156 Scope scope = Scope::NewRootScope(); local
[all...]
/external/tensorflow/tensorflow/cc/gradients/
H A Dgrad_testutil.cc23 Status CallGradFunction(const Scope& scope, const Operation& op, argument
29 TF_RETURN_IF_ERROR(grad_fn(scope, op, grad_inputs, grad_outputs));
30 TF_RETURN_IF_ERROR(scope.status());
/external/guice/core/src/com/google/inject/internal/
H A DSingletonScope.java35 * Anyway, why is it so complex? Singleton scope does not seem to be that unique.
39 * scope is The exception.
42 * it is expected to be done by Guice. Singleton scope needs to be
44 * therefore Singleton scope needs to be able to create these proxies.
67 * @see #scope(Key, Provider)
91 * Provides singleton scope with the following properties:
102 public <T> Provider<T> scope(final Key<T> key, final Provider<T> creator) { method in class:SingletonScope
105 * - volatile instance: double-checked locking for quick exit when scope is initialized,
148 // scope called recursively can initialize instance as a side effect
185 // InjectorImpl.callInContext() sets this context when scope i
[all...]
/external/guice/core/src/com/google/inject/spi/
H A DBindingScopingVisitor.java24 * Visits each of the strategies used to scope an injection.
33 * Visit an eager singleton or single instance. This scope strategy is found on both module and
39 * Visit a scope instance. This scope strategy is found on both module and injector bindings.
41 V visitScope(Scope scope); argument
44 * Visit a scope annotation. This scope strategy is found only on module bindings. The instance
45 * that implements this scope is registered by {@link com.google.inject.Binder#bindScope(Class,
52 * injector should use scoping annotations to find a scope. On an injector, it indicates that
53 * no scope i
[all...]
H A DDefaultBindingScopingVisitor.java46 public V visitScope(Scope scope) { argument
H A DScopeBinding.java27 * Registration of a scope annotation with the scope that implements it. Instances are created
40 private final Scope scope; field in class:ScopeBinding
42 ScopeBinding(Object source, Class<? extends Annotation> annotationType, Scope scope) { argument
45 this.scope = checkNotNull(scope, "scope");
57 return scope;
65 binder.withSource(getSource()).bindScope(annotationType, scope);
/external/guice/core/test/com/google/inject/spi/
H A DFailingBindingScopingVisitor.java31 public Void visitScope(Scope scope) { argument
/external/guice/extensions/throwingproviders/test/com/google/inject/throwingproviders/
H A DTestScope.java31 * A simple scope that can be explicitly reset.
42 public <T> Provider<T> scope( method in class:TestScope
/external/jacoco/org.jacoco.core.test/src/org/jacoco/core/test/
H A DInstrumentingLoader.java30 private final String scope; field in class:InstrumentingLoader
36 public InstrumentingLoader(IRuntime runtime, String scope, argument
39 this.scope = scope;
54 if (name.startsWith(scope)) {
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/javaparser-core/com/github/javaparser/ast/expr/
H A DQualifiedNameExpr.java38 public QualifiedNameExpr(final NameExpr scope, final String name) { argument
40 setQualifier(scope);
43 public QualifiedNameExpr(final Range range, final NameExpr scope, final String name) { argument
45 setQualifier(scope);
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_getscope/
H A D1-1.c15 * NOTE: The contension scope value is a may requirement.
34 int scope; local
36 rc = pthread_attr_getscope(attr, &scope);
43 if (scope != SYSTEMSCOPE) {
44 perror(ERROR_PREFIX "got wrong scope param");
49 if (scope != PROCESSSCOPE) {
50 perror(ERROR_PREFIX "got wrong scope param");
/external/mesa3d/src/util/
H A Dvk_alloc.h34 VkSystemAllocationScope scope)
36 return alloc->pfnAllocation(alloc->pUserData, size, align, scope);
42 VkSystemAllocationScope scope)
44 return alloc->pfnReallocation(alloc->pUserData, ptr, size, align, scope);
60 VkSystemAllocationScope scope)
63 return vk_alloc(alloc, size, align, scope);
65 return vk_alloc(parent_alloc, size, align, scope);
72 VkSystemAllocationScope scope)
74 void *mem = vk_alloc2(parent_alloc, alloc, size, align, scope);
32 vk_alloc(const VkAllocationCallbacks *alloc, size_t size, size_t align, VkSystemAllocationScope scope) argument
40 vk_realloc(const VkAllocationCallbacks *alloc, void *ptr, size_t size, size_t align, VkSystemAllocationScope scope) argument
57 vk_alloc2(const VkAllocationCallbacks *parent_alloc, const VkAllocationCallbacks *alloc, size_t size, size_t align, VkSystemAllocationScope scope) argument
69 vk_zalloc2(const VkAllocationCallbacks *parent_alloc, const VkAllocationCallbacks *alloc, size_t size, size_t align, VkSystemAllocationScope scope) argument
/external/selinux/libsepol/tests/
H A Dhelpers.c68 scope_datum_t *scope = (scope_datum_t *) hashtab_search(p->scope[symtab].table, sym); local
70 if (scope == NULL) {
73 if (scope->scope != SCOPE_DECL) {
76 if (scope->decl_ids_len != 1) {
80 return p->decl_val_to_struct[scope->decl_ids[0] - 1];
/external/skia/src/gpu/ccpr/
H A DGrCCTriangleShader.cpp16 GrGLSLVarying::Scope scope, SkString* code,
19 fCoverageTimesWind.reset(kHalf_GrSLType, scope);
90 GrGLSLVarying::Scope scope, SkString* code,
96 fCornerLocationInAABoxes.reset(kFloat2x2_GrSLType, scope);
99 fBisectInAABoxes.reset(kFloat2x2_GrSLType, scope);
109 fWindTimesHalf.reset(kHalf_GrSLType, scope);
15 onEmitVaryings(GrGLSLVaryingHandler* varyingHandler, GrGLSLVarying::Scope scope, SkString* code, const char* , const char* inputCoverage, const char* wind) argument
89 onEmitVaryings(GrGLSLVaryingHandler* varyingHandler, GrGLSLVarying::Scope scope, SkString* code, const char* position, const char* inputCoverage, const char* wind) argument
/external/skqp/src/gpu/ccpr/
H A DGrCCTriangleShader.cpp16 GrGLSLVarying::Scope scope, SkString* code,
19 fCoverageTimesWind.reset(kHalf_GrSLType, scope);
89 GrGLSLVarying::Scope scope, SkString* code,
94 fCornerLocationInAABoxes.reset(kFloat2x2_GrSLType, scope);
97 fBisectInAABoxes.reset(kFloat2x2_GrSLType, scope);
107 fWindTimesHalf.reset(kHalf_GrSLType, scope);
15 onEmitVaryings(GrGLSLVaryingHandler* varyingHandler, GrGLSLVarying::Scope scope, SkString* code, const char* , const char* inputCoverage, const char* wind) argument
88 onEmitVaryings(GrGLSLVaryingHandler* varyingHandler, GrGLSLVarying::Scope scope, SkString* code, const char* position, const char* inputCoverage, const char* wind) argument
/external/smali/smalidea/src/main/java/org/jf/smalidea/psi/index/
H A DSmaliClassFinder.java52 public PsiClass findClass(@NotNull String qualifiedName, @NotNull GlobalSearchScope scope) { argument
53 Collection<SmaliClass> classes = SmaliClassNameIndex.INSTANCE.get(qualifiedName, project, scope);
62 public PsiClass[] findClasses(@NotNull String qualifiedName, @NotNull GlobalSearchScope scope) { argument
63 PsiClass cls = findClass(qualifiedName, scope);
/external/tensorflow/tensorflow/cc/ops/
H A Dconst_op.h20 #include "tensorflow/cc/framework/scope.h"
29 Output Const(const Scope& scope, const Input::Initializer& val);
31 Output ConstFromProto(const Scope& scope, const TensorProto& proto);
33 NodeBuilder::NodeOut AsNodeOut(const Scope& scope, const Input& inp);
36 Output Const(const Scope& scope, const Input::Initializer& val) { argument
37 auto orig_const_output = Const(scope, val);
38 if (!scope.ok()) return Output();
47 return Const(scope, Input::Initializer(t));
52 auto orig_const = AsNodeOut(scope, orig_const_output);
53 const auto cast_op_name = scope
67 Const(const Scope& scope, const T& v, const TensorShape shape) argument
72 Const(const Scope& scope, const std::initializer_list<T>& v, const TensorShape shape) argument
[all...]
/external/tensorflow/tensorflow/core/common_runtime/
H A Dfunction_testlib.cc59 Output Call(Scope* scope, const string& op_name, const string& fn_name, argument
62 NodeDefBuilder builder(op_name, fn_name, scope->graph()->op_registry());
69 Node* n = scope->graph()->AddNode(def, &status);
71 TF_CHECK_OK(scope->DoShapeInference(n));
73 scope->graph()->AddEdge(inputs[i].node(), inputs[i].index(), n, i);
/external/tensorflow/tensorflow/java/src/main/java/org/tensorflow/op/core/
H A DConstant.java43 * Constant.create(scope, 7); // returns a constant scalar tensor 7
46 * @param scope is a scope used to add the underlying operation.
50 public static <T> Constant<T> create(Scope scope, Object object, Class<T> type) { argument
52 return createWithTensor(scope, value);
64 * @param scope is a scope used to add the underlying operation.
69 public static Constant<Integer> create(Scope scope, long[] shape, IntBuffer data) { argument
71 return createWithTensor(scope, value);
83 * @param scope i
88 create(Scope scope, long[] shape, FloatBuffer data) argument
107 create(Scope scope, long[] shape, DoubleBuffer data) argument
126 create(Scope scope, long[] shape, LongBuffer data) argument
147 create(Scope scope, Class<T> type, long[] shape, ByteBuffer data) argument
153 createWithTensor(Scope scope, Tensor<T> value) argument
[all...]

Completed in 642 milliseconds

1234567891011>>