Examples of Intent


Examples of android.content.Intent

   

    private final class JpegPictureCallback implements PictureCallback {
        public void onPictureTaken(byte [] jpegData, android.hardware.Camera camera) {
          DetectFaces.setJpegData(jpegData);
          startActivity(new Intent("jjil.app.facedetect.detectfaces"));
          stopPreview();
          //finish();
        }
View Full Code Here

Examples of android.content.Intent

              is.close();
              } catch (Exception ex) {
                    ex.printStackTrace();
                      System.err.print("Exception: " + ex.toString()); //$NON-NLS-1$ //$NON-NLS-2$        
              }
              startActivity(new Intent("jjil.app.facedetect.preview"));
          finish();
            }
          };
          t.start();
       } catch (Exception ex) {
View Full Code Here

Examples of android.content.Intent

        switch (keyCode) {
            case KeyEvent.KEYCODE_CAMERA:
            case KeyEvent.KEYCODE_DPAD_CENTER:
            case KeyEvent.KEYCODE_FOCUS:
            case KeyEvent.KEYCODE_BACK:
                startActivity(new Intent("jjil.app.facedetect.preview"));
                finish();
                return true;
       }
       return super.onKeyDown(keyCode, event);
    }
View Full Code Here

Examples of org.apache.isis.core.metamodel.facets.ImperativeFacet.Intent

        final ObjectMember objectMember = locateAndCheckMember(method);

        final String memberName = objectMember.getName();

        final Intent intent = ImperativeFacet.Util.getIntent(objectMember, method);
        if(intent == Intent.CHECK_IF_HIDDEN || intent == Intent.CHECK_IF_DISABLED) {
            throw new UnsupportedOperationException(String.format("Cannot invoke supporting method '%s'", memberName));
        }

        final String methodName = method.getName();
View Full Code Here

Examples of org.apache.tuscany.sca.policy.Intent

        String value = reader.getAttributeValue(null, "requires");
        if (value != null) {
            List<Intent> requiredIntents = attachPoint.getRequiredIntents();
            for (StringTokenizer tokens = new StringTokenizer(value); tokens.hasMoreTokens();) {
                QName qname = getQNameValue(reader, tokens.nextToken());
                Intent intent = policyFactory.createIntent();
                intent.setName(qname);
                if (operation != null) {
                    //intent.getOperations().add(operation);
                }
                requiredIntents.add(intent);
            }
View Full Code Here

Examples of org.apache.tuscany.sca.policy.Intent

    public void write(EchoBinding echoBinding, XMLStreamWriter writer) throws ContributionWriteException {
    }

    public void resolve(EchoBinding echoBinding, ModelResolver resolver) throws ContributionResolveException {
        List<Intent> requiredIntents = new ArrayList<Intent>();
        Intent resolvedIntent = null;
        for ( Intent intent : echoBinding.getRequiredIntents() ) {
            resolvedIntent = resolver.resolveModel(Intent.class, intent);
            requiredIntents.add(resolvedIntent);
        }
        echoBinding.getRequiredIntents().clear();
View Full Code Here

Examples of org.apache.tuscany.sca.policy.Intent

     * @param policyIntents list of policy intents
     * @param resolver
     */
    protected void resolveIntents(List<Intent> policyIntents, ModelResolver resolver) {
        List<Intent> requiredIntents = new ArrayList<Intent>();
        Intent resolvedIntent = null;
        for (Intent intent : policyIntents) {
            resolvedIntent = resolver.resolveModel(Intent.class, intent);
            requiredIntents.add(resolvedIntent);
        }
        policyIntents.clear();
View Full Code Here

Examples of org.apache.tuscany.sca.policy.Intent

            Enumeration<QName> policyItents = policyAttributes.elements();
            while (policyItents.hasMoreElements()) {
                QName intentName = policyItents.nextElement();

                // Add each intent to the list
                Intent intent = policyFactory.createIntent();
                intent.setName(intentName);

                wsdlInterface.getRequiredIntents().add(intent);
            }
           
        }
View Full Code Here

Examples of org.apache.tuscany.sca.policy.Intent

            String[] intentNames = intentAnnotation.value();
            if (intentNames.length != 0) {
                for (String intentName : intentNames) {

                    // Add each intent to the list
                    Intent intent = policyFactory.createIntent();
                    intent.setName(getQName(intentName));
                    subject.getRequiredIntents().add(intent);
                }
            }
        }

        readSpecificIntents(clazz.getAnnotations(), subject.getRequiredIntents());
       
        PolicySets policySetAnnotation = clazz.getAnnotation(PolicySets.class);
        if (policySetAnnotation != null) {
            String[] policySetNames = policySetAnnotation.value();
            if (policySetNames.length != 0) {
                for (String policySetName : policySetNames) {

                    // Add each intent to the list
                    PolicySet policySet = policyFactory.createPolicySet();
                    policySet.setName(getQName(policySetName));
                    subject.getPolicySets().add(policySet);
                }
            }
        }
       
        if ( clazz.isAnnotationPresent(SOAPBinding.class) ) {
          // add soap intent         
            Intent intent = policyFactory.createIntent();
            intent.setName(Constants.SOAP_INTENT);
            subject.getRequiredIntents().add(intent);
        }
       
      
    }
View Full Code Here

Examples of org.apache.tuscany.sca.policy.Intent

                //operation.setUnresolved(true);
                for (String intentName : intentNames) {

                    // Add each intent to the list, associated with the
                    // operation corresponding to the annotated method
                    Intent intent = policyFactory.createIntent();
                    intent.setName(getQName(intentName));
                    //intent.getOperations().add(operation);
                    requiredIntents.add(intent);
                }
            }
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.